Record Class PotDecorations
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.item.component.PotDecorations
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPotDecorations(@Nullable ItemStack back, @Nullable ItemStack left, @Nullable ItemStack right, @Nullable ItemStack front) Creates an instance of aPotDecorationsrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ItemStackback()Returns the value of thebackrecord component.static @NonNull PotDecorations.PotDecorationsBuilderbuilder()final booleanIndicates whether some other object is "equal to" this one.@Nullable ItemStackfront()Returns the value of thefrontrecord component.final inthashCode()Returns a hash code value for this object.@Nullable ItemStackleft()Returns the value of theleftrecord component.@Nullable ItemStackright()Returns the value of therightrecord component.@NonNull PotDecorations.PotDecorationsBuilderfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PotDecorations
public PotDecorations(@Nullable ItemStack back, @Nullable ItemStack left, @Nullable ItemStack right, @Nullable ItemStack front) Creates an instance of aPotDecorationsrecord class.- Parameters:
back- the value for thebackrecord componentleft- the value for theleftrecord componentright- the value for therightrecord componentfront- the value for thefrontrecord component
-
-
Method Details
-
builder
-
toBuilder
-
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 thebackrecord component.- Returns:
- the value of the
backrecord component
-
left
Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
right
Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-
front
Returns the value of thefrontrecord component.- Returns:
- the value of the
frontrecord component
-