Interface EncasedBlock
- All Known Implementing Classes:
EncasedCogwheelBlock,EncasedPipeBlock,EncasedShaftBlock
public interface EncasedBlock
Implement this interface to indicate that this block is encased.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.Blockdefault voidhandleEncasing(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack heldItem, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult ray) Handles how encasing should be done ifEncasableBlock.tryEncase(BlockState, Level, BlockPos, ItemStack, Player, InteractionHand, BlockHitResult)is successful.
-
Method Details
-
getCasing
net.minecraft.world.level.block.Block getCasing() -
handleEncasing
default void handleEncasing(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack heldItem, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult ray) Handles how encasing should be done ifEncasableBlock.tryEncase(BlockState, Level, BlockPos, ItemStack, Player, InteractionHand, BlockHitResult)is successful.
-