Package io.papermc.lib.environments
Class Environment
java.lang.Object
io.papermc.lib.environments.Environment
- Direct Known Subclasses:
CraftBukkitEnvironment
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AsyncChunksprotected AsyncTeleportprotected BedSpawnLocationprotected BlockStateSnapshotprotected ChunkIsGenerated -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<org.bukkit.Location>getBedSpawnLocationAsync(org.bukkit.entity.Player player, boolean isUrgent) getBlockState(org.bukkit.block.Block block, boolean useSnapshot) CompletableFuture<org.bukkit.Chunk>getChunkAtAsync(org.bukkit.World world, int x, int z, boolean gen) CompletableFuture<org.bukkit.Chunk>getChunkAtAsync(org.bukkit.World world, int x, int z, boolean gen, boolean isUrgent) CompletableFuture<org.bukkit.Chunk>getChunkAtAsyncUrgently(org.bukkit.World world, int x, int z, boolean gen) intintintabstract StringgetName()booleanisChunkGenerated(org.bukkit.World world, int x, int z) booleanisPaper()booleanisSpigot()booleanisVersion(int minor) booleanisVersion(int minor, int patch) teleport(org.bukkit.entity.Entity entity, org.bukkit.Location location, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause)
-
Field Details
-
asyncChunksHandler
-
asyncTeleportHandler
-
isGeneratedHandler
-
blockStateSnapshotHandler
-
bedSpawnLocationHandler
-
-
Constructor Details
-
Environment
public Environment()
-
-
Method Details
-
getName
-
getChunkAtAsync
public CompletableFuture<org.bukkit.Chunk> getChunkAtAsync(org.bukkit.World world, int x, int z, boolean gen) -
getChunkAtAsync
public CompletableFuture<org.bukkit.Chunk> getChunkAtAsync(org.bukkit.World world, int x, int z, boolean gen, boolean isUrgent) -
getChunkAtAsyncUrgently
public CompletableFuture<org.bukkit.Chunk> getChunkAtAsyncUrgently(org.bukkit.World world, int x, int z, boolean gen) -
teleport
public CompletableFuture<Boolean> teleport(org.bukkit.entity.Entity entity, org.bukkit.Location location, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) -
isChunkGenerated
public boolean isChunkGenerated(org.bukkit.World world, int x, int z) -
getBlockState
-
getBedSpawnLocationAsync
public CompletableFuture<org.bukkit.Location> getBedSpawnLocationAsync(org.bukkit.entity.Player player, boolean isUrgent) -
isVersion
public boolean isVersion(int minor) -
isVersion
public boolean isVersion(int minor, int patch) -
getMinecraftVersion
public int getMinecraftVersion() -
getMinecraftPatchVersion
public int getMinecraftPatchVersion() -
getMinecraftPreReleaseVersion
public int getMinecraftPreReleaseVersion() -
isSpigot
public boolean isSpigot() -
isPaper
public boolean isPaper()
-