public class MCBlockState extends MCBlockProperties implements crafttweaker.api.block.IBlockState
Constructor and Description |
---|
MCBlockState(net.minecraft.block.state.IBlockState blockState) |
Modifier and Type | Method and Description |
---|---|
crafttweaker.api.block.IBlockStateMatcher |
allowValuesForProperty(java.lang.String name,
java.lang.String... values) |
int |
compare(crafttweaker.api.block.IBlockState other) |
java.util.List<java.lang.String> |
getAllowedValuesForProperty(java.lang.String name) |
crafttweaker.api.block.IBlock |
getBlock() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getMatchedProperties() |
java.util.List<java.lang.String> |
getMatchedValuesForProperty(java.lang.String name) |
java.util.Collection<crafttweaker.api.block.IBlockState> |
getMatchingBlockStates() |
int |
getMeta() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
java.util.List<java.lang.String> |
getPropertyNames() |
java.lang.String |
getPropertyValue(java.lang.String name) |
boolean |
isCompound() |
boolean |
isReplaceable(crafttweaker.api.world.IWorld world,
crafttweaker.api.world.IBlockPos blockPos) |
crafttweaker.api.block.IBlockStateMatcher |
matchBlock() |
boolean |
matches(crafttweaker.api.block.IBlockState other) |
crafttweaker.api.block.IBlockStateMatcher |
or(crafttweaker.api.block.IBlockStateMatcher matcher) |
java.lang.String |
toCommandString() |
java.lang.String |
toString() |
crafttweaker.api.block.IBlockStateMatcher |
withMatchedValuesForProperty(java.lang.String name,
java.lang.String... values) |
crafttweaker.api.block.IBlockState |
withProperty(java.lang.String name,
java.lang.String value) |
canEntitySpawn, canProvidePower, causesSuffocation, doesSideBlockRendering, getActualState, getBlockHardness, getComparatorInputOverride, getInternal, getLightOpacity, getLightValue, getMaterial, getMobilityFlag, getPlayerRelativeBlockHardness, getStrongPower, getWeakPower, hasCustomBreakingProgress, isBlockNormalCube, isFullBlock, isFullCube, isNormalCube, isOpaqueCube, isSideSolid, useNeighborBrightness
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canEntitySpawn, canProvidePower, causesSuffocation, doesSideBlockRendering, getActualState, getBlockHardness, getComparatorInputOverride, getInternal, getLightOpacity, getLightValue, getMaterial, getMobilityFlag, getPlayerRelativeBlockHardness, getStrongPower, getWeakPower, hasCustomBreakingProgress, isBlockNormalCube, isFullBlock, isFullCube, isNormalCube, isOpaqueCube, isSideSolid, useNeighborBrightness
public MCBlockState(net.minecraft.block.state.IBlockState blockState)
public crafttweaker.api.block.IBlock getBlock()
getBlock
in interface crafttweaker.api.block.IBlockState
public int getMeta()
getMeta
in interface crafttweaker.api.block.IBlockState
public boolean isReplaceable(crafttweaker.api.world.IWorld world, crafttweaker.api.world.IBlockPos blockPos)
isReplaceable
in interface crafttweaker.api.block.IBlockState
public int compare(crafttweaker.api.block.IBlockState other)
compare
in interface crafttweaker.api.block.IBlockState
public crafttweaker.api.block.IBlockState withProperty(java.lang.String name, java.lang.String value)
withProperty
in interface crafttweaker.api.block.IBlockState
public java.util.List<java.lang.String> getPropertyNames()
getPropertyNames
in interface crafttweaker.api.block.IBlockState
public java.lang.String getPropertyValue(java.lang.String name)
getPropertyValue
in interface crafttweaker.api.block.IBlockState
public java.util.List<java.lang.String> getAllowedValuesForProperty(java.lang.String name)
getAllowedValuesForProperty
in interface crafttweaker.api.block.IBlockState
public java.util.Map<java.lang.String,java.lang.String> getProperties()
getProperties
in interface crafttweaker.api.block.IBlockState
public crafttweaker.api.block.IBlockStateMatcher matchBlock()
matchBlock
in interface crafttweaker.api.block.IBlockState
public boolean matches(crafttweaker.api.block.IBlockState other)
matches
in interface crafttweaker.api.block.IBlockStateMatcher
public crafttweaker.api.block.IBlockStateMatcher or(crafttweaker.api.block.IBlockStateMatcher matcher)
or
in interface crafttweaker.api.block.IBlockStateMatcher
public java.util.Collection<crafttweaker.api.block.IBlockState> getMatchingBlockStates()
getMatchingBlockStates
in interface crafttweaker.api.block.IBlockStateMatcher
public crafttweaker.api.block.IBlockStateMatcher allowValuesForProperty(java.lang.String name, java.lang.String... values)
allowValuesForProperty
in interface crafttweaker.api.block.IBlockStateMatcher
public crafttweaker.api.block.IBlockStateMatcher withMatchedValuesForProperty(java.lang.String name, java.lang.String... values)
withMatchedValuesForProperty
in interface crafttweaker.api.block.IBlockStateMatcher
public java.util.List<java.lang.String> getMatchedValuesForProperty(java.lang.String name)
getMatchedValuesForProperty
in interface crafttweaker.api.block.IBlockStateMatcher
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getMatchedProperties()
getMatchedProperties
in interface crafttweaker.api.block.IBlockStateMatcher
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isCompound()
isCompound
in interface crafttweaker.api.block.IBlockStateMatcher
public java.lang.String toCommandString()
toCommandString
in interface crafttweaker.api.block.IBlockStateMatcher