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/GeometryBakedModelintermediary net/minecraft/class_10801official gtfnamed quadsintermediary comp_3750official anamed useAmbientOcclusionintermediary comp_3751official bnamed particleSpriteintermediary comp_3752official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.render.model.BlockModelPart
BlockModelPart.Unbaked -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SpriteThe field for theparticleSpriterecord component.private final BakedGeometryThe field for thequadsrecord component.private final booleanThe field for theuseAmbientOcclusionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGeometryBakedModel(BakedGeometry bakedGeometry, boolean bool, Sprite sprite) -
Method Summary
Modifier and TypeMethodDescriptionstatic GeometryBakedModelcreate(Baker baker, Identifier id, ModelBakeSettings bakeSettings) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparticleSpriterecord component.quads()Returns the value of thequadsrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseAmbientOcclusionrecord component.
-
Field Details
-
quads
The field for thequadsrecord component. -
useAmbientOcclusion
private final boolean useAmbientOcclusionThe field for theuseAmbientOcclusionrecord component. -
particleSprite
The field for theparticleSpriterecord component.
-
-
Constructor Details
-
GeometryBakedModel
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/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_67931Lnet/minecraft/class_10801;method_67931(Lnet/minecraft/class_7775;Lnet/minecraft/class_2960;Lnet/minecraft/class_3665;)Lnet/minecraft/class_10801;official aLgtf;a(Lhmz;Lalr;Lhnf;)Lgtf;
-
getQuads
- Specified by:
getQuadsin interfaceBlockModelPart- Mappings:
Namespace Name Mixin selector named getQuadsLnet/minecraft/client/render/model/BlockModelPart;getQuads(Lnet/minecraft/util/math/Direction;)Ljava/util/List;intermediary method_68509Lnet/minecraft/class_10889;method_68509(Lnet/minecraft/class_2350;)Ljava/util/List;official aLgsz;a(Ljc;)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 thequadsrecord component.- Returns:
- the value of the
quadsrecord component
-
useAmbientOcclusion
public boolean useAmbientOcclusion()Returns the value of theuseAmbientOcclusionrecord component.- Specified by:
useAmbientOcclusionin interfaceBlockModelPart- Returns:
- the value of the
useAmbientOcclusionrecord component
-
particleSprite
Returns the value of theparticleSpriterecord component.- Specified by:
particleSpritein interfaceBlockModelPart- Returns:
- the value of the
particleSpriterecord component
-