Record Class PotDecorations26_3
java.lang.Object
java.lang.Record
com.viaversion.viaversion.api.minecraft.item.data.PotDecorations26_3
- All Implemented Interfaces:
Copyable,Rewritable
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPotDecorations26_3(@Nullable Item back, @Nullable Item left, @Nullable Item right, @Nullable Item front) Creates an instance of aPotDecorations26_3record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Itemback()Returns the value of thebackrecord component.copy()final booleanIndicates whether some other object is "equal to" this one.@Nullable Itemfront()Returns the value of thefrontrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Itemleft()Returns the value of theleftrecord component.rewrite(UserConnection connection, Protocol<?, ?, ?, ?> protocol, boolean clientbound) Rewrites the object to a different version, may return self or a new object.@Nullable Itemright()Returns the value of therightrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PotDecorations26_3
public PotDecorations26_3(@Nullable Item back, @Nullable Item left, @Nullable Item right, @Nullable Item front) Creates an instance of aPotDecorations26_3record 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
-
rewrite
public PotDecorations26_3 rewrite(UserConnection connection, Protocol<?, ?, ?, ?> protocol, boolean clientbound) Description copied from interface:RewritableRewrites the object to a different version, may return self or a new object.- Specified by:
rewritein interfaceRewritable- Parameters:
connection- user connectionprotocol- protocolclientbound- whether it should be rewritten client- or serverbound- Returns:
- rewritten object, may be (modified or unmodified) self or a new object
-
copy
-
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
-