Record Class PaintingVariant
java.lang.Object
java.lang.Record
net.minecraft.entity.decoration.painting.PaintingVariant
- Record Components:
width
-height
-assetId
-title
--
public record PaintingVariant(int width, int height, Identifier assetId, Optional<Text> title, Optional<Text> author)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/decoration/painting/PaintingVariant
intermediary net/minecraft/class_1535
official clw
named width
intermediary comp_2670
official e
named height
intermediary comp_2671
official f
named assetId
intermediary comp_2672
official g
named title
intermediary comp_2918
official h
named author
intermediary comp_2919
official i
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Identifier
The field for theassetId
record component.The field for theauthor
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
<RegistryByteBuf, PaintingVariant> The field for thetitle
record component.private final int
The field for thewidth
record component. -
Constructor Summary
ConstructorDescriptionPaintingVariant
(int width, int height, Identifier identifier, Optional<Text> optional, Optional<Text> optional2) -
Method Summary
Modifier and TypeMethodDescriptionassetId()
Returns the value of theassetId
record component.author()
Returns the value of theauthor
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.title()
Returns the value of thetitle
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. -
title
The field for thetitle
record component. -
author
The field for theauthor
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
Lclw;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
Lclw;b:Lzt;
-
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
Lclw;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
Lclw;d:Lzt;
-
-
Constructor Details
-
PaintingVariant
public PaintingVariant(int width, int height, Identifier identifier, Optional<Text> optional, Optional<Text> optional2) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/decoration/painting/PaintingVariant;<init>(IILnet/minecraft/util/Identifier;Ljava/util/Optional;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_1535;<init>(IILnet/minecraft/class_2960;Ljava/util/Optional;Ljava/util/Optional;)V
official <init>
Lclw;<init>(IILalz;Ljava/util/Optional;Ljava/util/Optional;)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
Lclw;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
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
author
Returns the value of theauthor
record component.- Returns:
- the value of the
author
record component
-