Available Methods
- getBlockAt ( )
- getName ( )
- setGameRuleValue ( )
- getPlayers ( )
- playSound ( )
- playEffect ( )
- getSeed ( )
- getEnvironment ( )
- setTime ( )
- getChunkAt ( )
- setPVP ( )
- spawnEntity ( )
- getLoadedChunks ( )
- spawn ( )
- getMaxHeight ( )
- setAutoSave ( )
- isChunkLoaded ( )
- getHighestBlockYAt ( )
- getUID ( )
- getLivingEntities ( )
- dropItem ( )
- setKeepSpawnInMemory ( )
- getChunkAtAsync ( )
- getEntities ( )
- refreshChunk ( )
- save ( )
- equals ( )
- getTime ( )
- isChunkGenerated ( )
Related Classes
- java.io.File
- java.util.Collections
- java.util.Random
- java.util.UUID
- java.util.Objects
- java.util.Map.Entry
- java.nio.file.Files
- java.nio.file.Path
- java.util.logging.Level
- javax.annotation.Nullable
- com.google.common.collect.ImmutableMap
- javax.annotation.Nonnull
- org.jetbrains.annotations.NotNull
- org.bukkit.entity.Player
- org.bukkit.Bukkit
- com.google.common.reflect.TypeToken
- org.bukkit.event.EventHandler
- org.bukkit.ChatColor
- org.bukkit.command.CommandSender
- org.bukkit.command.Command
- org.bukkit.Material
- org.bukkit.inventory.ItemStack
- org.bukkit.event.EventPriority
- org.bukkit.Location
- org.bukkit.event.Event
Java Code Examples for org.bukkit.World#isChunkGenerated()
The following examples show how to use
org.bukkit.World#isChunkGenerated() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AsyncChunksPaper_9_12.java From PaperLib with MIT License | 5 votes |
@Override public CompletableFuture<Chunk> getChunkAtAsync(World world, int x, int z, boolean gen, boolean isUrgent) { CompletableFuture<Chunk> future = new CompletableFuture<>(); if (!gen && PaperLib.getMinecraftVersion() >= 12 && !world.isChunkGenerated(x, z)) { future.complete(null); } else { World.ChunkLoadCallback chunkLoadCallback = future::complete; world.getChunkAtAsync(x, z, chunkLoadCallback); } return future; }
Example 2
Source File: ChunkIsGeneratedApiExists.java From PaperLib with MIT License | 4 votes |
@Override public boolean isChunkGenerated(World world, int x, int z) { return world.isChunkGenerated(x, z); }