Record Class PlayerSkin.Patch
java.lang.Object
java.lang.Record
net.minestom.server.entity.PlayerSkin.Patch
- Enclosing class:
PlayerSkin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructCodec<PlayerSkin.Patch> static final PlayerSkin.Patchstatic final NetworkBuffer.Type<PlayerSkin.Patch> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.cape()Returns the value of thecaperecord component.elytra()Returns the value of theelytrarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.slim()Returns the value of theslimrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
Patch
-
Patch
public Patch(@Nullable @Nullable Key body, @Nullable @Nullable Key cape, @Nullable @Nullable Key elytra, @Nullable @Nullable Boolean slim) Creates an instance of aPatchrecord class.- Parameters:
body- the value for thebodyrecord componentcape- the value for thecaperecord componentelytra- the value for theelytrarecord componentslim- the value for theslimrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
body
-
cape
-
elytra
-
slim
-