Record Class PaintingVariant
java.lang.Object
java.lang.Record
net.minecraft.entity.decoration.painting.PaintingVariant
- Record Components:
width
-height
-assetId
-
- Mappings:
Namespace Name named net/minecraft/entity/decoration/painting/PaintingVariant
intermediary net/minecraft/class_1535
official cjd
named width
intermediary comp_2670
official e
named height
intermediary comp_2671
official f
named assetId
intermediary comp_2672
official g
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Identifier
The field for theassetId
record component.static final com.mojang.serialization.Codec
<PaintingVariant> static final com.mojang.serialization.Codec
<RegistryEntry<PaintingVariant>> static final PacketCodec
<RegistryByteBuf, RegistryEntry<PaintingVariant>> private final int
The field for theheight
record component.static final PacketCodec
<ByteBuf, PaintingVariant> private final int
The field for thewidth
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassetId()
Returns the value of theassetId
record component.final boolean
Indicates whether some other object is "equal to" this one.int
getArea()
final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.final String
toString()
Returns a string representation of this record class.int
width()
Returns the value of thewidth
record component.
-
Field Details
-
width
private final int widthThe field for thewidth
record component. -
height
private final int heightThe field for theheight
record component. -
assetId
The field for theassetId
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/entity/decoration/painting/PaintingVariant;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_51596
Lnet/minecraft/class_1535;field_51596:Lcom/mojang/serialization/Codec;
official a
Lcjd;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/entity/decoration/painting/PaintingVariant;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_51945
Lnet/minecraft/class_1535;field_51945:Lnet/minecraft/class_9139;
official b
Lcjd;b:Lyx;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODEC
Lnet/minecraft/entity/decoration/painting/PaintingVariant;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_51597
Lnet/minecraft/class_1535;field_51597:Lcom/mojang/serialization/Codec;
official c
Lcjd;c:Lcom/mojang/serialization/Codec;
-
ENTRY_PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_PACKET_CODEC
Lnet/minecraft/entity/decoration/painting/PaintingVariant;ENTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_51946
Lnet/minecraft/class_1535;field_51946:Lnet/minecraft/class_9139;
official d
Lcjd;d:Lyx;
-
-
Constructor Details
-
PaintingVariant
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/decoration/painting/PaintingVariant;<init>(IILnet/minecraft/util/Identifier;)V
intermediary <init>
Lnet/minecraft/class_1535;<init>(IILnet/minecraft/class_2960;)V
official <init>
Lcjd;<init>(IILakr;)V
-
-
Method Details
-
getArea
public int getArea()- Mappings:
Namespace Name Mixin selector named getArea
Lnet/minecraft/entity/decoration/painting/PaintingVariant;getArea()I
intermediary method_59947
Lnet/minecraft/class_1535;method_59947()I
official a
Lcjd;a()I
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
assetId
Returns the value of theassetId
record component.- Returns:
- the value of the
assetId
record component
-