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/ModelSettings
intermediary net/minecraft/class_10809
official hhk
named usesBlockLight
intermediary comp_3766
official a
named particleIcon
intermediary comp_3767
official b
named transforms
intermediary comp_3768
official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Sprite
The field for theparticleIcon
record component.private final ModelTransformation
The field for thetransforms
record component.private final boolean
The field for theusesBlockLight
record component. -
Constructor Summary
ConstructorsConstructorDescriptionModelSettings
(boolean bool, Sprite sprite, ModelTransformation modelTransformation) -
Method Summary
Modifier and TypeMethodDescriptionvoid
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theparticleIcon
record component.static ModelSettings
resolveSettings
(Baker baker, BakedSimpleModel model, ModelTextures textures) final String
toString()
Returns a string representation of this record class.Returns the value of thetransforms
record component.boolean
Returns the value of theusesBlockLight
record component.
-
Field Details
-
usesBlockLight
private final boolean usesBlockLightThe field for theusesBlockLight
record component. -
particleIcon
The field for theparticleIcon
record component. -
transforms
The field for thetransforms
record component.
-
-
Constructor Details
-
Method Details
-
resolveSettings
public static ModelSettings resolveSettings(Baker baker, BakedSimpleModel model, ModelTextures textures) - Mappings:
Namespace Name Mixin selector named resolveSettings
Lnet/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_68001
Lnet/minecraft/class_10809;method_68001(Lnet/minecraft/class_7775;Lnet/minecraft/class_10819;Lnet/minecraft/class_10419;)Lnet/minecraft/class_10809;
official a
Lhhk;a(Lhmz;Lhni;Lgti;)Lhhk;
-
addSettings
- Mappings:
Namespace Name Mixin selector named addSettings
Lnet/minecraft/client/render/model/ModelSettings;addSettings(Lnet/minecraft/client/render/item/ItemRenderState$LayerRenderState;Lnet/minecraft/item/ItemDisplayContext;)V
intermediary method_68000
Lnet/minecraft/class_10809;method_68000(Lnet/minecraft/class_10444$class_10446;Lnet/minecraft/class_811;)V
official a
Lhhk;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 theusesBlockLight
record component.- Returns:
- the value of the
usesBlockLight
record component
-
particleIcon
Returns the value of theparticleIcon
record component.- Returns:
- the value of the
particleIcon
record component
-
transforms
Returns the value of thetransforms
record component.- Returns:
- the value of the
transforms
record component
-