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/JsonUnbakedModel
intermediary net/minecraft/class_793
official gsx
named geometry
intermediary comp_3739
official b
named guiLight
intermediary comp_3740
official d
named ambientOcclusion
intermediary comp_3741
official e
named transformations
intermediary comp_3742
official f
named textures
intermediary comp_3743
official g
named parent
intermediary comp_3744
official 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 theambientOcclusion
record component.The field for thegeometry
record component.(package private) static final Gson
private final UnbakedModel.GuiLight
The field for theguiLight
record component.private final @Nullable Identifier
The field for theparent
record component.private final ModelTextures.Textures
The field for thetextures
record component.private final @Nullable ModelTransformation
The field for thetransformations
record 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 theambientOcclusion
record component.static JsonUnbakedModel
deserialize
(Reader input) final boolean
Indicates whether some other object is "equal to" this one.geometry()
Returns the value of thegeometry
record component.guiLight()
Returns the value of theguiLight
record component.final int
hashCode()
Returns a hash code value for this object.parent()
Returns the value of theparent
record component.textures()
Returns the value of thetextures
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetransformations
record component.
-
Field Details
-
geometry
The field for thegeometry
record component. -
guiLight
The field for theguiLight
record component. -
ambientOcclusion
The field for theambientOcclusion
record component. -
transformations
The field for thetransformations
record component. -
textures
The field for thetextures
record component. -
parent
The field for theparent
record component. -
GSON
- Mappings:
Namespace Name Mixin selector named GSON
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;GSON:Lcom/google/gson/Gson;
intermediary field_4254
Lnet/minecraft/class_793;field_4254:Lcom/google/gson/Gson;
official a
Lgsx;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 deserialize
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;deserialize(Ljava/io/Reader;)Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
intermediary method_3437
Lnet/minecraft/class_793;method_3437(Ljava/io/Reader;)Lnet/minecraft/class_793;
official a
Lgsx;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 thegeometry
record component.- Specified by:
geometry
in interfaceUnbakedModel
- Returns:
- the value of the
geometry
record component
-
guiLight
Returns the value of theguiLight
record component.- Specified by:
guiLight
in interfaceUnbakedModel
- Returns:
- the value of the
guiLight
record component
-
ambientOcclusion
Returns the value of theambientOcclusion
record component.- Specified by:
ambientOcclusion
in interfaceUnbakedModel
- Returns:
- the value of the
ambientOcclusion
record component
-
transformations
Returns the value of thetransformations
record component.- Specified by:
transformations
in interfaceUnbakedModel
- Returns:
- the value of the
transformations
record component
-
textures
Returns the value of thetextures
record component.- Specified by:
textures
in interfaceUnbakedModel
- Returns:
- the value of the
textures
record component
-
parent
Returns the value of theparent
record component.- Specified by:
parent
in interfaceUnbakedModel
- Returns:
- the value of the
parent
record component
-