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 and Type | Field and Description |
---|---|
private Block |
block |
private static com.google.common.base.Function<IProperty<?>,java.lang.String> |
GET_NAME_FUNC |
private static java.util.regex.Pattern |
NAME_PATTERN |
private com.google.common.collect.ImmutableSortedMap<java.lang.String,IProperty<?>> |
properties |
private com.google.common.collect.ImmutableList<IBlockState> |
validStates |
Modifier | Constructor and Description |
---|---|
|
BlockStateContainer(Block blockIn,
IProperty<?>... properties) |
protected |
BlockStateContainer(Block blockIn,
IProperty<?>[] properties,
com.google.common.collect.ImmutableMap<IUnlistedProperty<?>,java.util.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<?>,java.util.Optional<?>> unlistedProperties) |
private java.util.List<java.lang.Iterable<java.lang.Comparable<?>>> |
getAllowedValues() |
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) |
private static final java.util.regex.Pattern NAME_PATTERN
private static final com.google.common.base.Function<IProperty<?>,java.lang.String> GET_NAME_FUNC
private final Block block
private final com.google.common.collect.ImmutableSortedMap<java.lang.String,IProperty<?>> properties
private final com.google.common.collect.ImmutableList<IBlockState> validStates
protected BlockStateContainer(Block blockIn, IProperty<?>[] properties, com.google.common.collect.ImmutableMap<IUnlistedProperty<?>,java.util.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<?>,java.util.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()
private java.util.List<java.lang.Iterable<java.lang.Comparable<?>>> getAllowedValues()
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)