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 Details Link icon

    • usesBlockLight Link icon

      private final boolean usesBlockLight
      The field for the usesBlockLight record component.
    • particleIcon Link icon

      private final Sprite particleIcon
      The field for the particleIcon record component.
    • transforms Link icon

      private final ModelTransformation transforms
      The field for the transforms record component.
  • Constructor Details Link icon

  • Method Details Link icon

    • resolveSettings Link icon

      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 Link icon

      public void addSettings(ItemRenderState.LayerRenderState state, ItemDisplayContext mode)
      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 Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • usesBlockLight Link icon

      public boolean usesBlockLight()
      Returns the value of the usesBlockLight record component.
      Returns:
      the value of the usesBlockLight record component
    • particleIcon Link icon

      public Sprite particleIcon()
      Returns the value of the particleIcon record component.
      Returns:
      the value of the particleIcon record component
    • transforms Link icon

      public ModelTransformation transforms()
      Returns the value of the transforms record component.
      Returns:
      the value of the transforms record component