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) |
boolean |
equals(java.lang.Object obj) |
static BlockState |
fromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
static BlockState |
fromNBT(net.minecraft.nbt.NBTTagCompound nbt,
java.lang.String blockName,
java.lang.String metadataName) |
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() |
boolean |
isAir() |
boolean |
matchesWorld(net.minecraft.world.IBlockAccess world) |
BlockState |
offset(BlockPos pos) |
void |
placeBlock(net.minecraft.world.World world) |
void |
placeBlock(net.minecraft.world.World world,
int flag) |
BlockState |
rotate(int rotation) |
void |
rotateInWorld(net.minecraft.world.World world,
int rotation) |
static net.minecraft.nbt.NBTTagCompound |
toNBT(net.minecraft.nbt.NBTTagCompound nbt,
BlockState state) |
static net.minecraft.nbt.NBTTagCompound |
toNBT(net.minecraft.nbt.NBTTagCompound nbt,
BlockState state,
java.lang.String blockName,
java.lang.String metadataName) |
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 boolean isAir()
public BlockState offset(BlockPos pos)
public BlockState rotate(int rotation)
public void rotateInWorld(net.minecraft.world.World world,
int rotation)
public void placeBlock(net.minecraft.world.World world)
public void placeBlock(net.minecraft.world.World world,
int flag)
public void breakBlock(net.minecraft.world.World world,
int flag)
public boolean matchesWorld(net.minecraft.world.IBlockAccess world)
public static java.lang.Iterable<BlockState> getAllInBox(net.minecraft.world.IBlockAccess world, BlockPos from, BlockPos to, net.minecraft.block.Block block, boolean skipAir)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static BlockState fromNBT(net.minecraft.nbt.NBTTagCompound nbt)
public static BlockState fromNBT(net.minecraft.nbt.NBTTagCompound nbt, java.lang.String blockName, java.lang.String metadataName)
public static net.minecraft.nbt.NBTTagCompound toNBT(net.minecraft.nbt.NBTTagCompound nbt,
BlockState state)
public static net.minecraft.nbt.NBTTagCompound toNBT(net.minecraft.nbt.NBTTagCompound nbt,
BlockState state,
java.lang.String blockName,
java.lang.String metadataName)