Record Class ModelSettings
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.ModelSettings
- Record Components:
usesBlockLight-particleIcon-transforms-
@Environment(CLIENT)
public record ModelSettings(boolean usesBlockLight, Sprite particleIcon, ModelTransformation transforms)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/ModelSettingsintermediary net/minecraft/class_10809official hhknamed usesBlockLightintermediary comp_3766official anamed particleIconintermediary comp_3767official bnamed transformsintermediary comp_3768official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SpriteThe field for theparticleIconrecord component.private final ModelTransformationThe field for thetransformsrecord component.private final booleanThe field for theusesBlockLightrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModelSettings(boolean bool, Sprite sprite, ModelTransformation modelTransformation) -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparticleIconrecord component.static ModelSettingsresolveSettings(Baker baker, BakedSimpleModel model, ModelTextures textures) final StringtoString()Returns a string representation of this record class.Returns the value of thetransformsrecord component.booleanReturns the value of theusesBlockLightrecord component.
-
Field Details
-
usesBlockLight
private final boolean usesBlockLightThe field for theusesBlockLightrecord component. -
particleIcon
The field for theparticleIconrecord component. -
transforms
The field for thetransformsrecord component.
-
-
Constructor Details
-
ModelSettings
-
-
Method Details
-
resolveSettings
public static ModelSettings resolveSettings(Baker baker, BakedSimpleModel model, ModelTextures textures) - Mappings:
Namespace Name Mixin selector named resolveSettingsLnet/minecraft/client/render/model/ModelSettings;resolveSettings(Lnet/minecraft/client/render/model/Baker;Lnet/minecraft/client/render/model/BakedSimpleModel;Lnet/minecraft/client/render/model/ModelTextures;)Lnet/minecraft/client/render/model/ModelSettings;intermediary method_68001Lnet/minecraft/class_10809;method_68001(Lnet/minecraft/class_7775;Lnet/minecraft/class_10819;Lnet/minecraft/class_10419;)Lnet/minecraft/class_10809;official aLhhk;a(Lhmz;Lhni;Lgti;)Lhhk;
-
addSettings
- Mappings:
Namespace Name Mixin selector named addSettingsLnet/minecraft/client/render/model/ModelSettings;addSettings(Lnet/minecraft/client/render/item/ItemRenderState$LayerRenderState;Lnet/minecraft/item/ItemDisplayContext;)Vintermediary method_68000Lnet/minecraft/class_10809;method_68000(Lnet/minecraft/class_10444$class_10446;Lnet/minecraft/class_811;)Vofficial aLhhk;a(Lhhi$b;Ldai;)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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
usesBlockLight
public boolean usesBlockLight()Returns the value of theusesBlockLightrecord component.- Returns:
- the value of the
usesBlockLightrecord component
-
particleIcon
Returns the value of theparticleIconrecord component.- Returns:
- the value of the
particleIconrecord component
-
transforms
Returns the value of thetransformsrecord component.- Returns:
- the value of the
transformsrecord component
-