public class BlockState
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockState.BlockPredicate |
static class |
BlockState.BlockStateFunction |
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.block.Block |
block |
protected int |
metadata |
protected BlockPos |
pos |
| Constructor and Description |
|---|
BlockState(net.minecraft.block.Block block) |
BlockState(net.minecraft.block.Block block,
int metadata) |
BlockState(BlockPos pos,
net.minecraft.block.Block block) |
BlockState(BlockPos pos,
net.minecraft.block.Block block,
int metadata) |
BlockState(BlockPos pos,
BlockState state) |
BlockState(net.minecraft.world.IBlockAccess world,
BlockPos pos) |
BlockState(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z) |
BlockState(net.minecraft.world.IBlockAccess world,
long coord) |
BlockState(int x,
int y,
int z,
net.minecraft.block.Block block) |
BlockState(int x,
int y,
int z,
net.minecraft.block.Block block,
int metadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
breakBlock(net.minecraft.world.World world,
int flag) |
static java.lang.Iterable<BlockState> |
getAllInBox(net.minecraft.world.IBlockAccess world,
BlockPos from,
BlockPos to,
net.minecraft.block.Block block,
boolean skipAir) |
net.minecraft.block.Block |
getBlock() |
int |
getMetadata() |
BlockPos |
getPos() |
int |
getX() |
int |
getY() |
int |
getZ() |
BlockState |
offset(BlockPos pos) |
void |
placeBlock(net.minecraft.world.World world,
int flag) |
java.lang.String |
toString() |
protected BlockPos pos
protected net.minecraft.block.Block block
protected int metadata
public BlockState(BlockPos pos, net.minecraft.block.Block block, int metadata)
public BlockState(BlockPos pos, net.minecraft.block.Block block)
public BlockState(int x,
int y,
int z,
net.minecraft.block.Block block,
int metadata)
public BlockState(int x,
int y,
int z,
net.minecraft.block.Block block)
public BlockState(net.minecraft.block.Block block,
int metadata)
public BlockState(net.minecraft.block.Block block)
public BlockState(net.minecraft.world.IBlockAccess world,
BlockPos pos)
public BlockState(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z)
public BlockState(net.minecraft.world.IBlockAccess world,
long coord)
public BlockState(BlockPos pos, BlockState state)
public BlockPos getPos()
public net.minecraft.block.Block getBlock()
public int getMetadata()
public int getX()
public int getY()
public int getZ()
public BlockState offset(BlockPos pos)
public void placeBlock(net.minecraft.world.World world,
int flag)
public void breakBlock(net.minecraft.world.World world,
int flag)
public static java.lang.Iterable<BlockState> getAllInBox(net.minecraft.world.IBlockAccess world, BlockPos from, BlockPos to, net.minecraft.block.Block block, boolean skipAir)
public java.lang.String toString()
toString in class java.lang.Object