Class ChiselAndBitsCheck

java.lang.Object
com.minecolonies.api.compatibility.candb.AbstractChiselAndBitsProxy
com.minecolonies.api.compatibility.candb.ChiselAndBitsCheck

public final class ChiselAndBitsCheck extends AbstractChiselAndBitsProxy
This class is to store a check to see if a block is a chiselsandbits block.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    checkForChiselAndBitsBlock(@NotNull net.minecraft.world.level.block.state.BlockState blockState)
    This is the fallback for when candb is not present!
    boolean
    checkForChiselAndBitsTileEntity(@NotNull net.minecraft.world.level.block.entity.BlockEntity tileEntity)
    This is the fallback for when candb is not present!
    static List<net.minecraft.world.item.ItemStack>
    getBitStacks(net.minecraft.world.level.block.entity.BlockEntity tileEntity)
    Get candb bits as a list of itemStacks from tileEntity..
    List<net.minecraft.world.item.ItemStack>
    getChiseledStacks(@NotNull net.minecraft.world.level.block.entity.BlockEntity tileEntity)
    Check if tileEntity is candb tileEntity.
    static boolean
    isChiselAndBitsBlock(@NotNull net.minecraft.world.level.block.state.BlockState blockState)
    Check if blockState is candb block.
    static boolean
    isChiselAndBitsTileEntity(@NotNull net.minecraft.world.level.block.entity.BlockEntity tileEntity)
    Check if tileEntity is candb block.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChiselAndBitsCheck

      public ChiselAndBitsCheck()
  • Method Details

    • isChiselAndBitsTileEntity

      public static boolean isChiselAndBitsTileEntity(@NotNull @NotNull net.minecraft.world.level.block.entity.BlockEntity tileEntity)
      Check if tileEntity is candb block.
      Parameters:
      tileEntity - the tileEntity.
      Returns:
      if the tileEntity is a candb tileEntity.
    • isChiselAndBitsBlock

      public static boolean isChiselAndBitsBlock(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState)
      Check if blockState is candb block.
      Parameters:
      blockState - the blockState.
      Returns:
      if the blockState is a candb blockState.
    • getBitStacks

      public static List<net.minecraft.world.item.ItemStack> getBitStacks(net.minecraft.world.level.block.entity.BlockEntity tileEntity)
      Get candb bits as a list of itemStacks from tileEntity..
      Parameters:
      tileEntity - the tileEntity.
      Returns:
      the list of itemStacks..
    • checkForChiselAndBitsBlock

      public boolean checkForChiselAndBitsBlock(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState)
      Description copied from class: AbstractChiselAndBitsProxy
      This is the fallback for when candb is not present!
      Overrides:
      checkForChiselAndBitsBlock in class AbstractChiselAndBitsProxy
      Parameters:
      blockState - the BlockState.
      Returns:
      if the blockState is a candb blockState.
    • checkForChiselAndBitsTileEntity

      public boolean checkForChiselAndBitsTileEntity(@NotNull @NotNull net.minecraft.world.level.block.entity.BlockEntity tileEntity)
      Description copied from class: AbstractChiselAndBitsProxy
      This is the fallback for when candb is not present!
      Overrides:
      checkForChiselAndBitsTileEntity in class AbstractChiselAndBitsProxy
      Parameters:
      tileEntity - the tileEntity.
      Returns:
      if the tileEntity is a candb tileEntity.
    • getChiseledStacks

      public List<net.minecraft.world.item.ItemStack> getChiseledStacks(@NotNull @NotNull net.minecraft.world.level.block.entity.BlockEntity tileEntity)
      Description copied from class: AbstractChiselAndBitsProxy
      Check if tileEntity is candb tileEntity.
      Overrides:
      getChiseledStacks in class AbstractChiselAndBitsProxy
      Parameters:
      tileEntity - the tileEntity.
      Returns:
      if the tileEntity is a candb tileEntity.