public class CachedBlockInfo
extends java.lang.Object
| コンストラクタと説明 | 
|---|
| CachedBlockInfo(IWorldReader worldIn,
               BlockPos posIn,
               boolean forceLoadIn) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| BlockState | getBlockState()Gets the block state as currently held, or (if it has not gotten it from the world) loads it from the world. | 
| BlockPos | getPos() | 
| TileEntity | getTileEntity()Gets the tile entity as currently held, or (if it has not gotten it from the world) loads it from the world. | 
| IWorldReader | getWorld() | 
| static java.util.function.Predicate<CachedBlockInfo> | hasState(java.util.function.Predicate<BlockState> predicatesIn)Creates a new  Predicatethat will match when the givenIBlockStatepredicate matches. | 
public CachedBlockInfo(IWorldReader worldIn, BlockPos posIn, boolean forceLoadIn)
public BlockState getBlockState()
forceLoad is true or the block position is loaded.@Nullable public TileEntity getTileEntity()
public IWorldReader getWorld()
public BlockPos getPos()
public static java.util.function.Predicate<CachedBlockInfo> hasState(java.util.function.Predicate<BlockState> predicatesIn)
Predicate that will match when the given IBlockState predicate matches.