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/PaintingVariantintermediary net/minecraft/class_1535official cjdnamed widthintermediary comp_2670official enamed heightintermediary comp_2671official fnamed assetIdintermediary comp_2672official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theassetIdrecord component.static final com.mojang.serialization.Codec<PaintingVariant> static final com.mojang.serialization.Codec<RegistryEntry<PaintingVariant>> static final PacketCodec<RegistryByteBuf, RegistryEntry<PaintingVariant>> private final intThe field for theheightrecord component.static final PacketCodec<ByteBuf, PaintingVariant> private final intThe field for thewidthrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassetId()Returns the value of theassetIdrecord component.final booleanIndicates whether some other object is "equal to" this one.intgetArea()final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Field Details
-
width
private final int widthThe field for thewidthrecord component. -
height
private final int heightThe field for theheightrecord component. -
assetId
The field for theassetIdrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/decoration/painting/PaintingVariant;CODEC:Lcom/mojang/serialization/Codec;intermediary field_51596Lnet/minecraft/class_1535;field_51596:Lcom/mojang/serialization/Codec;official aLcjd;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/entity/decoration/painting/PaintingVariant;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_51945Lnet/minecraft/class_1535;field_51945:Lnet/minecraft/class_9139;official bLcjd;b:Lyx;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODECLnet/minecraft/entity/decoration/painting/PaintingVariant;ENTRY_CODEC:Lcom/mojang/serialization/Codec;intermediary field_51597Lnet/minecraft/class_1535;field_51597:Lcom/mojang/serialization/Codec;official cLcjd;c:Lcom/mojang/serialization/Codec;
-
ENTRY_PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_PACKET_CODECLnet/minecraft/entity/decoration/painting/PaintingVariant;ENTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_51946Lnet/minecraft/class_1535;field_51946:Lnet/minecraft/class_9139;official dLcjd;d:Lyx;
-
-
Constructor Details
-
PaintingVariant
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/decoration/painting/PaintingVariant;<init>(IILnet/minecraft/util/Identifier;)Vintermediary <init>Lnet/minecraft/class_1535;<init>(IILnet/minecraft/class_2960;)Vofficial <init>Lcjd;<init>(IILakr;)V
-
-
Method Details
-
getArea
public int getArea()- Mappings:
Namespace Name Mixin selector named getAreaLnet/minecraft/entity/decoration/painting/PaintingVariant;getArea()Iintermediary method_59947Lnet/minecraft/class_1535;method_59947()Iofficial aLcjd;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 thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
assetId
Returns the value of theassetIdrecord component.- Returns:
- the value of the
assetIdrecord component
-