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(@Nullable Geometry geometry, UnbakedModel.GuiLight guiLight, @Nullable Boolean ambientOcclusion, @Nullable ModelTransformation transformations, ModelTextures.Textures textures, @Nullable Identifier parent) extends Record implements UnbakedModel
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/JsonUnbakedModel
intermediary net/minecraft/class_793
official hkw
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

  • Constructor Details

    • JsonUnbakedModel

      public JsonUnbakedModel(@Nullable @Nullable Geometry geometry, @Nullable UnbakedModel.GuiLight guiLight, @Nullable @Nullable Boolean ambientOcclusion, @Nullable @Nullable ModelTransformation transforms, ModelTextures.Textures textureSlots, @Nullable @Nullable Identifier parent)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/model/json/JsonUnbakedModel;<init>(Lnet/minecraft/client/render/model/Geometry;Lnet/minecraft/client/render/model/UnbakedModel$GuiLight;Ljava/lang/Boolean;Lnet/minecraft/client/render/model/json/ModelTransformation;Lnet/minecraft/client/render/model/ModelTextures$Textures;Lnet/minecraft/util/Identifier;)V
      intermediary <init> Lnet/minecraft/class_793;<init>(Lnet/minecraft/class_10820;Lnet/minecraft/class_1100$class_4751;Ljava/lang/Boolean;Lnet/minecraft/class_809;Lnet/minecraft/class_10419$class_10420;Lnet/minecraft/class_2960;)V
      official <init> Lhkw;<init>(Liiq;Liir$a;Ljava/lang/Boolean;Lhld;Lhlh$a;Lamy;)V
  • 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 Lhkw;a(Ljava/io/Reader;)Lhkw;
    • 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

      @Nullable 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

      @Nullable public 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

      @Nullable 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

      @Nullable 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

      @Nullable 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