public class StairComponent extends java.lang.Object implements IBlockComponent, ISmartCull
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.block.properties.PropertyBool |
TOP |
| Constructor and Description |
|---|
StairComponent() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.math.AxisAlignedBB[] |
getBoundingBoxes(net.minecraft.block.Block block,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
BoundingBoxType type)
Gets the bounding boxes for the
Block. |
java.util.List<net.minecraft.util.math.AxisAlignedBB> |
getBounds(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
java.util.List<IComponent> |
getDependencies()
Gets the additional components that this
IComponent depends on. |
int |
getMetaFromState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Gets the metadata from the
IBlockState. |
net.minecraft.block.properties.PropertyBool |
getProperty()
Gets the
IProperty used by this IBlockComponent. |
static net.minecraft.util.EnumFacing |
getStairDirection(net.minecraft.block.state.IBlockState state) |
net.minecraft.block.state.IBlockState |
getStateFromMeta(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state,
int meta)
Gets the
IBlockState from meta. |
java.lang.Boolean |
isFullCube(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Checks whether this
IBlockComponent represents a full cube. |
java.lang.Boolean |
isOpaqueCube(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Checks whether this
IBlockComponent represents an opaque cube. |
static boolean |
isStairs(net.minecraft.block.Block block) |
static boolean |
isTop(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
static boolean |
isTop(net.minecraft.block.state.IBlockState state) |
net.minecraft.block.state.IBlockState |
onBlockPlaced(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.math.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)
Called when the
Block is placed in the World. |
net.minecraft.block.state.IBlockState |
setDefaultState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Sets the default values for the
IBlockState. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbreakBlock, canPlaceBlockAt, canPlaceBlockOnSide, damageDropped, getBoundingBox, getItem, getItemDropped, getLightOpacity, getMapColor, getPackedLightmapCoords, getProperties, getSubBlocks, getUnlocalizedName, isFullBlock, onBlockActivated, onBlockAdded, onBlockPlacedBy, onNeighborBlockChange, quantityDropped, shouldSideBeRenderedgetComponent, isClientComponentshouldSmartCull, shouldSmartCullpublic net.minecraft.block.properties.PropertyBool getProperty()
IBlockComponentIProperty used by this IBlockComponent.getProperty in interface IBlockComponentpublic net.minecraft.block.state.IBlockState setDefaultState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockComponentIBlockState.setDefaultState in interface IBlockComponentblock - the blockstate - the statepublic java.util.List<IComponent> getDependencies()
IComponentIComponent depends on.getDependencies in interface IComponentpublic net.minecraft.block.state.IBlockState onBlockPlaced(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.math.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)
IBlockComponentBlock is placed in the World.onBlockPlaced in interface IBlockComponentblock - the blockworld - the worldpos - the posstate - the statefacing - the facinghitX - the hit xhitY - the hit yhitZ - the hit zmeta - the metaplacer - the placerpublic net.minecraft.util.math.AxisAlignedBB[] getBoundingBoxes(net.minecraft.block.Block block,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
BoundingBoxType type)
IBlockComponentBlock.getBoundingBoxes in interface IBlockComponentblock - the blockworld - the worldpos - the postype - the typepublic java.util.List<net.minecraft.util.math.AxisAlignedBB> getBounds(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
public net.minecraft.block.state.IBlockState getStateFromMeta(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state,
int meta)
IBlockComponentIBlockState from meta.getStateFromMeta in interface IBlockComponentblock - the blockmeta - the metapublic int getMetaFromState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockComponentIBlockState.getMetaFromState in interface IBlockComponentblock - the blockstate - the statepublic java.lang.Boolean isOpaqueCube(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockComponentIBlockComponent represents an opaque cube.isOpaqueCube in interface IBlockComponentblock - the blockstate - the statepublic java.lang.Boolean isFullCube(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockComponentIBlockComponent represents a full cube.isFullCube in interface IBlockComponentblock - the blockstate - the statepublic static boolean isStairs(net.minecraft.block.Block block)
public static boolean isTop(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
public static boolean isTop(net.minecraft.block.state.IBlockState state)
public static net.minecraft.util.EnumFacing getStairDirection(net.minecraft.block.state.IBlockState state)