-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add support for Fins And Trails mod
- Loading branch information
Showing
20 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/main/java/cech12/ceramicbucket/compat/FinsAndTrailsCompat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package cech12.ceramicbucket.compat; | ||
|
||
import cech12.ceramicbucket.api.data.ObtainableEntityType; | ||
import net.minecraft.fluid.Fluids; | ||
import net.minecraft.tags.FluidTags; | ||
import net.minecraft.util.ResourceLocation; | ||
import net.minecraft.util.SoundEvent; | ||
import net.minecraft.util.SoundEvents; | ||
import net.minecraftforge.registries.ForgeRegistries; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class FinsAndTrailsCompat extends ModCompat.Mod implements ModCompat.EntityTypeObtainingMod { | ||
|
||
private final List<ObtainableEntityType> obtainableEntityTypes = new ArrayList<>(); | ||
|
||
public FinsAndTrailsCompat() { | ||
super("fins"); | ||
this.addFish("banded_redback_shrimp"); | ||
this.addFish("blu_wee"); | ||
this.addFish("flatback_sucker"); | ||
this.addFish("golden_river_ray"); | ||
this.addFish("high_finned_blue"); | ||
this.addFish("night_light_squid"); | ||
this.addFish("ornate_bugfish"); | ||
this.addFish("pea_wee"); | ||
|
||
ObtainableEntityType.Builder builder = new ObtainableEntityType.Builder(new ResourceLocation(this.name, "penglil"), Fluids.EMPTY); | ||
ResourceLocation fillSound = ForgeRegistries.SOUND_EVENTS.getKey(SoundEvents.ITEM_BUCKET_FILL); | ||
if (fillSound != null) builder.setFillSound(fillSound); | ||
ResourceLocation emptySound = new ResourceLocation(this.name, "fins.penglil.ambient"); | ||
SoundEvent sound = ForgeRegistries.SOUND_EVENTS.getValue(emptySound); | ||
if (sound != null) builder.setEmptySound(emptySound); | ||
this.obtainableEntityTypes.add(builder.build()); | ||
|
||
this.addFish("phantom_nudibranch"); | ||
this.addFish("red_bull_crab"); | ||
this.addFish("spindly_gem_crab"); | ||
this.addFish("swamp_mucker"); | ||
this.addFish("teal_arrowfish"); | ||
this.addFish("vibra_wee"); | ||
this.addFish("wee_wee"); | ||
this.addFish("white_bull_crab"); | ||
} | ||
|
||
private void addFish(String fish) { | ||
this.obtainableEntityTypes.add(new ObtainableEntityType.Builder(new ResourceLocation(this.name, fish), Fluids.WATER).addFluidTag(FluidTags.WATER).build()); | ||
} | ||
|
||
@Override | ||
public List<ObtainableEntityType> getObtainableEntityTypes() { | ||
return this.obtainableEntityTypes; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+291 Bytes
...ssets/ceramicbucket/textures/item/bucket_content/fins/banded_redback_shrimp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+253 Bytes
...in/resources/assets/ceramicbucket/textures/item/bucket_content/fins/blu_wee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+304 Bytes
...rces/assets/ceramicbucket/textures/item/bucket_content/fins/flatback_sucker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+294 Bytes
...ces/assets/ceramicbucket/textures/item/bucket_content/fins/golden_river_ray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+281 Bytes
...ces/assets/ceramicbucket/textures/item/bucket_content/fins/high_finned_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+295 Bytes
...es/assets/ceramicbucket/textures/item/bucket_content/fins/night_light_squid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+319 Bytes
...urces/assets/ceramicbucket/textures/item/bucket_content/fins/ornate_bugfish.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+253 Bytes
...in/resources/assets/ceramicbucket/textures/item/bucket_content/fins/pea_wee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+296 Bytes
...in/resources/assets/ceramicbucket/textures/item/bucket_content/fins/penglil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+264 Bytes
...s/assets/ceramicbucket/textures/item/bucket_content/fins/phantom_nudibranch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+321 Bytes
...ources/assets/ceramicbucket/textures/item/bucket_content/fins/red_bull_crab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+291 Bytes
...ces/assets/ceramicbucket/textures/item/bucket_content/fins/spindly_gem_crab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+286 Bytes
...sources/assets/ceramicbucket/textures/item/bucket_content/fins/swamp_mucker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+307 Bytes
...urces/assets/ceramicbucket/textures/item/bucket_content/fins/teal_arrowfish.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+298 Bytes
.../resources/assets/ceramicbucket/textures/item/bucket_content/fins/vibra_wee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+246 Bytes
...in/resources/assets/ceramicbucket/textures/item/bucket_content/fins/wee_wee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+321 Bytes
...rces/assets/ceramicbucket/textures/item/bucket_content/fins/white_bull_crab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.