Record Class MultipartModelComponent

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.MultipartModelComponent
Record Components:
selector -
model -

@Environment(CLIENT) public record MultipartModelComponent(Optional<MultipartModelCondition> selector, BlockStateModel.Unbaked model) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/MultipartModelComponent
intermediary net/minecraft/class_819
official gtq
named selector
intermediary comp_3764
official b
named model
intermediary comp_3765
official c
  • Field Details Link icon

    • selector Link icon

      private final Optional<MultipartModelCondition> selector
      The field for the selector record component.
    • model Link icon

      private final BlockStateModel.Unbaked model
      The field for the model record component.
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<MultipartModelComponent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/render/model/json/MultipartModelComponent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_56952 Lnet/minecraft/class_819;field_56952:Lcom/mojang/serialization/Codec;
      official a Lgtq;a:Lcom/mojang/serialization/Codec;
  • Constructor Details Link icon

    • MultipartModelComponent Link icon

      public MultipartModelComponent(Optional<MultipartModelCondition> optional, BlockStateModel.Unbaked model)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/model/json/MultipartModelComponent;<init>(Ljava/util/Optional;Lnet/minecraft/client/render/model/BlockStateModel$Unbaked;)V
      intermediary <init> Lnet/minecraft/class_819;<init>(Ljava/util/Optional;Lnet/minecraft/class_1087$class_10892;)V
      official <init> Lgtq;<init>(Ljava/util/Optional;Lgta$b;)V
  • Method Details Link icon

    • init Link icon

      public <O, S extends State<O, S>> Predicate<S> init(StateManager<O,S> value)
      Mappings:
      Namespace Name Mixin selector
      named init Lnet/minecraft/client/render/model/json/MultipartModelComponent;init(Lnet/minecraft/state/StateManager;)Ljava/util/function/Predicate;
      intermediary method_67981 Lnet/minecraft/class_819;method_67981(Lnet/minecraft/class_2689;)Ljava/util/function/Predicate;
      official a Lgtq;a(Lebr;)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.
    • selector Link icon

      public Optional<MultipartModelCondition> selector()
      Returns the value of the selector record component.
      Returns:
      the value of the selector record component
    • model Link icon

      public BlockStateModel.Unbaked model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component