Class StateDefinition<O,​S extends StateHolder<O,​S>>

java.lang.Object
net.minecraft.world.level.block.state.StateDefinition<O,​S>

public class StateDefinition<O,​S extends StateHolder<O,​S>> extends Object
  • Field Details

    • NAME_PATTERN

      static final Pattern NAME_PATTERN
    • owner

      private final O owner
    • propertiesByName

      private final com.google.common.collect.ImmutableSortedMap<String,​Property<?>> propertiesByName
    • states

      private final com.google.common.collect.ImmutableList<S extends StateHolder<O,​S>> states
  • Constructor Details

  • Method Details

    • appendPropertyCodec

      private static <S extends StateHolder<?,​ S>,​ T extends Comparable<T>> com.mojang.serialization.MapCodec<S> appendPropertyCodec(com.mojang.serialization.MapCodec<S> p_61077_, Supplier<S> p_61078_, String p_61079_, Property<T> p_61080_)
    • getPossibleStates

      public com.google.common.collect.ImmutableList<S> getPossibleStates()
    • any

      public S any()
    • getOwner

      public O getOwner()
    • getProperties

      public Collection<Property<?>> getProperties()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getProperty

      @Nullable public Property<?> getProperty(String p_61082_)