Skip to content

World

Package: com.hypixel.hytale.server.core.universe.world

Type: class

Extends: TickingThread

Implements: Executor, ExecutorMetricsRegistry.ExecutorMetric, ChunkAccessor, IWorldChunks, IMessageReceiver

Static Fields

NameType
SAVE_INTERVALfloat
DEFAULTString
METRICS_REGISTRYExecutorMetricsRegistry

Fields

NameType
loggerHytaleLogger
nameString
savePathPath
worldConfigWorldConfig
chunkStoreChunkStore
entityStoreEntityStore
chunkLightingChunkLightingManager
worldMapManagerWorldMapManager
worldPathConfigWorldPathConfig
taskQueueDeque
aliveAtomicBoolean
eventRegistryEventRegistry
isTickingboolean
isPausedboolean
ticklong

Methods

MethodReturns
init()CompletableFuture
stopIndividualWorld()void
getName()String
isAlive()boolean
getWorldConfig()WorldConfig
getDeathConfig()DeathConfig
isTicking()boolean
setTicking(boolean ticking)void
isPaused()boolean
setPaused(boolean paused)void
getTick()long
getLogger()HytaleLogger
setTps(int tps)void
execute(@Nonnull Runnable command)void
consumeTaskQueue()void
getChunkStore()ChunkStore
getEntityStore()EntityStore
getChunkLighting()ChunkLightingManager
getWorldMapManager()WorldMapManager
getWorldPathConfig()WorldPathConfig
getNotificationHandler()WorldNotificationHandler
getEventRegistry()EventRegistry
getPlayers()List
getEntity(@Nonnull UUID uuid)Entity
getEntityRef(@Nonnull UUID uuid)Ref
getPlayerCount()int
getPlayerRefs()Collection
trackPlayerRef(@Nonnull PlayerRef playerRef)void
untrackPlayerRef(@Nonnull PlayerRef playerRef)void
spawnEntity(Entity entity, @Nonnull Vector3d position, Vector3f rotation)Entity
addEntity(Entity entity, @Nonnull Vector3d position, @Nullable Vector3f rotation, @Nonnull AddReason reason)Entity
sendMessage(@Nonnull Message message)void
addPlayer(@Nonnull PlayerRef playerRef)CompletableFuture
addPlayer(@Nonnull PlayerRef playerRef, @Nullable Transform transform)CompletableFuture
drainPlayersTo(@Nonnull World fallbackTargetWorld)CompletableFuture
getGameplayConfig()GameplayConfig
getFeatures()Map
loadChunkIfInMemory(long index)WorldChunk
getChunkIfInMemory(long index)WorldChunk
getChunkIfLoaded(long index)WorldChunk
getChunkIfNonTicking(long index)WorldChunk
getChunkAsync(long index)CompletableFuture
getNonTickingChunkAsync(long index)CompletableFuture

Unofficial documentation · Any questions? Found a mistake? Have something you want documented? Join the Discord server at the top and let us know in #hytale!