-
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.
- Loading branch information
Showing
5 changed files
with
28 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
26 changes: 26 additions & 0 deletions
26
src/main/java/cech12/ceramicbucket/compat/AxolotlCompat.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,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; | ||
} | ||
|
||
} |
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
+257 Bytes
...esources/assets/ceramicbucket/textures/item/bucket_content/axolotl/axolot_2.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
+257 Bytes
...resources/assets/ceramicbucket/textures/item/bucket_content/axolotl/axolotl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.