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
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.render.model.BlockModelPart
BlockModelPart.Unbaked
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Sprite
The field for theparticleSprite
record component.private final BakedGeometry
The field for thequads
record component.private final boolean
The field for theuseAmbientOcclusion
record component. -
Constructor Summary
ConstructorsConstructorDescriptionGeometryBakedModel
(BakedGeometry bakedGeometry, boolean bool, Sprite sprite) -
Method Summary
Modifier and TypeMethodDescriptionstatic GeometryBakedModel
create
(Baker baker, Identifier id, ModelBakeSettings bakeSettings) 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 theparticleSprite
record component.quads()
Returns the value of thequads
record component.final String
toString()
Returns a string representation of this record class.boolean
Returns the value of theuseAmbientOcclusion
record component.
-
Field Details
-
quads
The field for thequads
record component. -
useAmbientOcclusion
private final boolean useAmbientOcclusionThe field for theuseAmbientOcclusion
record component. -
particleSprite
The field for theparticleSprite
record component.
-
-
Constructor Details
-
GeometryBakedModel
-
-
Method Details
-
create
- 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
- Specified by:
getQuads
in interfaceBlockModelPart
- 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
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 '=='. -
quads
Returns the value of thequads
record component.- Returns:
- the value of the
quads
record component
-
useAmbientOcclusion
public boolean useAmbientOcclusion()Returns the value of theuseAmbientOcclusion
record component.- Specified by:
useAmbientOcclusion
in interfaceBlockModelPart
- Returns:
- the value of the
useAmbientOcclusion
record component
-
particleSprite
Returns the value of theparticleSprite
record component.- Specified by:
particleSprite
in interfaceBlockModelPart
- Returns:
- the value of the
particleSprite
record component
-