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/JsonUnbakedModelintermediary net/minecraft/class_793official hlqnamed geometryintermediary comp_3739official bnamed guiLightintermediary comp_3740official dnamed ambientOcclusionintermediary comp_3741official enamed transformationsintermediary comp_3742official fnamed texturesintermediary comp_3743official gnamed parentintermediary comp_3744official h
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.client.render.model.UnbakedModel
UnbakedModel.GuiLight -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BooleanThe field for theambientOcclusionrecord component.private final GeometryThe field for thegeometryrecord component.(package private) static final Gsonprivate final UnbakedModel.GuiLightThe field for theguiLightrecord component.private final IdentifierThe field for theparentrecord component.private final ModelTextures.TexturesThe field for thetexturesrecord component.private final ModelTransformationThe field for thetransformationsrecord component.Fields inherited from interface net.minecraft.client.render.model.UnbakedModel
PARTICLE_TEXTURE -
Constructor Summary
ConstructorsConstructorDescriptionJsonUnbakedModel(@Nullable Geometry geometry, @Nullable UnbakedModel.GuiLight guiLight, @Nullable Boolean ambientOcclusion, @Nullable ModelTransformation transformations, ModelTextures.Textures textures, @Nullable Identifier parent) Creates an instance of aJsonUnbakedModelrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable BooleanReturns the value of theambientOcclusionrecord component.static JsonUnbakedModeldeserialize(Reader input) final booleanIndicates whether some other object is "equal to" this one.@Nullable Geometrygeometry()Returns the value of thegeometryrecord component.@Nullable UnbakedModel.GuiLightguiLight()Returns the value of theguiLightrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Identifierparent()Returns the value of theparentrecord component.textures()Returns the value of thetexturesrecord component.final StringtoString()Returns a string representation of this record class.@Nullable ModelTransformationReturns the value of thetransformationsrecord component.
-
Field Details
-
geometry
The field for thegeometryrecord component. -
guiLight
The field for theguiLightrecord component. -
ambientOcclusion
The field for theambientOcclusionrecord component. -
transformations
The field for thetransformationsrecord component. -
textures
The field for thetexturesrecord component. -
parent
The field for theparentrecord component. -
GSON
- Mappings:
Namespace Name Mixin selector named GSONLnet/minecraft/client/render/model/json/JsonUnbakedModel;GSON:Lcom/google/gson/Gson;intermediary field_4254Lnet/minecraft/class_793;field_4254:Lcom/google/gson/Gson;official aLhlq;a:Lcom/google/gson/Gson;
-
-
Constructor Details
-
JsonUnbakedModel
public JsonUnbakedModel(@Nullable Geometry geometry, @Nullable UnbakedModel.GuiLight guiLight, @Nullable Boolean ambientOcclusion, @Nullable ModelTransformation transformations, ModelTextures.Textures textures, @Nullable Identifier parent) Creates an instance of aJsonUnbakedModelrecord class.- Parameters:
geometry- the value for thegeometryrecord componentguiLight- the value for theguiLightrecord componentambientOcclusion- the value for theambientOcclusionrecord componenttransformations- the value for thetransformationsrecord componenttextures- the value for thetexturesrecord componentparent- the value for theparentrecord component
-
-
Method Details
-
deserialize
- Mappings:
Namespace Name Mixin selector named deserializeLnet/minecraft/client/render/model/json/JsonUnbakedModel;deserialize(Ljava/io/Reader;)Lnet/minecraft/client/render/model/json/JsonUnbakedModel;intermediary method_3437Lnet/minecraft/class_793;method_3437(Ljava/io/Reader;)Lnet/minecraft/class_793;official aLhlq;a(Ljava/io/Reader;)Lhlq;
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
geometry
Returns the value of thegeometryrecord component.- Specified by:
geometryin interfaceUnbakedModel- Returns:
- the value of the
geometryrecord component
-
guiLight
Returns the value of theguiLightrecord component.- Specified by:
guiLightin interfaceUnbakedModel- Returns:
- the value of the
guiLightrecord component
-
ambientOcclusion
Returns the value of theambientOcclusionrecord component.- Specified by:
ambientOcclusionin interfaceUnbakedModel- Returns:
- the value of the
ambientOcclusionrecord component
-
transformations
Returns the value of thetransformationsrecord component.- Specified by:
transformationsin interfaceUnbakedModel- Returns:
- the value of the
transformationsrecord component
-
textures
Returns the value of thetexturesrecord component.- Specified by:
texturesin interfaceUnbakedModel- Returns:
- the value of the
texturesrecord component
-
parent
Returns the value of theparentrecord component.- Specified by:
parentin interfaceUnbakedModel- Returns:
- the value of the
parentrecord component
-