Package org.cyclops.evilcraft.core.block
Interface IBlockTank
- All Known Implementing Classes:
BlockBloodChest,BlockBloodInfuser,BlockColossalBloodChest,BlockDarkTank,BlockEntangledChalice,BlockPurifier,BlockSanguinaryPedestal,BlockSpiritFurnace,BlockSpiritReanimator,BlockWithEntityGuiTank
public interface IBlockTank
Interface for blocks that have a tank.
-
Method Summary
Modifier and TypeMethodDescriptionintGet the default capacity possible for this item/blockState type.booleanbooleanisActivated(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world) If the given item is activated.net.minecraft.world.item.ItemStacktoggleActivation(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player) Toggle the activation of the item.
-
Method Details
-
getDefaultCapacity
int getDefaultCapacity()Get the default capacity possible for this item/blockState type.- Returns:
- The default capacity.
-
isActivatable
boolean isActivatable()- Returns:
- If this tank can be activated to auto-fill.
-
toggleActivation
net.minecraft.world.item.ItemStack toggleActivation(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player) Toggle the activation of the item.- Parameters:
itemStack- The item.world- The world.player- The player holding the item.- Returns:
- The toggled item.
-
isActivated
boolean isActivated(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world) If the given item is activated.- Parameters:
itemStack- The item.world- The world.- Returns:
- If it is activated.
-