Package com.mynamesraph.chiseled.item
Object ChiselItem.Companion
-
- All Implemented Interfaces:
public class ChiselItem.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static ChiselItem.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final BlockStatestateWithoutCorner(BlockState state, Triple<Direction, Direction, Direction> corner)final BooleanchiselBlock(Level level, BlockState brokenBlock, BlockPos pos, LivingEntity miningEntity)Chisels a block on the client side and sends a ServerboundChiseledBlockPayload to chisel the block on the server. -
-
Method Detail
-
stateWithoutCorner
final BlockState stateWithoutCorner(BlockState state, Triple<Direction, Direction, Direction> corner)
-
chiselBlock
final Boolean chiselBlock(Level level, BlockState brokenBlock, BlockPos pos, LivingEntity miningEntity)
Chisels a block on the client side and sends a ServerboundChiseledBlockPayload to chisel the block on the server.
On the server-side it simply checks if a block can be chiseled or not
- Returns:
true if block can be chiseled
-
-
-
-