Package com.plotsquared.bukkit.util
Enum Class PaperSupport
- All Implemented Interfaces:
Serializable,Comparable<PaperSupport>,Constable
Not for external use. May change at any point.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<Chunk> getChunkAtAsync(Location location) static CompletableFuture<Chunk> getChunkAtAsync(World world, int cx, int cz, boolean gen) static CompletableFuture<Chunk> getChunkAtAsync(World world, int cx, int cz, boolean gen, boolean urgent) static booleanisPaper()static CompletableFuture<Boolean> teleportAsync(Entity entity, Location location) static CompletableFuture<Boolean> teleportAsync(Entity entity, Location location, PlayerTeleportEvent.TeleportCause cause) static PaperSupportReturns the enum constant of this class with the specified name.static PaperSupport[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Field Details
-
PAPER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isPaper
-
teleportAsync
-
teleportAsync
public static CompletableFuture<Boolean> teleportAsync(Entity entity, Location location, PlayerTeleportEvent.TeleportCause cause) -
getChunkAtAsync
-
getChunkAtAsync
-
getChunkAtAsync
public static CompletableFuture<Chunk> getChunkAtAsync(World world, int cx, int cz, boolean gen, boolean urgent)
-