public class MBlockState
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MBlockState.BlockPredicate |
static class |
MBlockState.BlockStateFunction |
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.block.Block |
block |
protected net.minecraft.util.math.BlockPos |
pos |
protected net.minecraft.block.state.IBlockState |
state |
| Constructor and Description |
|---|
MBlockState(net.minecraft.block.Block block) |
MBlockState(net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block block) |
MBlockState(net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
MBlockState(net.minecraft.util.math.BlockPos pos,
MBlockState state) |
MBlockState(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
MBlockState(net.minecraft.world.IBlockAccess world,
long coord) |
MBlockState(net.minecraft.block.state.IBlockState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
breakBlock(net.minecraft.world.World world,
int flag) |
boolean |
equals(java.lang.Object obj) |
static net.minecraft.block.state.IBlockState |
fromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
static net.minecraft.block.state.IBlockState |
fromNBT(net.minecraft.nbt.NBTTagCompound nbt,
java.lang.String blockName,
java.lang.String metadataName) |
static java.lang.Iterable<MBlockState> |
getAllInBox(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos from,
net.minecraft.util.math.BlockPos to,
net.minecraft.block.Block block,
boolean skipAir) |
net.minecraft.block.Block |
getBlock() |
net.minecraft.block.state.IBlockState |
getBlockState() |
net.minecraft.util.math.BlockPos |
getPos() |
int |
getX() |
int |
getY() |
int |
getZ() |
boolean |
isAir() |
boolean |
matchesWorld(net.minecraft.world.IBlockAccess world) |
MBlockState |
offset(net.minecraft.util.math.BlockPos pos) |
void |
placeBlock(net.minecraft.world.World world) |
void |
placeBlock(net.minecraft.world.World world,
int flag) |
MBlockState |
rotate(int count) |
static net.minecraft.nbt.NBTTagCompound |
toNBT(net.minecraft.nbt.NBTTagCompound nbt,
net.minecraft.block.state.IBlockState state) |
static net.minecraft.nbt.NBTTagCompound |
toNBT(net.minecraft.nbt.NBTTagCompound nbt,
net.minecraft.block.state.IBlockState state,
java.lang.String blockName,
java.lang.String metadataName) |
java.lang.String |
toString() |
protected net.minecraft.util.math.BlockPos pos
protected net.minecraft.block.Block block
protected net.minecraft.block.state.IBlockState state
public MBlockState(net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
public MBlockState(net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block block)
public MBlockState(net.minecraft.block.state.IBlockState state)
public MBlockState(net.minecraft.block.Block block)
public MBlockState(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
public MBlockState(net.minecraft.world.IBlockAccess world,
long coord)
public MBlockState(net.minecraft.util.math.BlockPos pos,
MBlockState state)
public net.minecraft.util.math.BlockPos getPos()
public net.minecraft.block.Block getBlock()
public net.minecraft.block.state.IBlockState getBlockState()
public int getX()
public int getY()
public int getZ()
public boolean isAir()
public MBlockState offset(net.minecraft.util.math.BlockPos pos)
public MBlockState rotate(int count)
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<MBlockState> getAllInBox(net.minecraft.world.IBlockAccess world, net.minecraft.util.math.BlockPos from, net.minecraft.util.math.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 net.minecraft.block.state.IBlockState fromNBT(net.minecraft.nbt.NBTTagCompound nbt)
public static net.minecraft.block.state.IBlockState 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,
net.minecraft.block.state.IBlockState state)
public static net.minecraft.nbt.NBTTagCompound toNBT(net.minecraft.nbt.NBTTagCompound nbt,
net.minecraft.block.state.IBlockState state,
java.lang.String blockName,
java.lang.String metadataName)