Record Class SelectItemModel.UnbakedSwitch<P extends SelectProperty<T>,T>

java.lang.Object
java.lang.Record
net.minecraft.client.render.item.model.SelectItemModel.UnbakedSwitch<P,T>
Record Components:
property -
cases -
Enclosing class:
SelectItemModel<T>

@Environment(CLIENT) public static record SelectItemModel.UnbakedSwitch<P extends SelectProperty<T>,T>(P extends SelectProperty<T> property, List<SelectItemModel.SwitchCase<T>> cases) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/item/model/SelectItemModel$UnbakedSwitch
intermediary net/minecraft/class_10451$class_10454
official hbs$c
named property
intermediary comp_3403
official b
named cases
intermediary comp_3404
official c
  • Field Details Link icon

    • property Link icon

      private final P extends SelectProperty<T> property
      The field for the property record component.
    • cases Link icon

      private final List<SelectItemModel.SwitchCase<T>> cases
      The field for the cases record component.
    • CODEC Link icon

      public static final com.mojang.serialization.MapCodec<SelectItemModel.UnbakedSwitch<?,?>> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/render/item/model/SelectItemModel$UnbakedSwitch;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_55365 Lnet/minecraft/class_10451$class_10454;field_55365:Lcom/mojang/serialization/MapCodec;
      official a Lhbs$c;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details Link icon

  • Method Details Link icon

    • bake Link icon

      public ItemModel bake(ItemModel.BakeContext context, ItemModel fallback)
      Mappings:
      Namespace Name Mixin selector
      named bake Lnet/minecraft/client/render/item/model/SelectItemModel$UnbakedSwitch;bake(Lnet/minecraft/client/render/item/model/ItemModel$BakeContext;Lnet/minecraft/client/render/item/model/ItemModel;)Lnet/minecraft/client/render/item/model/ItemModel;
      intermediary method_65633 Lnet/minecraft/class_10451$class_10454;method_65633(Lnet/minecraft/class_10439$class_10440;Lnet/minecraft/class_10439;)Lnet/minecraft/class_10439;
      official a Lhbs$c;a(Lhbm$a;Lhbm;)Lhbm;
    • resolveCases Link icon

      public void resolveCases(ResolvableModel.Resolver resolver)
      Mappings:
      Namespace Name Mixin selector
      named resolveCases Lnet/minecraft/client/render/item/model/SelectItemModel$UnbakedSwitch;resolveCases(Lnet/minecraft/client/render/model/ResolvableModel$Resolver;)V
      intermediary method_65635 Lnet/minecraft/class_10451$class_10454;method_65635(Lnet/minecraft/class_10526$class_10103;)V
      official a Lhbs$c;a(Lhhl$a;)V
    • 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.
    • property Link icon

      public P property()
      Returns the value of the property record component.
      Returns:
      the value of the property record component
    • cases Link icon

      public List<SelectItemModel.SwitchCase<T>> cases()
      Returns the value of the cases record component.
      Returns:
      the value of the cases record component