Package devs.beer.nativepackets.api
Record Class PlatformCapabilities
java.lang.Object
java.lang.Record
devs.beer.nativepackets.api.PlatformCapabilities
- Record Components:
paper- Paper API markerfolia- Folia regionized runtimeregionScheduler- region scheduler APIentityScheduler- entity scheduler APIglobalRegionScheduler- global-region scheduler APIasyncScheduler- async scheduler API
public record PlatformCapabilities(boolean paper, boolean folia, boolean regionScheduler, boolean entityScheduler, boolean globalRegionScheduler, boolean asyncScheduler)
extends Record
Startup-verified optional platform capabilities.
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformCapabilities(boolean paper, boolean folia, boolean regionScheduler, boolean entityScheduler, boolean globalRegionScheduler, boolean asyncScheduler) Creates an instance of aPlatformCapabilitiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theasyncSchedulerrecord component.booleanReturns the value of theentitySchedulerrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfolia()Returns the value of thefoliarecord component.booleanReturns the value of theglobalRegionSchedulerrecord component.final inthashCode()Returns a hash code value for this object.booleanpaper()Returns the value of thepaperrecord component.booleanReturns the value of theregionSchedulerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlatformCapabilities
public PlatformCapabilities(boolean paper, boolean folia, boolean regionScheduler, boolean entityScheduler, boolean globalRegionScheduler, boolean asyncScheduler) Creates an instance of aPlatformCapabilitiesrecord class.- Parameters:
paper- the value for thepaperrecord componentfolia- the value for thefoliarecord componentregionScheduler- the value for theregionSchedulerrecord componententityScheduler- the value for theentitySchedulerrecord componentglobalRegionScheduler- the value for theglobalRegionSchedulerrecord componentasyncScheduler- the value for theasyncSchedulerrecord component
-
-
Method Details
-
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 with '=='. -
paper
public boolean paper()Returns the value of thepaperrecord component.- Returns:
- the value of the
paperrecord component
-
folia
public boolean folia()Returns the value of thefoliarecord component.- Returns:
- the value of the
foliarecord component
-
regionScheduler
public boolean regionScheduler()Returns the value of theregionSchedulerrecord component.- Returns:
- the value of the
regionSchedulerrecord component
-
entityScheduler
public boolean entityScheduler()Returns the value of theentitySchedulerrecord component.- Returns:
- the value of the
entitySchedulerrecord component
-
globalRegionScheduler
public boolean globalRegionScheduler()Returns the value of theglobalRegionSchedulerrecord component.- Returns:
- the value of the
globalRegionSchedulerrecord component
-
asyncScheduler
public boolean asyncScheduler()Returns the value of theasyncSchedulerrecord component.- Returns:
- the value of the
asyncSchedulerrecord component
-