public class WallComponent extends java.lang.Object implements IBlockComponent, IMergedBlock, ISmartCull
MalisisBlock makes it behave like walls.DirectionalComponent is automatically added to the block.| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.block.properties.PropertyBool |
CORNER |
| Constructor and Description |
|---|
WallComponent() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMerge(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
Checks whether the block can be merged into a corner.
|
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 dependencies needed for this
WallComponent. |
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 property to use for this
WallComponent. |
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 |
isCorner(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
Gets whether the wall is a corner or not.
|
static boolean |
isCorner(net.minecraft.block.state.IBlockState state)
Gets whether the wall is a corner or not.
|
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. |
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 |
mergeBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ)
Merges the
IBlockState into a corner if possible. |
java.lang.Integer |
quantityDropped(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state,
int fortune,
java.util.Random random)
Quantity the quantity dropped by the
Block when broken. |
net.minecraft.block.state.IBlockState |
setDefaultState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Sets the default value to use for this
WallComponent. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbreakBlock, canPlaceBlockAt, canPlaceBlockOnSide, damageDropped, getBoundingBox, getItem, getItemDropped, getLightOpacity, getMapColor, getPackedLightmapCoords, getProperties, getSubBlocks, getUnlocalizedName, onBlockActivated, onBlockAdded, onBlockPlaced, onBlockPlacedBy, onNeighborBlockChange, shouldSideBeRenderedgetComponent, isClientComponentmergeSelfOnlyshouldSmartCull, shouldSmartCullpublic net.minecraft.block.properties.PropertyBool getProperty()
WallComponent.getProperty in interface IBlockComponentpublic net.minecraft.block.state.IBlockState setDefaultState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
WallComponent.setDefaultState in interface IBlockComponentblock - the blockstate - the statepublic java.util.List<IComponent> getDependencies()
WallComponent.getDependencies in interface IComponentpublic boolean canMerge(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
canMerge in interface IMergedBlockitemStack - the item stackplayer - the playerworld - the worldpos - the posside - the sidepublic net.minecraft.block.state.IBlockState mergeBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ)
IBlockState into a corner if possible.mergeBlock in interface IMergedBlockworld - the worldpos - the posstate - the stateitemStack - the item stackplayer - the playerside - the sidehitX - the hit xhitY - the hit yhitZ - the hit zpublic net.minecraft.block.state.IBlockState getStateFromMeta(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state,
int meta)
IBlockState from meta.getStateFromMeta in interface IBlockComponentblock - the blockstate - the statemeta - the metapublic int getMetaFromState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockState.getMetaFromState in interface IBlockComponentblock - the blockstate - the statepublic 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)
getBoundingBoxes in interface IBlockComponentblock - the blockworld - the worldpos - the postype - the typepublic 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 java.lang.Integer quantityDropped(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state,
int fortune,
java.util.Random random)
Block when broken.quantityDropped in interface IBlockComponentblock - the blockstate - the statefortune - the fortunerandom - the randompublic static boolean isCorner(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
world - the worldpos - the posDirectionalComponentpublic static boolean isCorner(net.minecraft.block.state.IBlockState state)
state - the stateDirectionalComponent