Skip to content

Commit

Permalink
support for axolotl of "Caves and Cliffs Mod, 1.17 concept"
Browse files Browse the repository at this point in the history
  • Loading branch information
cech12 committed May 28, 2021
1 parent a0c0325 commit 0cebfd3
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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 CavesAndCliffs117ConceptCompat extends ModCompat.Mod implements ModCompat.EntityTypeObtainingMod {

private final List<ObtainableEntityType> obtainableEntityTypes = new ArrayList<>();

public CavesAndCliffs117ConceptCompat() {
super("caves_and_cliffs");
this.obtainableEntityTypes.add(new ObtainableEntityType.Builder(new ResourceLocation(this.name, "axolotl"), Fluids.WATER).addFluidTag(FluidTags.WATER).build());
}

@Override
public List<ObtainableEntityType> getObtainableEntityTypes() {
return this.obtainableEntityTypes;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
import java.util.ArrayList;
import java.util.List;

public class CavesAndCliffsCompat extends ModCompat.Mod implements ModCompat.EntityTypeObtainingMod {
public class CavesAndCliffsBackportCompat extends ModCompat.Mod implements ModCompat.EntityTypeObtainingMod {

private final List<ObtainableEntityType> obtainableEntityTypes = new ArrayList<>();

public CavesAndCliffsCompat() {
public CavesAndCliffsBackportCompat() {
super("cavesandcliffs");
this.obtainableEntityTypes.add(new ObtainableEntityType.Builder(new ResourceLocation(this.name, "axolotl"), Fluids.WATER).addFluidTag(FluidTags.WATER).build());
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/cech12/ceramicbucket/compat/ModCompat.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public class ModCompat {
new AlexsMobsCompat(),
new AquacultureCompat(),
new AxolotlCompat(),
new CavesAndCliffsCompat(),
new CavesAndCliffs117ConceptCompat(),
new CavesAndCliffsBackportCompat(),
new CombustiveFishingCompat(),
new EnvironmentalCompat(),
new FinsAndTrailsCompat(),
Expand Down
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 0cebfd3

Please sign in to comment.