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 Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<SelectItemModel.SwitchCase<T>> The field for thecases
record component.static final com.mojang.serialization.MapCodec
<SelectItemModel.UnbakedSwitch<?, ?>> private final P
The field for theproperty
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbake
(ItemModel.BakeContext context, ItemModel fallback) cases()
Returns the value of thecases
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.property()
Returns the value of theproperty
record component.void
resolveCases
(ResolvableModel.Resolver resolver) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
property
The field for theproperty
record component. -
cases
The field for thecases
record component. -
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
-
Method Details
-
bake
- 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
- 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
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. -
hashCode
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. -
equals
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 withObjects::equals(Object,Object)
. -
property
Returns the value of theproperty
record component.- Returns:
- the value of the
property
record component
-
cases
Returns the value of thecases
record component.- Returns:
- the value of the
cases
record component
-