Record Class SimpleMultipartModelSelector

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.SimpleMultipartModelSelector
Record Components:
tests -
All Implemented Interfaces:
MultipartModelCondition

@Environment(CLIENT) public record SimpleMultipartModelSelector(Map<String,SimpleMultipartModelSelector.Terms> tests) extends Record implements MultipartModelCondition
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/SimpleMultipartModelSelector
intermediary net/minecraft/class_818
official gto
named tests
intermediary comp_3760
official c
  • Field Details Link icon

    • tests Link icon

      The field for the tests record component.
    • LOGGER Link icon

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/render/model/json/SimpleMultipartModelSelector;LOGGER:Lorg/slf4j/Logger;
      intermediary field_56944 Lnet/minecraft/class_818;field_56944:Lorg/slf4j/Logger;
      official d Lgto;d:Lorg/slf4j/Logger;
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<SimpleMultipartModelSelector> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/render/model/json/SimpleMultipartModelSelector;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_56943 Lnet/minecraft/class_818;field_56943:Lcom/mojang/serialization/Codec;
      official b Lgto;b:Lcom/mojang/serialization/Codec;
  • Constructor Details Link icon

  • Method Details Link icon

    • instantiate Link icon

      public <O, S extends State<O, S>> Predicate<S> instantiate(StateManager<O,S> value)
      Specified by:
      instantiate in interface MultipartModelCondition
      Mappings:
      Namespace Name Mixin selector
      named instantiate Lnet/minecraft/client/render/model/json/MultipartModelCondition;instantiate(Lnet/minecraft/state/StateManager;)Ljava/util/function/Predicate;
      intermediary instantiate Lnet/minecraft/class_815;instantiate(Lnet/minecraft/class_2689;)Ljava/util/function/Predicate;
      official instantiate Lgtn;instantiate(Lebr;)Ljava/util/function/Predicate;
    • init Link icon

      private static <O, S extends State<O, S>> Predicate<S> init(StateManager<O,S> stateManager, String property, SimpleMultipartModelSelector.Terms terms)
      Mappings:
      Namespace Name Mixin selector
      named init Lnet/minecraft/client/render/model/json/SimpleMultipartModelSelector;init(Lnet/minecraft/state/StateManager;Ljava/lang/String;Lnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Terms;)Ljava/util/function/Predicate;
      intermediary method_67961 Lnet/minecraft/class_818;method_67961(Lnet/minecraft/class_2689;Ljava/lang/String;Lnet/minecraft/class_818$class_10808;)Ljava/util/function/Predicate;
      official a Lgto;a(Lebr;Ljava/lang/String;Lgto$b;)Ljava/util/function/Predicate;
    • toString Link icon

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • tests Link icon

      Returns the value of the tests record component.
      Returns:
      the value of the tests record component