Class Universe
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.server.core.universe.Universe
- All Implemented Interfaces:
MetricProvider,CommandOwner,IMessageReceiver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Universestatic final PluginManifeststatic final MetricsRegistry<Universe> private final Pathprivate ComponentType<EntityStore, PlayerRef> private PlayerStorageprivate CompletableFuture<Void> private WorldConfigProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPlayer(io.netty.channel.Channel channel, String language, ProtocolVersion protocolVersion, UUID uuid, String username, PlayerAuthentication auth, int clientViewRadiusChunks, PlayerSkin skin) Deprecated.voidbroadcastPacket(Packet packet) voidbroadcastPacket(Packet... packets) voidbroadcastPacketNoCache(Packet packet) voidprivate voidfinalizePlayerRemoval(PlayerRef playerRef) static Universeget()Deprecated.getPath()getPlayer(String value, NameMatching matching) getPlayer(String value, Comparator<String> comparator, BiPredicate<String, String> equality) getPlayerByUsername(String value, NameMatching matching) getPlayerByUsername(String value, Comparator<String> comparator, BiPredicate<String, String> equality) intstatic PathbooleanisWorldLoadable(String name) private CompletableFuture<Void> loadWorldFromStart(Path savePath, String name) makeWorld(String name, Path savePath, WorldConfig worldConfig) makeWorld(String name, Path savePath, WorldConfig worldConfig, boolean start) voidremovePlayer(PlayerRef playerRef) booleanremoveWorld(String name) voidresetPlayer(PlayerRef oldPlayer) resetPlayer(PlayerRef oldPlayer, Holder<EntityStore> holder) resetPlayer(PlayerRef playerRef, Holder<EntityStore> holder, World world, Transform transform) voidsendMessage(Message message) voidsetPlayerStorage(PlayerStorage playerStorage) protected voidsetup()protected voidshutdown()voidprotected voidstart()Methods inherited from class com.hypixel.hytale.server.core.plugin.JavaPlugin
getClassLoader, getFile, getType, start0Methods inherited from class com.hypixel.hytale.server.core.plugin.PluginBase
getAssetRegistry, getBasePermission, getBlockStateRegistry, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad, setup0, shutdown0, withConfig, withConfig
-
Field Details
-
MANIFEST
-
LEGACY_BLOCK_ID_MAP
-
METRICS_REGISTRY
-
instance
-
playerRefComponentType
-
path
-
players
-
worlds
-
worldsByUuid
-
unmodifiableWorlds
-
playerStorage
-
worldConfigProvider
-
indexedStorageCacheResourceType
private ResourceType<ChunkStore,IndexedStorageChunkStorageProvider.IndexedStorageCache> indexedStorageCacheResourceType -
universeReady
-
-
Constructor Details
-
Universe
-
-
Method Details
-
get
-
runBackup
-
setup
protected void setup()- Overrides:
setupin classPluginBase
-
start
protected void start()- Overrides:
startin classPluginBase
-
shutdown
protected void shutdown()- Overrides:
shutdownin classPluginBase
-
disconnectAllPLayers
public void disconnectAllPLayers() -
shutdownAllWorlds
public void shutdownAllWorlds() -
toMetricResults
- Specified by:
toMetricResultsin interfaceMetricProvider
-
getUniverseReady
-
getIndexedStorageCacheResourceType
public ResourceType<ChunkStore,IndexedStorageChunkStorageProvider.IndexedStorageCache> getIndexedStorageCacheResourceType() -
isWorldLoadable
-
addWorld
-
addWorld
@Nonnull @Deprecated @CheckReturnValue public CompletableFuture<World> addWorld(@Nonnull String name, @Nullable String generatorType, @Nullable String chunkStorageType) Deprecated. -
makeWorld
@Nonnull @CheckReturnValue public CompletableFuture<World> makeWorld(@Nonnull String name, @Nonnull Path savePath, @Nonnull WorldConfig worldConfig) -
makeWorld
@Nonnull @CheckReturnValue public CompletableFuture<World> makeWorld(@Nonnull String name, @Nonnull Path savePath, @Nonnull WorldConfig worldConfig, boolean start) -
loadWorldFromStart
-
loadWorld
-
getWorld
-
getWorld
-
getDefaultWorld
-
removeWorld
-
removeWorldExceptionally
-
getPath
-
getWorlds
-
getPlayers
-
getPlayer
-
getPlayer
-
getPlayer
@Nullable public PlayerRef getPlayer(@Nonnull String value, @Nonnull Comparator<String> comparator, @Nonnull BiPredicate<String, String> equality) -
getPlayerByUsername
@Nullable public PlayerRef getPlayerByUsername(@Nonnull String value, @Nonnull NameMatching matching) -
getPlayerByUsername
@Nullable public PlayerRef getPlayerByUsername(@Nonnull String value, @Nonnull Comparator<String> comparator, @Nonnull BiPredicate<String, String> equality) -
getPlayerCount
public int getPlayerCount() -
addPlayer
@Nonnull public CompletableFuture<PlayerRef> addPlayer(@Nonnull io.netty.channel.Channel channel, @Nonnull String language, @Nonnull ProtocolVersion protocolVersion, @Nonnull UUID uuid, @Nonnull String username, @Nonnull PlayerAuthentication auth, int clientViewRadiusChunks, @Nullable PlayerSkin skin) -
removePlayer
-
finalizePlayerRemoval
-
resetPlayer
-
resetPlayer
@Nonnull public CompletableFuture<PlayerRef> resetPlayer(@Nonnull PlayerRef oldPlayer, @Nonnull Holder<EntityStore> holder) -
resetPlayer
@Nonnull public CompletableFuture<PlayerRef> resetPlayer(@Nonnull PlayerRef playerRef, @Nonnull Holder<EntityStore> holder, @Nullable World world, @Nullable Transform transform) -
sendMessage
- Specified by:
sendMessagein interfaceIMessageReceiver
-
broadcastPacket
-
broadcastPacketNoCache
-
broadcastPacket
-
getPlayerStorage
-
setPlayerStorage
-
getWorldConfigProvider
-
getPlayerRefComponentType
-
getLegacyBlockIdMap
Deprecated. -
getWorldGenPath
-