Record Class JsonUnbakedModel

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.JsonUnbakedModel
Record Components:
geometry -
guiLight -
ambientOcclusion -
transformations -
textures -
parent -
All Implemented Interfaces:
UnbakedModel

@Environment(CLIENT) public record JsonUnbakedModel(Geometry geometry, UnbakedModel.GuiLight guiLight, Boolean ambientOcclusion, ModelTransformation transformations, ModelTextures.Textures textures, Identifier parent) extends Record implements UnbakedModel
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/JsonUnbakedModel
intermediary net/minecraft/class_793
official hmb
named geometry
intermediary comp_3739
official b
named guiLight
intermediary comp_3740
official d
named ambientOcclusion
intermediary comp_3741
official e
named transformations
intermediary comp_3742
official f
named textures
intermediary comp_3743
official g
named parent
intermediary comp_3744
official h
  • Field Details

    • geometry

      private final Geometry geometry
      The field for the geometry record component.
    • guiLight

      private final UnbakedModel.GuiLight guiLight
      The field for the guiLight record component.
    • ambientOcclusion

      private final Boolean ambientOcclusion
      The field for the ambientOcclusion record component.
    • transformations

      private final ModelTransformation transformations
      The field for the transformations record component.
    • textures

      private final ModelTextures.Textures textures
      The field for the textures record component.
    • parent

      private final Identifier parent
      The field for the parent record component.
    • GSON

      static final Gson GSON
      Mappings:
      Namespace Name Mixin selector
      named GSON Lnet/minecraft/client/render/model/json/JsonUnbakedModel;GSON:Lcom/google/gson/Gson;
      intermediary field_4254 Lnet/minecraft/class_793;field_4254:Lcom/google/gson/Gson;
      official a Lhmb;a:Lcom/google/gson/Gson;
  • Constructor Details

  • Method Details

    • deserialize

      public static JsonUnbakedModel deserialize(Reader input)
      Mappings:
      Namespace Name Mixin selector
      named deserialize Lnet/minecraft/client/render/model/json/JsonUnbakedModel;deserialize(Ljava/io/Reader;)Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
      intermediary method_3437 Lnet/minecraft/class_793;method_3437(Ljava/io/Reader;)Lnet/minecraft/class_793;
      official a Lhmb;a(Ljava/io/Reader;)Lhmb;
    • toString

      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

      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

      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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • geometry

      public @Nullable Geometry geometry()
      Returns the value of the geometry record component.
      Specified by:
      geometry in interface UnbakedModel
      Returns:
      the value of the geometry record component
    • guiLight

      public @Nullable UnbakedModel.GuiLight guiLight()
      Returns the value of the guiLight record component.
      Specified by:
      guiLight in interface UnbakedModel
      Returns:
      the value of the guiLight record component
    • ambientOcclusion

      public @Nullable Boolean ambientOcclusion()
      Returns the value of the ambientOcclusion record component.
      Specified by:
      ambientOcclusion in interface UnbakedModel
      Returns:
      the value of the ambientOcclusion record component
    • transformations

      public @Nullable ModelTransformation transformations()
      Returns the value of the transformations record component.
      Specified by:
      transformations in interface UnbakedModel
      Returns:
      the value of the transformations record component
    • textures

      public ModelTextures.Textures textures()
      Returns the value of the textures record component.
      Specified by:
      textures in interface UnbakedModel
      Returns:
      the value of the textures record component
    • parent

      public @Nullable Identifier parent()
      Returns the value of the parent record component.
      Specified by:
      parent in interface UnbakedModel
      Returns:
      the value of the parent record component