public class BlockPosContext extends PlayerContext
Modifier and Type | Field and Description |
---|---|
private BlockPos |
blockPos |
private IBlockState |
blockState |
private EnumFacing |
facing |
Constructor and Description |
---|
BlockPosContext(EntityPlayer ep,
BlockPos pos,
IBlockState state,
EnumFacing f) |
BlockPosContext(EntityPlayer 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 IBlockState blockState
private EnumFacing facing
public BlockPosContext(EntityPlayer ep, BlockPos pos, @Nullable IBlockState state, @Nullable EnumFacing f)
public BlockPosContext(EntityPlayer ep, ChunkPos pos)
@Nullable public <T> T get(ContextKey<T> key)
protected boolean covers(ContextKey<?> key)