Class SlimeTreeCheck

java.lang.Object
com.minecolonies.api.compatibility.tinkers.SlimeTreeProxy
com.minecolonies.api.compatibility.tinkers.SlimeTreeCheck

public final class SlimeTreeCheck extends SlimeTreeProxy
This class is to store a check to see if a tree is a slime tree.
  • 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.