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$UnbakedSwitchintermediary net/minecraft/class_10451$class_10454official hhm$dnamed propertyintermediary comp_3403official bnamed casesintermediary comp_3404official c
-
Field Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbake(ItemModel.BakeContext context, ItemModel fallback) private SelectItemModel.ModelSelector<T> buildModelSelector(Object2ObjectMap<T, ItemModel> models, @Nullable ContextSwapper contextSwapper) 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
-
property
The field for thepropertyrecord component. -
cases
The field for thecasesrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/render/item/model/SelectItemModel$UnbakedSwitch;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_55365Lnet/minecraft/class_10451$class_10454;field_55365:Lcom/mojang/serialization/MapCodec;official aLhhm$d;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
UnbakedSwitch
-
-
Method Details
-
bake
- Mappings:
Namespace Name Mixin selector named bakeLnet/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_65633Lnet/minecraft/class_10451$class_10454;method_65633(Lnet/minecraft/class_10439$class_10440;Lnet/minecraft/class_10439;)Lnet/minecraft/class_10439;official aLhhm$d;a(Lhhf$a;Lhhf;)Lhhf;
-
buildModelSelector
private SelectItemModel.ModelSelector<T> buildModelSelector(Object2ObjectMap<T, ItemModel> models, @Nullable @Nullable ContextSwapper contextSwapper) - Mappings:
Namespace Name Mixin selector named buildModelSelectorLnet/minecraft/client/render/item/model/SelectItemModel$UnbakedSwitch;buildModelSelector(Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;Lnet/minecraft/registry/ContextSwapper;)Lnet/minecraft/client/render/item/model/SelectItemModel$ModelSelector;intermediary method_67281Lnet/minecraft/class_10451$class_10454;method_67281(Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;Lnet/minecraft/class_10678;)Lnet/minecraft/class_10451$class_10722;official aLhhm$d;a(Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;Lbaj;)Lhhm$a;
-
resolveCases
- Mappings:
Namespace Name Mixin selector named resolveCasesLnet/minecraft/client/render/item/model/SelectItemModel$UnbakedSwitch;resolveCases(Lnet/minecraft/client/render/model/ResolvableModel$Resolver;)Vintermediary method_65635Lnet/minecraft/class_10451$class_10454;method_65635(Lnet/minecraft/class_10526$class_10103;)Vofficial aLhhm$d;a(Lhnh$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 thepropertyrecord component.- Returns:
- the value of the
propertyrecord component
-
cases
Returns the value of thecasesrecord component.- Returns:
- the value of the
casesrecord component
-