Package org.geysermc.floodgate.core.skin
Record Class SkinDataImpl
java.lang.Object
java.lang.Record
org.geysermc.floodgate.core.skin.SkinDataImpl
- All Implemented Interfaces:
org.geysermc.floodgate.api.event.skin.SkinApplyEvent.SkinData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.geysermc.floodgate.api.event.skin.SkinApplyEvent.SkinData -
Constructor Summary
ConstructorsConstructorDescriptionSkinDataImpl(@NonNull String value, @MonotonicNonNull String signature) Creates an instance of aSkinDataImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static org.geysermc.floodgate.api.event.skin.SkinApplyEvent.SkinDatafrom(com.google.gson.JsonObject data) final inthashCode()Returns a hash code value for this object.Returns the value of thesignaturerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
DEFAULT_SKIN
public static final org.geysermc.floodgate.api.event.skin.SkinApplyEvent.SkinData DEFAULT_SKIN
-
-
Constructor Details
-
SkinDataImpl
Creates an instance of aSkinDataImplrecord class.- Parameters:
value- the value for thevaluerecord componentsignature- the value for thesignaturerecord component
-
-
Method Details
-
from
public static org.geysermc.floodgate.api.event.skin.SkinApplyEvent.SkinData from(com.google.gson.JsonObject data) -
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). -
value
Returns the value of thevaluerecord component.- Specified by:
valuein interfaceorg.geysermc.floodgate.api.event.skin.SkinApplyEvent.SkinData- Returns:
- the value of the
valuerecord component
-
signature
Returns the value of thesignaturerecord component.- Specified by:
signaturein interfaceorg.geysermc.floodgate.api.event.skin.SkinApplyEvent.SkinData- Returns:
- the value of the
signaturerecord component
-