Object ChiselItem.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final BlockState stateWithoutCorner(BlockState state, Triple<Direction, Direction, Direction> corner)
      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.
      • Methods inherited from class java.lang.Object

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

    • 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