public interface IMultiBlock extends IBlockDirectional
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.block.properties.PropertyBool |
ORIGIN |
ALL, HORIZONTAL| Modifier and Type | Method and Description |
|---|---|
default void |
breakBlock(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
default int |
getMetaFromState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Gets the metadata from the
IBlockState. |
MultiBlock |
getMultiBlock(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.item.ItemStack itemStack) |
default net.minecraft.block.properties.PropertyBool |
getOriginProperty() |
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. |
static boolean |
isOrigin(net.minecraft.block.state.IBlockState state) |
static boolean |
isOrigin(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos) |
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. |
default void |
onBlockPlacedBy(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack) |
getDirection, getDirection, getPlacingDirection, getPropertyDirectionMultiBlock getMultiBlock(net.minecraft.world.IBlockAccess world, net.minecraft.util.BlockPos pos, net.minecraft.block.state.IBlockState state, net.minecraft.item.ItemStack itemStack)
default net.minecraft.block.properties.PropertyBool getOriginProperty()
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)
IBlockDirectionalIBlockState based on the placer facing.onBlockPlaced in interface IBlockDirectionalblock - the blockworld - the worldpos - the posfacing - the facinghitX - the hit xhitY - the hit yhitZ - the hit zmeta - the metaplacer - the placerdefault void onBlockPlacedBy(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack)
default void breakBlock(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state)
default net.minecraft.block.state.IBlockState getStateFromMeta(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state,
int meta)
IBlockDirectionalIBlockState from meta.getStateFromMeta in interface IBlockDirectionalblock - the blockmeta - the metadefault int getMetaFromState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockDirectionalIBlockState.getMetaFromState in interface IBlockDirectionalblock - the blockstate - the statestatic boolean isOrigin(net.minecraft.world.World world,
net.minecraft.util.BlockPos pos)
static boolean isOrigin(net.minecraft.block.state.IBlockState state)