From 3b3bf65b840f7444458d8f852ea01af74ff7fdc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Vo=C3=9F?= Date: Wed, 28 Oct 2020 12:17:07 +0100 Subject: [PATCH] Add support for Axolotl mod #32 --- gradle.properties | 2 +- .../ceramicbucket/compat/AxolotlCompat.java | 26 ++++++++++++++++++ .../ceramicbucket/compat/ModCompat.java | 1 + .../item/bucket_content/axolotl/axolot_2.png | Bin 0 -> 257 bytes .../item/bucket_content/axolotl/axolotl.png | Bin 0 -> 257 bytes 5 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/main/java/cech12/ceramicbucket/compat/AxolotlCompat.java create mode 100644 src/main/resources/assets/ceramicbucket/textures/item/bucket_content/axolotl/axolot_2.png create mode 100644 src/main/resources/assets/ceramicbucket/textures/item/bucket_content/axolotl/axolotl.png diff --git a/gradle.properties b/gradle.properties index 775002a..b07ae3e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx3G org.gradle.daemon=false -mod_version=2.2.0 +mod_version=2.2.1 minecraft_version=1.14.4 forge_version=1.14.4-28.2.11 diff --git a/src/main/java/cech12/ceramicbucket/compat/AxolotlCompat.java b/src/main/java/cech12/ceramicbucket/compat/AxolotlCompat.java new file mode 100644 index 0000000..63b94e6 --- /dev/null +++ b/src/main/java/cech12/ceramicbucket/compat/AxolotlCompat.java @@ -0,0 +1,26 @@ +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 java.util.ArrayList; +import java.util.List; + +public class AxolotlCompat extends ModCompat.Mod implements ModCompat.EntityTypeObtainingMod { + + private final List obtainableEntityTypes = new ArrayList<>(); + + public AxolotlCompat() { + super("axolotl"); + this.obtainableEntityTypes.add(new ObtainableEntityType.Builder(new ResourceLocation(this.name, "axolotl"), Fluids.WATER).addFluidTag(FluidTags.WATER).build()); + this.obtainableEntityTypes.add(new ObtainableEntityType.Builder(new ResourceLocation(this.name, "axolot_2"), Fluids.WATER).addFluidTag(FluidTags.WATER).build()); + } + + @Override + public List getObtainableEntityTypes() { + return this.obtainableEntityTypes; + } + +} diff --git a/src/main/java/cech12/ceramicbucket/compat/ModCompat.java b/src/main/java/cech12/ceramicbucket/compat/ModCompat.java index 52da11a..bd5212d 100644 --- a/src/main/java/cech12/ceramicbucket/compat/ModCompat.java +++ b/src/main/java/cech12/ceramicbucket/compat/ModCompat.java @@ -17,6 +17,7 @@ public class ModCompat { public static final Mod[] MODS = { new MinecraftCompat(), new AquacultureCompat(), + new AxolotlCompat(), new CombustiveFishingCompat(), new MilkAllTheMobs(), new UpgradeAquaticCompat() diff --git a/src/main/resources/assets/ceramicbucket/textures/item/bucket_content/axolotl/axolot_2.png b/src/main/resources/assets/ceramicbucket/textures/item/bucket_content/axolotl/axolot_2.png new file mode 100644 index 0000000000000000000000000000000000000000..20a93a1440891d9ea3e1dcc8355109fc64ac8757 GIT binary patch literal 257 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJV{wqX6T`Z5GB1G~mUKs7M+SzC z{oH>NS%G}H0G|+7Aib(Fb5T+F%p~V{XJch$Ws~?@F8ME&{m%fU)-T*33#7P8g8YL2 z!vMpkGdkyiqMQXDk;M!Qd&)oZesH{xN z-lyk1^9ycH6Sog;#ocF)I3;^5C{HitRNHpe$@b=pf{$t}0m)M)%}{DsQF~3bWZ#KT m&dUuZJyJZgp7*or3Fb#tY*V*crrH5*VDNPHb6Mw<&;$S>QCTnm literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/ceramicbucket/textures/item/bucket_content/axolotl/axolotl.png b/src/main/resources/assets/ceramicbucket/textures/item/bucket_content/axolotl/axolotl.png new file mode 100644 index 0000000000000000000000000000000000000000..bd8b92336a0d7a8bfed4b4d6a2c19509958f4103 GIT binary patch literal 257 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJV{wqX6T`Z5GB1G~mUKs7M+SzC z{oH>NS%G}H0G|+7AiXxbc;B?eXLg;bFRfQrRyK*h<&ytW+5Zessz~eUB_PFB666>B z9|jmUozXcD6y+@Nh%9Dc;5!Jyj5{V~zXb}0dAc};XarB~3*>7s;BaQ2d*5<}@^}L@|PcT2KVw<|nGSv=f1B0ilpUXO@geCyR>|2`v literal 0 HcmV?d00001