public class ColorComponent extends java.lang.Object implements IBlockComponent
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.block.properties.PropertyEnum |
COLOR |
| Constructor and Description |
|---|
ColorComponent(boolean useColorMultiplier) |
| Modifier and Type | Method and Description |
|---|---|
int |
colorMultiplier(net.minecraft.block.Block block,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
int renderPass)
Gets the color multiplier to render the block in the world.
|
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. |
static net.minecraft.item.EnumDyeColor |
getColor(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos)
Gets the
color for the Block at world coords. |
static net.minecraft.item.EnumDyeColor |
getColor(net.minecraft.block.state.IBlockState state)
Gets the
color for the IBlockState. |
net.minecraft.item.Item |
getItem(net.minecraft.block.Block block) |
net.minecraft.block.material.MapColor |
getMapColor(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Get the
MapColor for this Block and the given IBlockState. |
int |
getMetaFromState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Get the metadata from the
IBlockState |
net.minecraft.block.properties.PropertyEnum |
getProperty()
Gets the
IProperty used by this IBlockComponent. |
int |
getRenderColor(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Gets the render color for this
Block. |
net.minecraft.block.state.IBlockState |
getStateFromMeta(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state,
int meta)
Get the
IBlockState from the metadata |
void |
getSubBlocks(net.minecraft.block.Block block,
net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs tab,
java.util.List list)
Fills the list with the sub-blocks associated with this
Block. |
java.lang.String |
getUnlocalizedName(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Gets the unlocalized name for the specific
IBlockState. |
net.minecraft.block.state.IBlockState |
setDefaultState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Sets the default values for the
IBlockState. |
boolean |
useColorMultiplier() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbreakBlock, canPlaceBlockAt, canPlaceBlockOnSide, getBoundingBox, getBoundingBoxes, getComponent, getDependencies, getItemDropped, getLightOpacity, getMixedBrightnessForBlock, getProperties, getProperty, isFullBlock, isFullCube, isOpaqueCube, onBlockActivated, onBlockPlaced, onBlockPlacedBy, onNeighborBlockChange, quantityDropped, shouldSideBeRenderedpublic boolean useColorMultiplier()
public net.minecraft.block.properties.PropertyEnum 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.lang.String getUnlocalizedName(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockComponentIBlockState.getUnlocalizedName in interface IBlockComponentblock - the blockstate - the statepublic net.minecraft.item.Item getItem(net.minecraft.block.Block block)
getItem in interface IBlockComponentpublic int damageDropped(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockComponentBlock is dropped.damageDropped in interface IBlockComponentblock - the blockstate - the statepublic void getSubBlocks(net.minecraft.block.Block block,
net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs tab,
java.util.List list)
IBlockComponentBlock.getSubBlocks in interface IBlockComponentblock - the blockitem - the itemtab - the tablist - the listpublic int colorMultiplier(net.minecraft.block.Block block,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
int renderPass)
IBlockComponentcolorMultiplier in interface IBlockComponentblock - the blockworld - the worldpos - the posrenderPass - the render passpublic int getRenderColor(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Block.getRenderColor in interface IBlockComponentblock - the blockstate - the statepublic net.minecraft.block.material.MapColor getMapColor(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
MapColor for this Block and the given IBlockState.getMapColor 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)
IBlockState from the metadatagetStateFromMeta in interface IBlockComponentblock - the blockstate - the statemeta - the metapublic int getMetaFromState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockStategetMetaFromState in interface IBlockComponentblock - the blockstate - the statepublic static net.minecraft.item.EnumDyeColor getColor(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos)
color for the Block at world coords.world - the worldpos - the posColorComponentpublic static net.minecraft.item.EnumDyeColor getColor(net.minecraft.block.state.IBlockState state)
color for the IBlockState.state - the stateColorComponent