Class SlimeTreeCheck
java.lang.Object
com.minecolonies.api.compatibility.tinkers.SlimeTreeProxy
com.minecolonies.api.compatibility.tinkers.SlimeTreeCheck
This class is to store a check to see if a tree is a slime tree.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetLeafVariant(@NotNull net.minecraft.world.level.block.state.BlockState leaf) Get the Slime leaf variant.static booleanisSlimeBlock(@NotNull net.minecraft.world.level.block.Block block) Check if block is slime block.static booleanisSlimeDirtOrGrass(@NotNull net.minecraft.world.level.block.Block block) Check if block is slime sapling.static booleanisSlimeLeaf(@NotNull net.minecraft.world.level.block.Block block) Check if block is slime leaf.static booleanisSlimeSapling(@NotNull net.minecraft.world.level.block.Block block) Check if block is slime sapling.Methods inherited from class com.minecolonies.api.compatibility.tinkers.SlimeTreeProxy
checkForTinkersSlimeBlock, checkForTinkersSlimeDirtOrGrass, checkForTinkersSlimeLeaves, checkForTinkersSlimeSapling, getTinkersLeafVariant
-
Constructor Details
-
SlimeTreeCheck
public SlimeTreeCheck()
-
-
Method Details
-
isSlimeBlock
public static boolean isSlimeBlock(@NotNull @NotNull net.minecraft.world.level.block.Block block) Check if block is slime block.- Parameters:
block- the block.- Returns:
- if the block is a slime block.
-
isSlimeLeaf
public static boolean isSlimeLeaf(@NotNull @NotNull net.minecraft.world.level.block.Block block) Check if block is slime leaf.- Parameters:
block- the block.- Returns:
- if the block is a slime leaf.
-
isSlimeSapling
public static boolean isSlimeSapling(@NotNull @NotNull net.minecraft.world.level.block.Block block) Check if block is slime sapling.- Parameters:
block- the block.- Returns:
- if the block is a slime sapling.
-
isSlimeDirtOrGrass
public static boolean isSlimeDirtOrGrass(@NotNull @NotNull net.minecraft.world.level.block.Block block) Check if block is slime sapling.- Parameters:
block- the block.- Returns:
- if the block is a slime sapling.
-
getLeafVariant
public static int getLeafVariant(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState leaf) Get the Slime leaf variant.- Parameters:
leaf- the leaf.- Returns:
- the variant.
-