Record Class RangeSelectItemModel.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.item.RangeSelectItemModel.Unbaked
- All Implemented Interfaces:
ItemModel.Unbaked,ResolvableModel
- Enclosing class:
RangeSelectItemModel
public static record RangeSelectItemModel.Unbaked(RangeSelectItemModelProperty property, float scale, List<RangeSelectItemModel.Entry> entries, Optional<ItemModel.Unbaked> fallback)
extends Record
implements ItemModel.Unbaked
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.model.ResolvableModel
ResolvableModel.Resolver -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<RangeSelectItemModel.Entry> The field for theentriesrecord component.private final Optional<ItemModel.Unbaked> The field for thefallbackrecord component.static final com.mojang.serialization.MapCodec<RangeSelectItemModel.Unbaked> private final RangeSelectItemModelPropertyThe field for thepropertyrecord component.private final floatThe field for thescalerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(RangeSelectItemModelProperty property, float scale, List<RangeSelectItemModel.Entry> entries, Optional<ItemModel.Unbaked> fallback) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbake(ItemModel.BakingContext p_388005_) 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.final inthashCode()Returns a hash code value for this object.property()Returns the value of thepropertyrecord component.voidresolveDependencies(ResolvableModel.Resolver p_387826_) floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.com.mojang.serialization.MapCodec<RangeSelectItemModel.Unbaked> type()
-
Field Details
-
property
The field for thepropertyrecord component. -
scale
private final float scaleThe field for thescalerecord component. -
entries
The field for theentriesrecord component. -
fallback
The field for thefallbackrecord component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
public Unbaked(RangeSelectItemModelProperty property, float scale, List<RangeSelectItemModel.Entry> entries, Optional<ItemModel.Unbaked> fallback) Creates an instance of aUnbakedrecord class.- Parameters:
property- the value for thepropertyrecord componentscale- the value for thescalerecord componententries- the value for theentriesrecord componentfallback- the value for thefallbackrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceItemModel.Unbaked
-
bake
- Specified by:
bakein interfaceItemModel.Unbaked
-
resolveDependencies
- Specified by:
resolveDependenciesin interfaceResolvableModel
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
property
Returns the value of thepropertyrecord component.- Returns:
- the value of the
propertyrecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-
fallback
Returns the value of thefallbackrecord component.- Returns:
- the value of the
fallbackrecord component
-