public interface IBlockDirectional
MalisisBlock, relevant methods automatically redirect the implement to this interface.| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.block.properties.PropertyDirection |
ALL |
static net.minecraft.block.properties.PropertyDirection |
HORIZONTAL
The
PropertyDirection direction that is used by default. |
| Modifier and Type | Method and Description |
|---|---|
static net.minecraft.util.EnumFacing |
getDirection(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos)
Gets the
direction for the Block at world coords. |
static net.minecraft.util.EnumFacing |
getDirection(net.minecraft.block.state.IBlockState state)
Gets the
direction for the IBlockState |
default int |
getMetaFromState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Gets the metadata from the
IBlockState. |
default net.minecraft.util.EnumFacing |
getPlacingDirection(net.minecraft.util.EnumFacing side,
net.minecraft.entity.EntityLivingBase placer)
Gets the direction to use when placing this
IBlockDirectional. |
default net.minecraft.block.properties.PropertyDirection |
getPropertyDirection()
Gets the property direction to use for this
IBlockDirectional. |
default net.minecraft.block.state.IBlockState |
getStateFromMeta(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state,
int meta)
Gets the
IBlockState from meta. |
default net.minecraft.block.state.IBlockState |
onBlockPlaced(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
net.minecraft.entity.EntityLivingBase placer)
Automatically gets the right
IBlockState based on the placer facing. |
static final net.minecraft.block.properties.PropertyDirection HORIZONTAL
PropertyDirection direction that is used by default.static final net.minecraft.block.properties.PropertyDirection ALL
default net.minecraft.block.properties.PropertyDirection getPropertyDirection()
IBlockDirectional.default net.minecraft.util.EnumFacing getPlacingDirection(net.minecraft.util.EnumFacing side,
net.minecraft.entity.EntityLivingBase placer)
IBlockDirectional.side - the sideplacer - the placerdefault net.minecraft.block.state.IBlockState onBlockPlaced(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
net.minecraft.entity.EntityLivingBase placer)
IBlockState based on the placer facing.block - the blockworld - the worldpos - the posfacing - the facinghitX - the hit xhitY - the hit yhitZ - the hit zmeta - the metaplacer - the placerdefault net.minecraft.block.state.IBlockState getStateFromMeta(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state,
int meta)
IBlockState from meta.block - the blockmeta - the metadefault int getMetaFromState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockState.block - the blockstate - the statestatic net.minecraft.util.EnumFacing getDirection(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos)
direction for the Block at world coords.world - the worldpos - the posIBlockDirectionalstatic net.minecraft.util.EnumFacing getDirection(net.minecraft.block.state.IBlockState state)
direction for the IBlockStatestate - the stateIBlockDirectional