Record Class RangeDispatchItemModel.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.render.item.model.RangeDispatchItemModel.Unbaked
- Record Components:
- property-
- scale-
- entries-
- fallback-
- All Implemented Interfaces:
- ItemModel.Unbaked,- ResolvableModel
- Enclosing class:
- RangeDispatchItemModel
@Environment(CLIENT)
public static record RangeDispatchItemModel.Unbaked(NumericProperty property, float scale, List<RangeDispatchItemModel.Entry> entries, Optional<ItemModel.Unbaked> fallback)
extends Record
implements ItemModel.Unbaked
- Mappings:
- Namespace - Name - named - net/minecraft/client/render/item/model/RangeDispatchItemModel$Unbaked- intermediary - net/minecraft/class_10448$class_10450- official - hbr$b- named - property- intermediary - comp_3395- official - b- named - scale- intermediary - comp_3396- official - c- named - entries- intermediary - comp_3397- official - d- named - fallback- intermediary - comp_3398- official - e
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.render.model.ResolvableModelResolvableModel.Resolver
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<RangeDispatchItemModel.Unbaked> private final List<RangeDispatchItemModel.Entry> The field for theentriesrecord component.private final Optional<ItemModel.Unbaked> The field for thefallbackrecord component.private final NumericPropertyThe field for thepropertyrecord component.private final floatThe field for thescalerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionUnbaked(NumericProperty numericProperty, float float2, List<RangeDispatchItemModel.Entry> list, Optional<ItemModel.Unbaked> optional) 
- 
Method SummaryModifier and TypeMethodDescriptionbake(ItemModel.BakeContext context) entries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.fallback()Returns the value of thefallbackrecord component.com.mojang.serialization.MapCodec<RangeDispatchItemModel.Unbaked> getCodec()final inthashCode()Returns a hash code value for this object.property()Returns the value of thepropertyrecord component.voidresolve(ResolvableModel.Resolver resolver) floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
propertyThe field for thepropertyrecord component.
- 
scaleprivate final float scaleThe field for thescalerecord component.
- 
entriesThe field for theentriesrecord component.
- 
fallbackThe field for thefallbackrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/client/render/item/model/RangeDispatchItemModel$Unbaked;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_55361- Lnet/minecraft/class_10448$class_10450;field_55361:Lcom/mojang/serialization/MapCodec;- official - a- Lhbr$b;a:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details- 
Unbakedpublic Unbaked(NumericProperty numericProperty, float float2, List<RangeDispatchItemModel.Entry> list, Optional<ItemModel.Unbaked> optional) 
 
- 
- 
Method Details- 
getCodec- Specified by:
- getCodecin interface- ItemModel.Unbaked
- Mappings:
- Namespace - Name - Mixin selector - named - getCodec- Lnet/minecraft/client/render/item/model/ItemModel$Unbaked;getCodec()Lcom/mojang/serialization/MapCodec;- intermediary - method_65585- Lnet/minecraft/class_10439$class_10441;method_65585()Lcom/mojang/serialization/MapCodec;- official - a- Lhbm$b;a()Lcom/mojang/serialization/MapCodec;
 
- 
bake- Specified by:
- bakein interface- ItemModel.Unbaked
- Mappings:
- Namespace - Name - Mixin selector - named - bake- Lnet/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_65587- Lnet/minecraft/class_10439$class_10441;method_65587(Lnet/minecraft/class_10439$class_10440;)Lnet/minecraft/class_10439;- official - a- Lhbm$b;a(Lhbm$a;)Lhbm;
 
- 
resolve- Specified by:
- resolvein interface- ResolvableModel
- Mappings:
- Namespace - Name - Mixin selector - named - resolve- Lnet/minecraft/client/render/model/ResolvableModel;resolve(Lnet/minecraft/client/render/model/ResolvableModel$Resolver;)V- intermediary - method_62326- Lnet/minecraft/class_10526;method_62326(Lnet/minecraft/class_10526$class_10103;)V- official - a- Lhhl;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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
propertyReturns the value of thepropertyrecord component.- Returns:
- the value of the propertyrecord component
 
- 
scalepublic float scale()Returns the value of thescalerecord component.- Returns:
- the value of the scalerecord component
 
- 
entriesReturns the value of theentriesrecord component.- Returns:
- the value of the entriesrecord component
 
- 
fallbackReturns the value of thefallbackrecord component.- Returns:
- the value of the fallbackrecord component
 
 
-