Skip to content

Commit

Permalink
Add support for Axolotl mod #32
Browse files Browse the repository at this point in the history
  • Loading branch information
cech12 committed Oct 28, 2020
1 parent 82e9a88 commit 3b3bf65
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 26 additions & 0 deletions src/main/java/cech12/ceramicbucket/compat/AxolotlCompat.java
Original file line number Diff line number Diff line change
@@ -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<ObtainableEntityType> 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<ObtainableEntityType> getObtainableEntityTypes() {
return this.obtainableEntityTypes;
}

}
1 change: 1 addition & 0 deletions src/main/java/cech12/ceramicbucket/compat/ModCompat.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class ModCompat {
public static final Mod[] MODS = {
new MinecraftCompat(),
new AquacultureCompat(),
new AxolotlCompat(),
new CombustiveFishingCompat(),
new MilkAllTheMobs(),
new UpgradeAquaticCompat()
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3b3bf65

Please sign in to comment.