public class BlockStateContainer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BlockStateContainer.Builder
Forge added class to make building things easier.
|
static class |
BlockStateContainer.StateImplementation |
Modifier | Constructor and Description |
---|---|
|
BlockStateContainer(Block blockIn,
IProperty<?>... properties) |
protected |
BlockStateContainer(Block blockIn,
IProperty<?>[] properties,
com.google.common.collect.ImmutableMap<IUnlistedProperty<?>,com.google.common.base.Optional<?>> unlistedProperties) |
Modifier and Type | Method and Description |
---|---|
protected BlockStateContainer.StateImplementation |
createState(Block block,
com.google.common.collect.ImmutableMap<IProperty<?>,java.lang.Comparable<?>> properties,
com.google.common.collect.ImmutableMap<IUnlistedProperty<?>,com.google.common.base.Optional<?>> unlistedProperties) |
IBlockState |
getBaseState() |
Block |
getBlock() |
java.util.Collection<IProperty<?>> |
getProperties() |
IProperty<?> |
getProperty(java.lang.String propertyName) |
com.google.common.collect.ImmutableList<IBlockState> |
getValidStates() |
java.lang.String |
toString() |
static <T extends java.lang.Comparable<T>> |
validateProperty(Block block,
IProperty<T> property) |
protected BlockStateContainer(Block blockIn, IProperty<?>[] properties, com.google.common.collect.ImmutableMap<IUnlistedProperty<?>,com.google.common.base.Optional<?>> unlistedProperties)
protected BlockStateContainer.StateImplementation createState(Block block, com.google.common.collect.ImmutableMap<IProperty<?>,java.lang.Comparable<?>> properties, @Nullable com.google.common.collect.ImmutableMap<IUnlistedProperty<?>,com.google.common.base.Optional<?>> unlistedProperties)
public static <T extends java.lang.Comparable<T>> java.lang.String validateProperty(Block block, IProperty<T> property)
public com.google.common.collect.ImmutableList<IBlockState> getValidStates()
public IBlockState getBaseState()
public Block getBlock()
public java.util.Collection<IProperty<?>> getProperties()
public java.lang.String toString()
toString
in class java.lang.Object
@Nullable public IProperty<?> getProperty(java.lang.String propertyName)