Record Class JsonUnbakedModel
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.JsonUnbakedModel
- Record Components:
geometry-guiLight-getAmbientOcclusion-transformations-textures-getParentId-
- All Implemented Interfaces:
UnbakedModel
@Environment(CLIENT)
public record JsonUnbakedModel(@Nullable Geometry geometry, UnbakedModel.GuiLight guiLight, @Nullable Boolean getAmbientOcclusion, @Nullable ModelTransformation transformations, ModelTextures.Textures textures, @Nullable Identifier getParentId)
extends Record
implements UnbakedModel
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/JsonUnbakedModelintermediary net/minecraft/class_793official grwnamed geometryintermediary comp_3739official bnamed guiLightintermediary comp_3740official dnamed getAmbientOcclusionintermediary comp_3741official enamed transformationsintermediary comp_3742official fnamed texturesintermediary comp_3743official gnamed getParentIdintermediary 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 TypeFieldDescriptionThe field for thegeometryrecord component.The field for thegetAmbientOcclusionrecord component.private final @Nullable IdentifierThe field for thegetParentIdrecord component.(package private) static final Gsonprivate final UnbakedModel.GuiLightThe field for theguiLightrecord component.private final ModelTextures.TexturesThe field for thetexturesrecord component.private final @Nullable ModelTransformationThe field for thetransformationsrecord component.Fields inherited from interface net.minecraft.client.render.model.UnbakedModel
field_57026 -
Constructor Summary
ConstructorsConstructorDescriptionJsonUnbakedModel(@Nullable Geometry geometry, UnbakedModel.GuiLight guiLight, @Nullable Boolean bool, @Nullable ModelTransformation modelTransformation, ModelTextures.Textures textures, @Nullable Identifier identifier) -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonUnbakedModeldeserialize(Reader input) final booleanIndicates whether some other object is "equal to" this one.geometry()Returns the value of thegeometryrecord component.Returns the value of thegetAmbientOcclusionrecord component.Returns the value of thegetParentIdrecord component.guiLight()Returns the value of theguiLightrecord component.final inthashCode()Returns a hash code value for this object.textures()Returns the value of thetexturesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformationsrecord component.
-
Field Details
-
geometry
The field for thegeometryrecord component. -
guiLight
The field for theguiLightrecord component. -
getAmbientOcclusion
The field for thegetAmbientOcclusionrecord component. -
transformations
The field for thetransformationsrecord component. -
textures
The field for thetexturesrecord component. -
getParentId
The field for thegetParentIdrecord 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 aLgrw;a:Lcom/google/gson/Gson;
-
-
Constructor Details
-
JsonUnbakedModel
public JsonUnbakedModel(@Nullable @Nullable Geometry geometry, @Nullable UnbakedModel.GuiLight guiLight, @Nullable @Nullable Boolean bool, @Nullable @Nullable ModelTransformation modelTransformation, ModelTextures.Textures textures, @Nullable @Nullable Identifier identifier)
-
-
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 aLgrw;a(Ljava/io/Reader;)Lgrw;
-
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
-
getAmbientOcclusion
Returns the value of thegetAmbientOcclusionrecord component.- Specified by:
getAmbientOcclusionin interfaceUnbakedModel- Returns:
- the value of the
getAmbientOcclusionrecord 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
-
getParentId
Returns the value of thegetParentIdrecord component.- Specified by:
getParentIdin interfaceUnbakedModel- Returns:
- the value of the
getParentIdrecord component
-