public class BooleanComponent extends java.lang.Object implements IBlockComponent
| Constructor and Description |
|---|
BooleanComponent(java.lang.String name)
Instantiates a new
BooleanComponent. |
BooleanComponent(java.lang.String name,
boolean defaultValue)
Instantiates a new
BooleanComponent. |
BooleanComponent(java.lang.String name,
boolean defaultValue,
int metaOffset)
Instantiates a new
BooleanComponent. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
get(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
Gets the value of this
BooleanComponent in the World. |
boolean |
get(net.minecraft.block.state.IBlockState state)
Gets the value of this
BooleanComponent in the IBlockState. |
int |
getMetaFromState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Gets the metadata from the
IBlockState. |
java.lang.String |
getName()
Gets the name of the
PropertyBool for this BooleanComponent. |
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. |
net.minecraft.block.state.IBlockState |
invert(net.minecraft.block.state.IBlockState state)
Inverts the
IBlockState value. |
boolean |
invert(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Inverts the
IBlockState value in the World. |
net.minecraft.block.state.IBlockState |
set(net.minecraft.block.state.IBlockState state,
boolean value)
Sets the
IBlockState with the specified value. |
net.minecraft.block.state.IBlockState |
set(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
boolean value)
Sets the
IBlockState in the World with the specified value. |
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, getBoundingBoxes, getItem, getItemDropped, getLightOpacity, getMapColor, getPackedLightmapCoords, getProperties, getSubBlocks, getUnlocalizedName, isFullBlock, isFullCube, isOpaqueCube, onBlockActivated, onBlockAdded, onBlockPlaced, onBlockPlacedBy, onNeighborBlockChange, quantityDropped, shouldSideBeRenderedgetComponent, getDependencies, isClientComponentpublic BooleanComponent(java.lang.String name,
boolean defaultValue,
int metaOffset)
BooleanComponent.name - the namedefaultValue - the default valuemetaOffset - the meta offsetpublic BooleanComponent(java.lang.String name,
boolean defaultValue)
BooleanComponent.name - the namedefaultValue - the default valuepublic BooleanComponent(java.lang.String name)
BooleanComponent.name - the namepublic java.lang.String getName()
PropertyBool for this BooleanComponent.public 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 boolean get(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
BooleanComponent in the World.world - the worldpos - the pospublic boolean get(net.minecraft.block.state.IBlockState state)
BooleanComponent in the IBlockState.state - the statepublic net.minecraft.block.state.IBlockState set(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
boolean value)
IBlockState in the World with the specified value.world - the worldpos - the posvalue - the valuepublic net.minecraft.block.state.IBlockState set(net.minecraft.block.state.IBlockState state,
boolean value)
IBlockState with the specified value.state - the statevalue - the valuepublic boolean invert(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
IBlockState value in the World.world - the worldpos - the pospublic net.minecraft.block.state.IBlockState invert(net.minecraft.block.state.IBlockState state)
IBlockState value.state - 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 meta