Record Class SelectItemModel.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.render.item.model.SelectItemModel.Unbaked
- Record Components:
unbakedSwitch-fallback-
- All Implemented Interfaces:
ItemModel.Unbaked,ResolvableModel
- Enclosing class:
SelectItemModel<T>
@Environment(CLIENT)
public static record SelectItemModel.Unbaked(SelectItemModel.UnbakedSwitch<?,?> unbakedSwitch, Optional<ItemModel.Unbaked> fallback)
extends Record
implements ItemModel.Unbaked
- Mappings:
Namespace Name named net/minecraft/client/render/item/model/SelectItemModel$Unbakedintermediary net/minecraft/class_10451$class_10453official hhm$cnamed unbakedSwitchintermediary comp_3401official bnamed fallbackintermediary comp_3402official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.render.model.ResolvableModel
ResolvableModel.Resolver -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<SelectItemModel.Unbaked> private final Optional<ItemModel.Unbaked> The field for thefallbackrecord component.private final SelectItemModel.UnbakedSwitch<?, ?> The field for theunbakedSwitchrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(SelectItemModel.UnbakedSwitch<?, ?> unbakedSwitch, Optional<ItemModel.Unbaked> optional) -
Method Summary
Modifier and TypeMethodDescriptionbake(ItemModel.BakeContext context) final booleanIndicates whether some other object is "equal to" this one.fallback()Returns the value of thefallbackrecord component.com.mojang.serialization.MapCodec<SelectItemModel.Unbaked> getCodec()final inthashCode()Returns a hash code value for this object.voidresolve(ResolvableModel.Resolver resolver) final StringtoString()Returns a string representation of this record class.Returns the value of theunbakedSwitchrecord component.
-
Field Details
-
unbakedSwitch
The field for theunbakedSwitchrecord component. -
fallback
The field for thefallbackrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/render/item/model/SelectItemModel$Unbaked;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_55364Lnet/minecraft/class_10451$class_10453;field_55364:Lcom/mojang/serialization/MapCodec;official aLhhm$c;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Unbaked
public Unbaked(SelectItemModel.UnbakedSwitch<?, ?> unbakedSwitch, Optional<ItemModel.Unbaked> optional)
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfaceItemModel.Unbaked- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/client/render/item/model/ItemModel$Unbaked;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_65585Lnet/minecraft/class_10439$class_10441;method_65585()Lcom/mojang/serialization/MapCodec;official aLhhf$b;a()Lcom/mojang/serialization/MapCodec;
-
bake
- Specified by:
bakein interfaceItemModel.Unbaked- Mappings:
Namespace Name Mixin selector named bakeLnet/minecraft/client/render/item/model/ItemModel$Unbaked;bake(Lnet/minecraft/client/render/item/model/ItemModel$BakeContext;)Lnet/minecraft/client/render/item/model/ItemModel;intermediary method_65587Lnet/minecraft/class_10439$class_10441;method_65587(Lnet/minecraft/class_10439$class_10440;)Lnet/minecraft/class_10439;official aLhhf$b;a(Lhhf$a;)Lhhf;
-
resolve
- Specified by:
resolvein interfaceResolvableModel- Mappings:
Namespace Name Mixin selector named resolveLnet/minecraft/client/render/model/ResolvableModel;resolve(Lnet/minecraft/client/render/model/ResolvableModel$Resolver;)Vintermediary method_62326Lnet/minecraft/class_10526;method_62326(Lnet/minecraft/class_10526$class_10103;)Vofficial aLhnh;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). -
unbakedSwitch
Returns the value of theunbakedSwitchrecord component.- Returns:
- the value of the
unbakedSwitchrecord component
-
fallback
Returns the value of thefallbackrecord component.- Returns:
- the value of the
fallbackrecord component
-