public class SlopedCornerComponent extends java.lang.Object implements IBlockComponent
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.block.properties.PropertyBool |
DOWN |
static net.minecraft.block.properties.PropertyBool |
INVERTED |
| Constructor and Description |
|---|
SlopedCornerComponent() |
| Modifier and Type | Method and Description |
|---|---|
int |
damageDropped(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Gets the damage value for the item when the
Block is dropped. |
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<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.IProperty<?>[] |
getProperties()
Gets the all the
properties used by this IBlockComponent. |
net.minecraft.block.properties.PropertyBool |
getProperty()
Gets the
IProperty used by this IBlockComponent. |
net.minecraft.block.state.IBlockState |
getStateFromMeta(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state,
int meta)
Gets the
IBlockState from meta. |
void |
getSubBlocks(net.minecraft.block.Block block,
net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs tab,
java.util.List<net.minecraft.item.ItemStack> list)
Fills the list with the sub-blocks associated with this
Block. |
static boolean |
isDown(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
static boolean |
isDown(net.minecraft.block.state.IBlockState state) |
java.lang.Boolean |
isFullBlock(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Checks whether this
IBlockComponent represents a full Block. |
java.lang.Boolean |
isFullCube(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Checks whether this
IBlockComponent represents a full cube. |
static boolean |
isInverted(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
static boolean |
isInverted(net.minecraft.block.state.IBlockState state) |
java.lang.Boolean |
isOpaqueCube(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Checks whether this
IBlockComponent represents an opaque cube. |
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, getBoundingBox, getItem, getItemDropped, getLightOpacity, getMapColor, getPackedLightmapCoords, getUnlocalizedName, onBlockActivated, onBlockAdded, onBlockPlacedBy, onNeighborBlockChange, quantityDropped, shouldSideBeRenderedgetComponent, isClientComponentpublic static net.minecraft.block.properties.PropertyBool INVERTED
public static net.minecraft.block.properties.PropertyBool DOWN
public net.minecraft.block.properties.PropertyBool getProperty()
IBlockComponentIProperty used by this IBlockComponent.getProperty in interface IBlockComponentpublic net.minecraft.block.properties.IProperty<?>[] getProperties()
IBlockComponentproperties used by this IBlockComponent.getProperties 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 void getSubBlocks(net.minecraft.block.Block block,
net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs tab,
java.util.List<net.minecraft.item.ItemStack> list)
IBlockComponentBlock.getSubBlocks in interface IBlockComponentblock - the blockitem - the itemtab - the tablist - the listpublic int damageDropped(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockComponentBlock is dropped.damageDropped in interface IBlockComponentblock - the blockstate - the statepublic int getMetaFromState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockComponentIBlockState.getMetaFromState in interface IBlockComponentblock - the blockstate - the statepublic 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 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 isFullBlock(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockComponentIBlockComponent represents a full Block.isFullBlock 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 isDown(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
public static boolean isDown(net.minecraft.block.state.IBlockState state)
public static boolean isInverted(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
public static boolean isInverted(net.minecraft.block.state.IBlockState state)