public class CachedBlockPosition extends Object
Modifier and Type | Field and Description |
---|---|
private BlockEntity |
blockEntity |
private boolean |
cachedEntity |
private boolean |
forceLoad |
private BlockPos |
pos |
private BlockState |
state |
private WorldView |
world |
Constructor and Description |
---|
CachedBlockPosition(WorldView world,
BlockPos pos,
boolean forceLoad) |
Modifier and Type | Method and Description |
---|---|
BlockEntity |
getBlockEntity() |
BlockPos |
getBlockPos() |
BlockState |
getBlockState() |
WorldView |
getWorld() |
static Predicate<CachedBlockPosition> |
matchesBlockState(Predicate<BlockState> state) |
private final WorldView world
private final BlockPos pos
private final boolean forceLoad
private BlockState state
private BlockEntity blockEntity
private boolean cachedEntity
public BlockState getBlockState()
@Nullable public BlockEntity getBlockEntity()
public WorldView getWorld()
public BlockPos getBlockPos()
public static Predicate<CachedBlockPosition> matchesBlockState(Predicate<BlockState> state)