Record Class GeometryBakedModel

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.GeometryBakedModel
Record Components:
quads -
useAmbientOcclusion -
particleSprite -
All Implemented Interfaces:
BlockModelPart

@Environment(CLIENT) public record GeometryBakedModel(BakedGeometry quads, boolean useAmbientOcclusion, Sprite particleSprite) extends Record implements BlockModelPart
Mappings:
Namespace Name
named net/minecraft/client/render/model/GeometryBakedModel
intermediary net/minecraft/class_10801
official gzg
named quads
intermediary comp_3750
official a
named useAmbientOcclusion
intermediary comp_3751
official b
named particleSprite
intermediary comp_3752
official c
  • Field Details

    • quads

      private final BakedGeometry quads
      The field for the quads record component.
    • useAmbientOcclusion

      private final boolean useAmbientOcclusion
      The field for the useAmbientOcclusion record component.
    • particleSprite

      private final Sprite particleSprite
      The field for the particleSprite record component.
  • Constructor Details

    • GeometryBakedModel

      public GeometryBakedModel(BakedGeometry bakedGeometry, boolean bool, Sprite sprite)
  • Method Details

    • create

      public static GeometryBakedModel create(Baker baker, Identifier id, ModelBakeSettings bakeSettings)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/client/render/model/GeometryBakedModel;create(Lnet/minecraft/client/render/model/Baker;Lnet/minecraft/util/Identifier;Lnet/minecraft/client/render/model/ModelBakeSettings;)Lnet/minecraft/client/render/model/GeometryBakedModel;
      intermediary method_67931 Lnet/minecraft/class_10801;method_67931(Lnet/minecraft/class_7775;Lnet/minecraft/class_2960;Lnet/minecraft/class_3665;)Lnet/minecraft/class_10801;
      official a Lgzg;a(Lhua;Lame;Lhug;)Lgzg;
    • getQuads

      public List<BakedQuad> getQuads(@Nullable @Nullable Direction side)
      Specified by:
      getQuads in interface BlockModelPart
      Mappings:
      Namespace Name Mixin selector
      named getQuads Lnet/minecraft/client/render/model/BlockModelPart;getQuads(Lnet/minecraft/util/math/Direction;)Ljava/util/List;
      intermediary method_68509 Lnet/minecraft/class_10889;method_68509(Lnet/minecraft/class_2350;)Ljava/util/List;
      official a Lgza;a(Ljh;)Ljava/util/List;
    • 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. 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.
    • quads

      public BakedGeometry quads()
      Returns the value of the quads record component.
      Returns:
      the value of the quads record component
    • useAmbientOcclusion

      public boolean useAmbientOcclusion()
      Returns the value of the useAmbientOcclusion record component.
      Specified by:
      useAmbientOcclusion in interface BlockModelPart
      Returns:
      the value of the useAmbientOcclusion record component
    • particleSprite

      public Sprite particleSprite()
      Returns the value of the particleSprite record component.
      Specified by:
      particleSprite in interface BlockModelPart
      Returns:
      the value of the particleSprite record component