Package org.geysermc.geyser.pack.option
Record Class GeyserUrlFallbackOption
java.lang.Object
java.lang.Record
org.geysermc.geyser.pack.option.GeyserUrlFallbackOption
- All Implemented Interfaces:
org.geysermc.geyser.api.pack.option.ResourcePackOption<Boolean>,org.geysermc.geyser.api.pack.option.UrlFallbackOption
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.geysermc.geyser.api.pack.option.ResourcePackOption
org.geysermc.geyser.api.pack.option.ResourcePackOption.Type -
Field Summary
Fields inherited from interface org.geysermc.geyser.api.pack.option.UrlFallbackOption
FALSE, TRUE -
Constructor Summary
ConstructorsConstructorDescriptionGeyserUrlFallbackOption(Boolean enabled) Creates an instance of aGeyserUrlFallbackOptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.@NonNull org.geysermc.geyser.api.pack.option.ResourcePackOption.Typetype()voidvalidate(@NonNull org.geysermc.geyser.api.pack.ResourcePack pack) @NonNull Booleanvalue()
-
Constructor Details
-
GeyserUrlFallbackOption
Creates an instance of aGeyserUrlFallbackOptionrecord class.- Parameters:
enabled- the value for theenabledrecord component
-
-
Method Details
-
type
public @NonNull org.geysermc.geyser.api.pack.option.ResourcePackOption.Type type()- Specified by:
typein interfaceorg.geysermc.geyser.api.pack.option.ResourcePackOption<Boolean>
-
value
- Specified by:
valuein interfaceorg.geysermc.geyser.api.pack.option.ResourcePackOption<Boolean>
-
validate
public void validate(@NonNull org.geysermc.geyser.api.pack.ResourcePack pack) - Specified by:
validatein interfaceorg.geysermc.geyser.api.pack.option.ResourcePackOption<Boolean>
-
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). -
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-