Record Class ConditionItemModel.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.render.item.model.ConditionItemModel.Unbaked
- Record Components:
property-onTrue-onFalse-
- All Implemented Interfaces:
ItemModel.Unbaked,ResolvableModel
- Enclosing class:
ConditionItemModel
@Environment(CLIENT)
public static record ConditionItemModel.Unbaked(BooleanProperty property, ItemModel.Unbaked onTrue, ItemModel.Unbaked onFalse)
extends Record
implements ItemModel.Unbaked
- Mappings:
Namespace Name named net/minecraft/client/render/item/model/ConditionItemModel$Unbakedintermediary net/minecraft/class_10437$class_10438official hbk$anamed propertyintermediary comp_3387official bnamed onTrueintermediary comp_3388official cnamed onFalseintermediary comp_3389official d
-
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<ConditionItemModel.Unbaked> private final ItemModel.UnbakedThe field for theonFalserecord component.private final ItemModel.UnbakedThe field for theonTruerecord component.private final BooleanPropertyThe field for thepropertyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(BooleanProperty booleanProperty, ItemModel.Unbaked unbaked, ItemModel.Unbaked unbaked2) -
Method Summary
Modifier and TypeMethodDescriptionbake(ItemModel.BakeContext context) final booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<ConditionItemModel.Unbaked> getCodec()final inthashCode()Returns a hash code value for this object.onFalse()Returns the value of theonFalserecord component.onTrue()Returns the value of theonTruerecord component.property()Returns the value of thepropertyrecord component.voidresolve(ResolvableModel.Resolver resolver) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
property
The field for thepropertyrecord component. -
onTrue
The field for theonTruerecord component. -
onFalse
The field for theonFalserecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/render/item/model/ConditionItemModel$Unbaked;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_55333Lnet/minecraft/class_10437$class_10438;field_55333:Lcom/mojang/serialization/MapCodec;official aLhbk$a;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Unbaked
public Unbaked(BooleanProperty booleanProperty, ItemModel.Unbaked unbaked, ItemModel.Unbaked unbaked2)
-
-
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 aLhbm$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 aLhbm$b;a(Lhbm$a;)Lhbm;
-
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 aLhhl;a(Lhhl$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
-
onTrue
Returns the value of theonTruerecord component.- Returns:
- the value of the
onTruerecord component
-
onFalse
Returns the value of theonFalserecord component.- Returns:
- the value of the
onFalserecord component
-