BrokenBlock

public final class BrokenBlock(source)

Stores information about a broken block.

Parameters

pos

The position of the broken block

state

The broken block state

tool

The item used to break the block

Constructors

Link copied to clipboard
public BrokenBlock BrokenBlock(BlockPos pos, BlockState state, ItemStack tool)

Properties

Link copied to clipboard
private final BlockPos pos
Link copied to clipboard
private final BlockState state
Link copied to clipboard
private final ItemStack tool

Functions

Link copied to clipboard
public final BlockPos getPos()
Link copied to clipboard
public final BlockState getState()
Link copied to clipboard
public final ItemStack getTool()