Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionThe --remove-players flag is being removed in favor of a more flexible system that allows for specifying a destination for players to be teleported to when a world is unloaded. See
RemovePlayerDestinationFlags.UseValueNode.serialize(Object)andValueNode.deserialize(Object)instead.UseDestination.getDestinationInstance(CommandSender, String)instead. This method will no longer be called byDestinationsProvider.Cloning can be done from unloaded worlds as well. UseMVWorldClonedEvent.getSourceWorld()instead.UseMultiverseModule.registerDynamicListeners(Class)with the new DynamicListener API.UseMultiverseCoreApi.get()directly.UseAsyncSafetyTeleporterAction.teleportSingle(Entity)instead, as teleport of single entity may result in multiple teleports due to vehicle and passengers based onAsyncSafetyTeleporterAction.passengerMode(PassengerMode).UseReflectHelper.tryGetClass(String)instead, which returns aTrythat can be used to handle the failure case more explicitly.UseReflectHelper.tryGetField(Class, String)instead, which returns aTrythat can be used to handle the failure case more explicitly.UseReflectHelper.tryGetField(Class, String)instead, which returns aTrythat can be used to handle the failure case more explicitly.UseReflectHelper.tryGetField(Class, String)then map toReflectHelper.tryGetFieldValue(Object, Field, Class)instead, which returns aTrythat can be used to handle the failure case more explicitly.UseReflectHelper.tryGetFieldValue(Object, Field, Class)instead, which returns aTrythat can be used to handle the failure case more explicitly.UseReflectHelper.tryGetMethod(Class, String, Class[])instead, which returns aTrythat can be used to handle the failure case more explicitly.UseReflectHelper.tryGetMethod(Class, String, Class[])instead, which returns aTrythat can be used to handle the failure case more explicitly.UseReflectHelper.tryInvokeMethod(Object, Method, Object...)instead, which returns aTrythat can be used to handle the failure case more explicitly.Method name has a spelling error. UseStringFormatter.addOnToCommaSeparated(String, Collection)instead.UseWorldNameChecker.checkFolder(WorldKeyOrName)instead, which is more robust and supports namespaced keys.UseWorldNameChecker.hasWorldFolder(WorldKeyOrName)instead, which is more robust and supports namespaced keys.UseWorldNameChecker.isValidWorldFolder(WorldKeyOrName)instead, which is more robust and supports namespaced keys.Cloning can be done from unloaded worlds as well. UseCloneWorldOptions.fromTo(MultiverseWorld, String)instead. To ensure you use the non-deprecated method, you need to downcast the loaded world to aMultiverseWorldbefore passing it in, for example:CloneWorldOptions.fromTo((MultiverseWorld) loadedWorld, newWorldName)Cloning can be done from unloaded worlds as well. UseCloneWorldOptions.fromWorld()instead.No longer in use asWorldManager.removeWorld(String)is now deprecated.UsePotentialWorldFinder.findPotentialWorlds()instead.UseWorldManager.loadWorld(LoadWorldOptions)instead.UseWorldManager.loadWorld(LoadWorldOptions)instead.Get theMultiverseWorldyourself and useWorldManager.removeWorld(RemoveWorldOptions)instead.UseWorldManager.removeWorld(RemoveWorldOptions)instead.UseWorldManager.removeWorld(RemoveWorldOptions)instead.
-
Deprecated ClassesClassDescriptionThe --remove-players flag is being removed in favor of a more flexible system that allows for specifying a destination for players to be teleported to when a world is unloaded. See
RemovePlayerDestinationFlags.
-
Deprecated MethodsMethodDescriptionUse
ValueNode.serialize(Object)andValueNode.deserialize(Object)instead.UseDestination.getDestinationInstance(CommandSender, String)instead. This method will no longer be called byDestinationsProvider.Cloning can be done from unloaded worlds as well. UseMVWorldClonedEvent.getSourceWorld()instead.UseMultiverseModule.registerDynamicListeners(Class)with the new DynamicListener API.UseMultiverseCoreApi.get()directly.UseAsyncSafetyTeleporterAction.teleportSingle(Entity)instead, as teleport of single entity may result in multiple teleports due to vehicle and passengers based onAsyncSafetyTeleporterAction.passengerMode(PassengerMode).UseReflectHelper.tryGetClass(String)instead, which returns aTrythat can be used to handle the failure case more explicitly.UseReflectHelper.tryGetField(Class, String)instead, which returns aTrythat can be used to handle the failure case more explicitly.UseReflectHelper.tryGetField(Class, String)instead, which returns aTrythat can be used to handle the failure case more explicitly.UseReflectHelper.tryGetField(Class, String)then map toReflectHelper.tryGetFieldValue(Object, Field, Class)instead, which returns aTrythat can be used to handle the failure case more explicitly.UseReflectHelper.tryGetFieldValue(Object, Field, Class)instead, which returns aTrythat can be used to handle the failure case more explicitly.UseReflectHelper.tryGetMethod(Class, String, Class[])instead, which returns aTrythat can be used to handle the failure case more explicitly.UseReflectHelper.tryGetMethod(Class, String, Class[])instead, which returns aTrythat can be used to handle the failure case more explicitly.UseReflectHelper.tryInvokeMethod(Object, Method, Object...)instead, which returns aTrythat can be used to handle the failure case more explicitly.Method name has a spelling error. UseStringFormatter.addOnToCommaSeparated(String, Collection)instead.UseWorldNameChecker.checkFolder(WorldKeyOrName)instead, which is more robust and supports namespaced keys.UseWorldNameChecker.hasWorldFolder(WorldKeyOrName)instead, which is more robust and supports namespaced keys.UseWorldNameChecker.isValidWorldFolder(WorldKeyOrName)instead, which is more robust and supports namespaced keys.Cloning can be done from unloaded worlds as well. UseCloneWorldOptions.fromTo(MultiverseWorld, String)instead. To ensure you use the non-deprecated method, you need to downcast the loaded world to aMultiverseWorldbefore passing it in, for example:CloneWorldOptions.fromTo((MultiverseWorld) loadedWorld, newWorldName)Cloning can be done from unloaded worlds as well. UseCloneWorldOptions.fromWorld()instead.UsePotentialWorldFinder.findPotentialWorlds()instead.UseWorldManager.loadWorld(LoadWorldOptions)instead.UseWorldManager.loadWorld(LoadWorldOptions)instead.Get theMultiverseWorldyourself and useWorldManager.removeWorld(RemoveWorldOptions)instead.UseWorldManager.removeWorld(RemoveWorldOptions)instead.UseWorldManager.removeWorld(RemoveWorldOptions)instead.
-
Deprecated Enum Constants