Class ChiselAndBitsCheck
java.lang.Object
com.minecolonies.api.compatibility.candb.AbstractChiselAndBitsProxy
com.minecolonies.api.compatibility.candb.ChiselAndBitsCheck
This class is to store a check to see if a block is a chiselsandbits block.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckForChiselAndBitsBlock(@NotNull net.minecraft.world.level.block.state.BlockState blockState) This is the fallback for when candb is not present!booleancheckForChiselAndBitsTileEntity(@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 booleanisChiselAndBitsBlock(@NotNull net.minecraft.world.level.block.state.BlockState blockState) Check if blockState is candb block.static booleanisChiselAndBitsTileEntity(@NotNull net.minecraft.world.level.block.entity.BlockEntity tileEntity) Check if tileEntity is candb block.
-
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:AbstractChiselAndBitsProxyThis is the fallback for when candb is not present!- Overrides:
checkForChiselAndBitsBlockin classAbstractChiselAndBitsProxy- 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:AbstractChiselAndBitsProxyThis is the fallback for when candb is not present!- Overrides:
checkForChiselAndBitsTileEntityin classAbstractChiselAndBitsProxy- 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:AbstractChiselAndBitsProxyCheck if tileEntity is candb tileEntity.- Overrides:
getChiseledStacksin classAbstractChiselAndBitsProxy- Parameters:
tileEntity- the tileEntity.- Returns:
- if the tileEntity is a candb tileEntity.
-