public class BlockPosContext extends PlayerContext
Modifier and Type | Field and Description |
---|---|
private BlockPos |
blockPos |
private BlockState |
blockState |
private Direction |
facing |
Constructor and Description |
---|
BlockPosContext(PlayerEntity ep,
BlockPos pos,
BlockState state,
Direction f) |
BlockPosContext(PlayerEntity ep,
ChunkPos pos) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
covers(ContextKey<?> key) |
<T> T |
get(ContextKey<T> key) |
getPlayer, getWorld
private final BlockPos blockPos
private BlockState blockState
private Direction facing
public BlockPosContext(PlayerEntity ep, BlockPos pos, @Nullable BlockState state, @Nullable Direction f)
public BlockPosContext(PlayerEntity ep, ChunkPos pos)
@Nullable public <T> T get(ContextKey<T> key)
protected boolean covers(ContextKey<?> key)