Class StateContainer<O,S extends StateHolder<O,S>>

java.lang.Object
net.minecraft.state.StateContainer<O,S>

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

    • NAME_PATTERN

      private 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_241487_0_, Supplier<S> p_241487_1_, String p_241487_2_, Property<T> p_241487_3_)
    • 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_185920_1_)