Class StateManager<O,​S extends State<O,​S>>

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

public class StateManager<O,​S extends State<O,​S>>
extends Object
Mappings:
Namespace Name
official chu
intermediary net/minecraft/class_2689
named net/minecraft/state/StateManager
  • Field Details

    • VALID_NAME_PATTERN

      private static final Pattern VALID_NAME_PATTERN
      Mappings:
      Namespace Name Mixin selector
      official a Lchu;a:Ljava/util/regex/Pattern;
      intermediary field_12314 Lnet/minecraft/class_2689;field_12314:Ljava/util/regex/Pattern;
      named VALID_NAME_PATTERN Lnet/minecraft/state/StateManager;VALID_NAME_PATTERN:Ljava/util/regex/Pattern;
    • owner

      private final O owner
      Mappings:
      Namespace Name Mixin selector
      official b Lchu;b:Ljava/lang/Object;
      intermediary field_12317 Lnet/minecraft/class_2689;field_12317:Ljava/lang/Object;
      named owner Lnet/minecraft/state/StateManager;owner:Ljava/lang/Object;
    • properties

      private final ImmutableSortedMap<String,​Property<?>> properties
      Mappings:
      Namespace Name Mixin selector
      official c Lchu;c:Lcom/google/common/collect/ImmutableSortedMap;
      intermediary field_12316 Lnet/minecraft/class_2689;field_12316:Lcom/google/common/collect/ImmutableSortedMap;
      named properties Lnet/minecraft/state/StateManager;properties:Lcom/google/common/collect/ImmutableSortedMap;
    • states

      private final ImmutableList<S extends State<O,​S>> states
      Mappings:
      Namespace Name Mixin selector
      official d Lchu;d:Lcom/google/common/collect/ImmutableList;
      intermediary field_12315 Lnet/minecraft/class_2689;field_12315:Lcom/google/common/collect/ImmutableList;
      named states Lnet/minecraft/state/StateManager;states:Lcom/google/common/collect/ImmutableList;
  • Constructor Details

    • StateManager

      protected StateManager​(Function<O,​S> function, O o, StateManager.Factory<O,​S> factory, Map<String,​Property<?>> propertiesMap)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lchu;<init>(Ljava/util/function/Function;Ljava/lang/Object;Lchu$b;Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_2689;<init>(Ljava/util/function/Function;Ljava/lang/Object;Lnet/minecraft/class_2689$class_2691;Ljava/util/Map;)V
      named <init> Lnet/minecraft/state/StateManager;<init>(Ljava/util/function/Function;Ljava/lang/Object;Lnet/minecraft/state/StateManager$Factory;Ljava/util/Map;)V
  • Method Details

    • method_30040

      private static <S extends State<?,​ S>,​ T extends Comparable<T>> com.mojang.serialization.MapCodec<S> method_30040​(com.mojang.serialization.MapCodec<S> mapCodec, Supplier<S> supplier, String string, Property<T> property)
      Mappings:
      Namespace Name Mixin selector
      official a Lchu;a(Lcom/mojang/serialization/MapCodec;Ljava/util/function/Supplier;Ljava/lang/String;Lciw;)Lcom/mojang/serialization/MapCodec;
      intermediary method_30040 Lnet/minecraft/class_2689;method_30040(Lcom/mojang/serialization/MapCodec;Ljava/util/function/Supplier;Ljava/lang/String;Lnet/minecraft/class_2769;)Lcom/mojang/serialization/MapCodec;
      named method_30040 Lnet/minecraft/state/StateManager;method_30040(Lcom/mojang/serialization/MapCodec;Ljava/util/function/Supplier;Ljava/lang/String;Lnet/minecraft/state/property/Property;)Lcom/mojang/serialization/MapCodec;
    • getStates

      public ImmutableList<S> getStates()
      Mappings:
      Namespace Name Mixin selector
      official a Lchu;a()Lcom/google/common/collect/ImmutableList;
      intermediary method_11662 Lnet/minecraft/class_2689;method_11662()Lcom/google/common/collect/ImmutableList;
      named getStates Lnet/minecraft/state/StateManager;getStates()Lcom/google/common/collect/ImmutableList;
    • getDefaultState

      public S getDefaultState()
      Mappings:
      Namespace Name Mixin selector
      official b Lchu;b()Lchv;
      intermediary method_11664 Lnet/minecraft/class_2689;method_11664()Lnet/minecraft/class_2688;
      named getDefaultState Lnet/minecraft/state/StateManager;getDefaultState()Lnet/minecraft/state/State;
    • getOwner

      public O getOwner()
      Mappings:
      Namespace Name Mixin selector
      official c Lchu;c()Ljava/lang/Object;
      intermediary method_11660 Lnet/minecraft/class_2689;method_11660()Ljava/lang/Object;
      named getOwner Lnet/minecraft/state/StateManager;getOwner()Ljava/lang/Object;
    • getProperties

      public Collection<Property<?>> getProperties()
      Mappings:
      Namespace Name Mixin selector
      official d Lchu;d()Ljava/util/Collection;
      intermediary method_11659 Lnet/minecraft/class_2689;method_11659()Ljava/util/Collection;
      named getProperties Lnet/minecraft/state/StateManager;getProperties()Ljava/util/Collection;
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lchu;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_2689;toString()Ljava/lang/String;
      named toString Lnet/minecraft/state/StateManager;toString()Ljava/lang/String;
    • getProperty

      @Nullable public Property<?> getProperty​(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Lchu;a(Ljava/lang/String;)Lciw;
      intermediary method_11663 Lnet/minecraft/class_2689;method_11663(Ljava/lang/String;)Lnet/minecraft/class_2769;
      named getProperty Lnet/minecraft/state/StateManager;getProperty(Ljava/lang/String;)Lnet/minecraft/state/property/Property;