Record Class PotDecorations
java.lang.Object
java.lang.Record
net.minestom.server.item.component.PotDecorations
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NotNull Material
static final PotDecorations
static BinaryTagSerializer
<PotDecorations> static final NetworkBuffer.Type
<PotDecorations> -
Constructor Summary
ConstructorDescriptionPotDecorations
(@NotNull List<Material> list) PotDecorations
(@NotNull Material material) PotDecorations
(@NotNull Material back, @NotNull Material left, @NotNull Material right, @NotNull Material front) Creates an instance of aPotDecorations
record class. -
Method Summary
Modifier and TypeMethodDescriptionasList()
@NotNull Material
back()
Returns the value of theback
record component.final boolean
Indicates whether some other object is "equal to" this one.@NotNull Material
front()
Returns the value of thefront
record component.final int
hashCode()
Returns a hash code value for this object.@NotNull Material
left()
Returns the value of theleft
record component.@NotNull Material
right()
Returns the value of theright
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
DEFAULT_ITEM
-
EMPTY
-
NETWORK_TYPE
-
NBT_TYPE
-
-
Constructor Details
-
PotDecorations
-
PotDecorations
-
PotDecorations
public PotDecorations(@NotNull @NotNull Material back, @NotNull @NotNull Material left, @NotNull @NotNull Material right, @NotNull @NotNull Material front) Creates an instance of aPotDecorations
record class.- Parameters:
back
- the value for theback
record componentleft
- the value for theleft
record componentright
- the value for theright
record componentfront
- the value for thefront
record component
-
-
Method Details
-
asList
-
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)
. -
back
Returns the value of theback
record component.- Returns:
- the value of the
back
record component
-
left
Returns the value of theleft
record component.- Returns:
- the value of the
left
record component
-
right
Returns the value of theright
record component.- Returns:
- the value of the
right
record component
-
front
Returns the value of thefront
record component.- Returns:
- the value of the
front
record component
-