Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionFreezes server on call. Use
Aliases.loadAsync()
instead.UseItemData(BlockData)
instead.before 1.13 is no longer supported.UseItemType(BlockData)
instead.UseItemType.addEnchantments(EnchantmentType...)
instead.UseItemType.getEnchantmentTypes()
instead.UseItemType.isOfType(BlockData)
instead.This shouldn't be usedUseBlockCompat.getBlockValues(BlockData)
instead.UseNewBlockCompat.getBlockValues(BlockData)
instead.PreferBukkitUnsafe.getMaterialFromNamespacedId(String)
for including modded item supportthis method is only used by EffTeleport, and with the recent additions of TeleportFlag, this method should be moved within that effect.This just returns itself and has no useuseBukkit.getOnlinePlayers()
instead.UseConverter
instead.ch.njol.skript.classes.Converter.ConverterUtils.createInstanceofConverter(Converter<F, ?>, Class<T>) ch.njol.skript.classes.Converter.ConverterUtils.createInstanceofConverter(Class<F>, Converter<F, T>) usePredicate
instead.UseCommands.scriptCommandExists(String)
instead.This copies all values from the other config and sets them in this config, which could be destructive for sensitive data if something goes wrong. Also removes user comments. UseConfig.updateNodes(Config)
instead.This copies all values from the other config and sets them in this config, which could be destructive for sensitive data if something goes wrong. Also removes user comments. UseConfig.updateNodes(Config)
instead.UseSectionNode.add(int, Node)
instead.in favour ofFunctions.getGlobalFunction(String)
for proper name.in favour ofFunctions.getGlobalSignature(String)
for proper name.useScriptFunction(Signature, SectionNode)
instead.UseScriptFunction.returnValues(Event, Expression)
instead.SeeScriptLoader.LoaderEvent
instead.UseParserInstance.setCurrentStructure(Structure)
with 'null' instead.UseScript.getData(Class)
instead. TheStructOptions.OptionsData
class should be obtained. Example:script.getData(OptionsData.class)
UseParserInstance.getCurrentStructure()
instead.Addons should no longer be modifying this.UseParserInstance.setCurrentStructure(Structure)
instead.RegularStructure
methods should be used. See individual methods for their equivalents.UseSelfRegisteringSkriptEvent.postLoad()
instead.This method's functionality can be replaced by overridingSelfRegisteringSkriptEvent.postLoad()
. Normally, that method would register the parsed trigger withSkriptEventHandler
. A reference to theTrigger
is available throughSkriptEvent.trigger
.This method's functionality can be replaced by overridingSelfRegisteringSkriptEvent.unload()
. Normally, that method would unregister the parsed trigger withSkriptEventHandler
. A reference to theTrigger
is available throughSkriptEvent.trigger
.This method should no longer be used. Each trigger should be unregistered throughSelfRegisteringSkriptEvent.unregister(Trigger)
.due to bad naming conventions, useSkriptParser.LIST_SPLIT_PATTERN
instead.due to bad naming conventions, useSkriptParser.WILDCARD
instead.UseConverters
instead.UseEventValues.hasMultipleConverters(Class, Class, int)
instead.UseScriptLoader.getScriptFromName(String)
instead.This method no longer does anything as self registered Triggers. are unloaded when theSkriptEvent
is unloaded (no need to keep tracking them here).Users should specify the listening behavior in the event declaration. "on any %event%:", "on cancelled %event%:".UseDate.getTime()
instead.UseItemType.hasEnchantments(Enchantment...)
instead.useConverter
instead.To be removed in a future version.Magic numbersMagic numbersUseEquipmentSlot
,EntityEquipment
instead.UseTimespan(TimePeriod, long)
instead.UseTimespan(TimePeriod, long)
instead.UseTimespan.getAs(TimePeriod)
instead.UseTimespan.getAs(TimePeriod)
instead.UseTimespan.getAs(TimePeriod)
instead.UseClassLoader
instead.useFunction
instead.useString.equalsIgnoreCase(String)
instead.usePredicate
instead.useCloseable
instead.UseBiMap
instead.UseBiMap
instead.unuseduseIterators.concat(Iterator[])
instead.useIterator
instead.unusedunusedunusedUse a use-case specific record.Use a use-case specific record instead.usePredicate
instead.useConsumer
instead.This method will be removed in a future version. If the EntryContainer is needed outside ofStructure.init(Literal[], int, ParseResult, EntryContainer)
, the Structure should keep a reference to it.
-
Deprecated ClassesClassDescriptionRegular
Structure
methods should be used. See individual methods for their equivalents.UseConverters
instead.useConverter
instead.useString.equalsIgnoreCase(String)
instead.UseBiMap
instead.unuseduseIterators.concat(Iterator[])
instead.useIterator
instead.unusedunusedunusedUse a use-case specific record.Use a use-case specific record instead.
-
Deprecated Enum ClassesEnum ClassDescriptionUse
EquipmentSlot
,EntityEquipment
instead.
-
Deprecated FieldsFieldDescriptionbefore 1.13 is no longer supported.due to bad naming conventions, use
SkriptParser.LIST_SPLIT_PATTERN
instead.due to bad naming conventions, useSkriptParser.WILDCARD
instead.Users should specify the listening behavior in the event declaration. "on any %event%:", "on cancelled %event%:".
-
Deprecated MethodsMethodDescriptionFreezes server on call. Use
Aliases.loadAsync()
instead.UseItemType.addEnchantments(EnchantmentType...)
instead.UseItemType.getEnchantmentTypes()
instead.UseItemType.isOfType(BlockData)
instead.This shouldn't be usedUseBlockCompat.getBlockValues(BlockData)
instead.UseNewBlockCompat.getBlockValues(BlockData)
instead.PreferBukkitUnsafe.getMaterialFromNamespacedId(String)
for including modded item supportthis method is only used by EffTeleport, and with the recent additions of TeleportFlag, this method should be moved within that effect.This just returns itself and has no useuseBukkit.getOnlinePlayers()
instead.ch.njol.skript.classes.Converter.ConverterUtils.createInstanceofConverter(Converter<F, ?>, Class<T>) ch.njol.skript.classes.Converter.ConverterUtils.createInstanceofConverter(Class<F>, Converter<F, T>) UseCommands.scriptCommandExists(String)
instead.This copies all values from the other config and sets them in this config, which could be destructive for sensitive data if something goes wrong. Also removes user comments. UseConfig.updateNodes(Config)
instead.This copies all values from the other config and sets them in this config, which could be destructive for sensitive data if something goes wrong. Also removes user comments. UseConfig.updateNodes(Config)
instead.UseSectionNode.add(int, Node)
instead.in favour ofFunctions.getGlobalFunction(String)
for proper name.in favour ofFunctions.getGlobalSignature(String)
for proper name.UseScriptFunction.returnValues(Event, Expression)
instead.SeeScriptLoader.LoaderEvent
instead.UseParserInstance.setCurrentStructure(Structure)
with 'null' instead.UseScript.getData(Class)
instead. TheStructOptions.OptionsData
class should be obtained. Example:script.getData(OptionsData.class)
UseParserInstance.getCurrentStructure()
instead.Addons should no longer be modifying this.UseParserInstance.setCurrentStructure(Structure)
instead.UseSelfRegisteringSkriptEvent.postLoad()
instead.This method's functionality can be replaced by overridingSelfRegisteringSkriptEvent.postLoad()
. Normally, that method would register the parsed trigger withSkriptEventHandler
. A reference to theTrigger
is available throughSkriptEvent.trigger
.This method's functionality can be replaced by overridingSelfRegisteringSkriptEvent.unload()
. Normally, that method would unregister the parsed trigger withSkriptEventHandler
. A reference to theTrigger
is available throughSkriptEvent.trigger
.This method should no longer be used. Each trigger should be unregistered throughSelfRegisteringSkriptEvent.unregister(Trigger)
.UseEventValues.hasMultipleConverters(Class, Class, int)
instead.UseScriptLoader.getScriptFromName(String)
instead.This method no longer does anything as self registered Triggers. are unloaded when theSkriptEvent
is unloaded (no need to keep tracking them here).UseDate.getTime()
instead.UseItemType.hasEnchantments(Enchantment...)
instead.To be removed in a future version.Magic numbersMagic numbersUseTimespan(TimePeriod, long)
instead.UseTimespan(TimePeriod, long)
instead.UseTimespan.getAs(TimePeriod)
instead.UseTimespan.getAs(TimePeriod)
instead.UseTimespan.getAs(TimePeriod)
instead.UseClassLoader
instead.This method will be removed in a future version. If the EntryContainer is needed outside ofStructure.init(Literal[], int, ParseResult, EntryContainer)
, the Structure should keep a reference to it.
-
Deprecated ConstructorsConstructorDescriptionUse
ItemData(BlockData)
instead.UseItemType(BlockData)
instead.useScriptFunction(Signature, SectionNode)
instead.
-
Deprecated Enum Constants