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(@Nullable Geometry geometry, UnbakedModel.GuiLight guiLight, @Nullable Boolean ambientOcclusion, @Nullable ModelTransformation transformations, ModelTextures.Textures textures, @Nullable Identifier parent)
extends Record
implements UnbakedModel
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/JsonUnbakedModelintermediary net/minecraft/class_793official gsxnamed 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 TypeFieldDescriptionThe field for theambientOcclusionrecord component.The field for thegeometryrecord component.(package private) static final Gsonprivate final UnbakedModel.GuiLightThe field for theguiLightrecord component.private final @Nullable IdentifierThe field for theparentrecord 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
PARTICLE_TEXTURE -
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 TypeMethodDescriptionReturns the value of theambientOcclusionrecord component.static JsonUnbakedModeldeserialize(Reader input) final booleanIndicates whether some other object is "equal to" this one.geometry()Returns the value of thegeometryrecord component.guiLight()Returns the value of theguiLightrecord component.final inthashCode()Returns a hash code value for this object.parent()Returns the value of theparentrecord component.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. -
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 aLgsx;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 aLgsx;a(Ljava/io/Reader;)Lgsx;
-
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
-