public class ExtendedBlockState extends BlockStateContainer
Modifier and Type | Class and Description |
---|---|
protected static class |
ExtendedBlockState.ExtendedStateImplementation |
BlockStateContainer.Builder, BlockStateContainer.StateImplementation
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableSet<IUnlistedProperty<?>> |
unlistedProperties |
Constructor and Description |
---|
ExtendedBlockState(Block blockIn,
IProperty<?>[] properties,
IUnlistedProperty<?>[] unlistedProperties) |
Modifier and Type | Method and Description |
---|---|
private static com.google.common.collect.ImmutableMap<IUnlistedProperty<?>,java.util.Optional<?>> |
buildUnlistedMap(IUnlistedProperty<?>[] unlistedProperties) |
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) |
java.util.Collection<IUnlistedProperty<?>> |
getUnlistedProperties() |
getBaseState, getBlock, getProperties, getProperty, getValidStates, toString, validateProperty
private final com.google.common.collect.ImmutableSet<IUnlistedProperty<?>> unlistedProperties
public ExtendedBlockState(Block blockIn, IProperty<?>[] properties, IUnlistedProperty<?>[] unlistedProperties)
public java.util.Collection<IUnlistedProperty<?>> getUnlistedProperties()
private static com.google.common.collect.ImmutableMap<IUnlistedProperty<?>,java.util.Optional<?>> buildUnlistedMap(IUnlistedProperty<?>[] unlistedProperties)
@Nonnull protected BlockStateContainer.StateImplementation createState(@Nonnull Block block, @Nonnull com.google.common.collect.ImmutableMap<IProperty<?>,java.lang.Comparable<?>> properties, @Nullable com.google.common.collect.ImmutableMap<IUnlistedProperty<?>,java.util.Optional<?>> unlistedProperties)
createState
in class BlockStateContainer