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 SummaryFieldsModifier and TypeFieldDescriptionprivate final List<SelectItemModel.SwitchCase<T>> The field for thecasesrecord component.static final com.mojang.serialization.MapCodec<SelectItemModel.UnbakedSwitch<?, ?>> private final PThe field for thepropertyrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbake(ItemModel.BakeContext context, ItemModel fallback) cases()Returns the value of thecasesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.property()Returns the value of thepropertyrecord component.voidresolveCases(ResolvableModel.Resolver resolver) final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
propertyThe field for thepropertyrecord component.
- 
casesThe field for thecasesrecord 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- 
UnbakedSwitch
 
- 
- 
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
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
propertyReturns the value of thepropertyrecord component.- Returns:
- the value of the propertyrecord component
 
- 
casesReturns the value of thecasesrecord component.- Returns:
- the value of the casesrecord component
 
 
-