Record Class GuiResourceMetadata
java.lang.Object
java.lang.Record
net.minecraft.client.resource.metadata.GuiResourceMetadata
- Record Components:
scaling
-
- Mappings:
Namespace Name named net/minecraft/client/resource/metadata/GuiResourceMetadata
intermediary net/minecraft/class_8689
official grw
named scaling
intermediary comp_1636
official d
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<GuiResourceMetadata> static final GuiResourceMetadata
private final Scaling
The field for thescaling
record component.static final ResourceMetadataSerializer
<GuiResourceMetadata> -
Constructor Summary
ConstructorDescriptionGuiResourceMetadata
(Scaling scaling) Creates an instance of aGuiResourceMetadata
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.scaling()
Returns the value of thescaling
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
scaling
The field for thescaling
record component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULT
Lnet/minecraft/client/resource/metadata/GuiResourceMetadata;DEFAULT:Lnet/minecraft/client/resource/metadata/GuiResourceMetadata;
intermediary field_45645
Lnet/minecraft/class_8689;field_45645:Lnet/minecraft/class_8689;
official a
Lgrw;a:Lgrw;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/client/resource/metadata/GuiResourceMetadata;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_45646
Lnet/minecraft/class_8689;field_45646:Lcom/mojang/serialization/Codec;
official b
Lgrw;b:Lcom/mojang/serialization/Codec;
-
SERIALIZER
- Mappings:
Namespace Name Mixin selector named SERIALIZER
Lnet/minecraft/client/resource/metadata/GuiResourceMetadata;SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;
intermediary field_45647
Lnet/minecraft/class_8689;field_45647:Lnet/minecraft/class_7677;
official c
Lgrw;c:Latd;
-
-
Constructor Details
-
GuiResourceMetadata
Creates an instance of aGuiResourceMetadata
record class.- Parameters:
scaling
- the value for thescaling
record component
-
-
Method Details
-
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)
. -
scaling
Returns the value of thescaling
record component.- Returns:
- the value of the
scaling
record component
-