Package net.minecraft.util
Class CachedBlockInfo
- java.lang.Object
-
- net.minecraft.util.CachedBlockInfo
-
public class CachedBlockInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
cachedEntity
private TileEntity
entity
private IWorldReader
level
private boolean
loadChunks
private BlockPos
pos
private BlockState
state
-
Constructor Summary
Constructors Constructor Description CachedBlockInfo(IWorldReader p_i48968_1_, BlockPos p_i48968_2_, boolean p_i48968_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TileEntity
getEntity()
IWorldReader
getLevel()
BlockPos
getPos()
BlockState
getState()
static java.util.function.Predicate<CachedBlockInfo>
hasState(java.util.function.Predicate<BlockState> p_177510_0_)
-
-
-
Field Detail
-
level
private final IWorldReader level
-
pos
private final BlockPos pos
-
loadChunks
private final boolean loadChunks
-
state
private BlockState state
-
entity
private TileEntity entity
-
cachedEntity
private boolean cachedEntity
-
-
Constructor Detail
-
CachedBlockInfo
public CachedBlockInfo(IWorldReader p_i48968_1_, BlockPos p_i48968_2_, boolean p_i48968_3_)
-
-
Method Detail
-
getState
public BlockState getState()
-
getEntity
@Nullable public TileEntity getEntity()
-
getLevel
public IWorldReader getLevel()
-
getPos
public BlockPos getPos()
-
hasState
public static java.util.function.Predicate<CachedBlockInfo> hasState(java.util.function.Predicate<BlockState> p_177510_0_)
-
-