public class Universe extendsJavaPluginimplementsIMessageReceiver,MetricProvider
Class Universe. Provides universe functionality for the Hytale server.
java.lang.Object > JavaPlugin > Universe
Field Summary
playerStorage
Field playerStorage.
worldConfigProvider
Field worldConfigProvider.
universeReady
Field universeReady.
frequencyMinutes
Field frequencyMinutes.
componentStore
Field componentStore.
data
Field data.
componentStore2
Field componentStore2.
data2
Field data2.
eventRegistry
Field eventRegistry.
chunkStoreRegistry
Field chunkStoreRegistry.
entityStoreRegistry
Field entityStoreRegistry.
commandRegistry
Field commandRegistry.
config
Field config.
defaultConfigProvider
Field defaultConfigProvider.
event
Field event.
blockIdMapPath
Field blockIdMapPath.
path
Field path.
bsonDocument
Field bsonDocument.
loadingWorlds
Field loadingWorlds.
worldsPath
Field worldsPath.
name
Field name.
worldName
Field worldName.
iterator
Field iterator.
world
Field world.
savePath
Field savePath.
provider
Field provider.
provider2
Field provider2.
pluginManager
Field pluginManager.
oldWorldByName
Field oldWorldByName.
oldWorldByUuid
Field oldWorldByUuid.
nameLower
Field nameLower.
playerConnection
Field playerConnection.
chunkTrackerComponent
Field chunkTrackerComponent.
playerRefComponent
Field playerRefComponent.
playerComponent
Field playerComponent.
playerConfig
Field playerConfig.
entityViewerComponent
Field entityViewerComponent.
entityViewerComponent2
Field entityViewerComponent2.
existingPlayer
Field existingPlayer.
lastWorldName
Field lastWorldName.
lastWorld
Field lastWorld.
playerConnectEvent
Field playerConnectEvent.
ref
Field ref.
playerComponent2
Field playerComponent2.
uuid
Field uuid.
oldPlayer
Field oldPlayer.
newPlayer
Field newPlayer.
leaveWorld
Field leaveWorld.
viewer
Field viewer.
viewer2
Field viewer2.
optionSet
Field optionSet.
Method Detail
minute
d
minute
(s)
Method minute.
- Parameters:
ss
runBackup
CompletableFuture
runBackup
()
Method runBackup.
setup
void
setup
()
Method setup.
WorldPregenerateSystem
new
WorldPregenerateSystem
()
Method WorldPregenerateSystem.
WorldConfigSaveSystem
new
WorldConfigSaveSystem
()
Method WorldConfigSaveSystem.
PlayerPingSystem
new
PlayerPingSystem
()
Method PlayerPingSystem.
PlayerConnectionFlushSystem
new
PlayerConnectionFlushSystem
(this.playerRefComponentType)
Method PlayerConnectionFlushSystem.
- Parameters:
this.playerRefComponentTypethis.playerRefComponentType
PlayerRefAddedSystem
new
PlayerRefAddedSystem
(this.playerRefComponentType)
Method PlayerRefAddedSystem.
- Parameters:
this.playerRefComponentTypethis.playerRefComponentType
SetTickingCommand
new
SetTickingCommand
()
Method SetTickingCommand.
BlockCommand
new
BlockCommand
()
Method BlockCommand.
BlockSelectCommand
new
BlockSelectCommand
()
Method BlockSelectCommand.
WorldCommand
new
WorldCommand
()
Method WorldCommand.
start
void
start
()
Method start.
PrepareUniverseEvent
new
PrepareUniverseEvent
(defaultConfigProvider)
Method PrepareUniverseEvent.
- Parameters:
defaultConfigProviderdefaultConfigProvider
shutdown
void
shutdown
()
Method shutdown.
disconnectAllPLayers
void
disconnectAllPLayers
()
Method disconnectAllPLayers.
shutdownAllWorlds
void
shutdownAllWorlds
()
Method shutdownAllWorlds.
getUniverseReady
CompletableFuture
getUniverseReady
()
Method getUniverseReady.
getIndexedStorageCacheResourceType
IndexedStorageChunkStorageProvider.IndexedStorageCache>
getIndexedStorageCacheResourceType
()
Method getIndexedStorageCacheResourceType.
isWorldLoadable
boolean
isWorldLoadable
(@Nonnull final String name)
Method isWorldLoadable.
- Parameters:
@Nonnull final Stringname
addWorld
CompletableFuture
addWorld
(@Nonnull final String name)
Method addWorld.
- Parameters:
@Nonnull final Stringname
makeWorld
CompletableFuture
makeWorld
(@Nonnull final String name, @Nonnull final Path savePath, @Nonnull final WorldConfig worldConfig)
Method makeWorld.
- Parameters:
@Nonnull final Stringname@Nonnull final PathsavePath@Nonnull final WorldConfigworldConfig
AddWorldEvent
new
AddWorldEvent
(world)
Method AddWorldEvent.
- Parameters:
worldworld
loadWorldFromStart
CompletableFuture
loadWorldFromStart
(@Nonnull final Path savePath, @Nonnull final String name)
Method loadWorldFromStart.
- Parameters:
@Nonnull final PathsavePath@Nonnull final Stringname
loadWorld
CompletableFuture
loadWorld
(@Nonnull final String name)
Method loadWorld.
- Parameters:
@Nonnull final Stringname
getWorld
World
getWorld
(@Nullable final String worldName)
Method getWorld.
- Parameters:
@Nullable final StringworldName
getDefaultWorld
World
getDefaultWorld
()
Method getDefaultWorld.
removeWorld
boolean
removeWorld
(@Nonnull final String name)
Method removeWorld.
- Parameters:
@Nonnull final Stringname
RemoveWorldEvent
new
RemoveWorldEvent
(world, RemoveWorldEvent.RemovalReason.GENERAL)
Method RemoveWorldEvent.
- Parameters:
worldworldRemoveWorldEvent.RemovalReason.GENERALRemoveWorldEvent.RemovalReason.GENERAL
removeWorldExceptionally
void
removeWorldExceptionally
(@Nonnull final String name)
Method removeWorldExceptionally.
- Parameters:
@Nonnull final Stringname
getPath
Path
getPath
()
Method getPath.
getWorlds
World>
getWorlds
()
Method getWorlds.
getPlayers
List
getPlayers
()
Method getPlayers.
getPlayer
Method getPlayer.
- Parameters:
@Nonnull final UUIDuuid
getPlayerByUsername
PlayerRef
getPlayerByUsername
(@Nonnull final String value, @Nonnull final NameMatching matching)
Method getPlayerByUsername.
- Parameters:
@Nonnull final Stringvalue@Nonnull final NameMatchingmatching
getPlayerCount
int
getPlayerCount
()
Method getPlayerCount.
addPlayer
CompletableFuture
addPlayer
(@Nonnull final Channel channel, @Nonnull final String language, @Nonnull final ProtocolVersion protocolVersion, @Nonnull final UUID uuid, @Nonnull final String username, @Nonnull final PlayerAuthentication auth, final int clientViewRadiusChunks, @Nullable final PlayerSkin skin)
Method addPlayer.
- Parameters:
@Nonnull final Channelchannel@Nonnull final Stringlanguage@Nonnull final ProtocolVersionprotocolVersion@Nonnull final UUIDuuid@Nonnull final Stringusername@Nonnull final PlayerAuthenticationauthfinal intclientViewRadiusChunks@Nullable final PlayerSkinskin
UUIDComponent
new
UUIDComponent
(uuid)
Method UUIDComponent.
- Parameters:
uuiduuid
PlayerSkinComponent
new
PlayerSkinComponent
(skin)
Method PlayerSkinComponent.
- Parameters:
skinskin
ModelComponent
new
ModelComponent
(CosmeticsModule.get()
Method ModelComponent.
- Parameters:
CosmeticsModule.get(CosmeticsModule.get(
PlayerConnectEvent
new
PlayerConnectEvent
(holder, playerRefComponent, (lastWorld != null)
Method PlayerConnectEvent.
- Parameters:
holderholderplayerRefComponentplayerRefComponent(lastWorld !=null
ServerTags
new
ServerTags
(AssetRegistry.getClientTags()
Method ServerTags.
- Parameters:
AssetRegistry.getClientTags(AssetRegistry.getClientTags(
if
else
if
(playerComponent.wasRemoved()
Method if.
- Parameters:
playerComponent.wasRemoved(playerComponent.wasRemoved(
PlayerDisconnectEvent
new
PlayerDisconnectEvent
(playerRef)
Method PlayerDisconnectEvent.
- Parameters:
playerRefplayerRef
getWorldConfigProvider
Method getWorldConfigProvider.
getPlayerRefComponentType
PlayerRef>
getPlayerRefComponentType
()
Method getPlayerRefComponentType.
getLegacyBlockIdMap
String>
getLegacyBlockIdMap
()
Method getLegacyBlockIdMap.
getWorldGenPath
Path
getWorldGenPath
()
Method getWorldGenPath.