Deprecated API
Contents
-
InterfaceDescriptiondoes not provide useful information beyond the material itselflingering status depends on only on the potion item.splash status depends on only on the potion item.tipped status depends only on base potion type not being UNCRAFTABLE and effects being empty.Biomes are now set with
BiomeProvider
this API part has been replaced by thePersistentDataHolder
API. Please usePersistentDataHolder
instead of this.this API part has been replaced byPersistentDataHolder
. Please usePersistentDataAdapterContext
instead of this.please usePersistentDataType
as this part of the api is being replaced
-
ClassDescriptionUse the more generic
PlayerBucketEntityEvent
This event will fire from the main thread and allows the use of all of the Bukkit API, unlike theAsyncPlayerChatEvent
.Listening to this event forces chat to wait for the main thread which causes delays for chat.
AsyncPlayerChatEvent
is the encouraged alternative for thread safe implementations.This event is no longer fired due to client changesdraft APIThis event causes synchronization from the login thread;AsyncPlayerPreLoginEvent
is preferred to keep the secondary threads asynchronous.draft APIall usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.useSpawnEggMeta
all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.
-
EnumDescriptionfuture versions of Minecraft have additional spell casting entities.different variants are differing classesCats are now a separate entity.classes are different types. This interface only remains in the Skeleton interface to preserve backwards compatibility.This API is responsible for a large number of implementation problems and is in general unsustainable to maintain. It is likely to be removed very soon in a subsequent release. Please see https://www.spigotmc.org/threads/194446/ for more information.replaced by
Team.OptionStatus
checkMaterial
instead
-
Annotation TypeDescriptionThis should generally not be used in any new API code as it suggests a bad API design.
-
FieldDescriptionunused, not intended to be APIunused, not intended to be APIMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic value
-
MethodDescriptionMagic valueMagic valueMagic valueMagic valueMagic valuemagic value, use
CreatureSpawner.getSpawnedType()
.magic value, useCreatureSpawner.setSpawnedType(org.bukkit.entity.EntityType)
.Magic valueMagic valueuseBlockData
checkMaterial
insteaduseBlockData
checkMaterial
insteadDeprecated in favor ofBukkit.getSpawnLimit(SpawnCategory)
Deprecated in favor ofBukkit.getSpawnLimit(SpawnCategory)
Magic valueDeprecated in favor ofBukkit.getSpawnLimit(SpawnCategory)
Persistent storage of users should be by UUID as names are no longer unique past a single session.Deprecated in favor ofBukkit.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofBukkit.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofBukkit.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofBukkit.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofBukkit.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofBukkit.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofBukkit.getSpawnLimit(SpawnCategory)
Deprecated in favor ofBukkit.getSpawnLimit(SpawnCategory)
Deprecated in favor ofBukkit.getSpawnLimit(SpawnCategory)
biomes are now 3-dimensionalMagic valuebiomes are now 3-dimensionalMagic valueMagic valueThis method only exists for backwards compatibility. It will do nothing and should not be used! Please useFileConfigurationOptions.getHeader()
instead.CallFileConfigurationOptions.parseComments()
instead.CallFileConfigurationOptions.parseComments(boolean)
instead.use getHeader() instead.use setHeader() insteadMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valuelegacy use onlyMagic valueMagic valueenchantments are badly named, useEnchantment.getByKey(org.bukkit.NamespacedKey)
.enchantments are badly named, useEnchantment.getKey()
.cursed enchantments are no longer special. Will return true only forEnchantment.BINDING_CURSE
andEnchantment.VANISHING_CURSE
.different variants are different classesyou are required to spawn a different entityshould check what class instance this is.Must spawn a new subtype variantpreferEntityEquipment.getBoots()
preferEntityEquipment.getHelmet()
boats are complex and many of these methods do not work correctly across multiple versions.boats are complex and many of these methods do not work correctly across multiple versions.boats are complex and many of these methods do not work correctly across multiple versions.boats are complex and many of these methods do not work correctly across multiple versions.boats are complex and many of these methods do not work correctly across multiple versions.boats are complex and many of these methods do not work correctly across multiple versions.boats are complex and many of these methods do not work correctly across multiple versions.boats are complex and many of these methods do not work correctly across multiple versions.this functionality no longer existsthis functionality no longer existsentities may have multiple passengers, useEntity.getPassengers()
entities may have multiple passengers, useEntity.addPassenger(org.bukkit.entity.Entity)
Magic valueMagic valueMagic valueMagic valuefuture versions of Minecraft have additional spell casting entities.future versions of Minecraft have additional spell casting entities.has no effect in newer Minecraft versionshas no effect in newer Minecraft versionsshould check if instance ofElderGuardian
.Must spawn a newElderGuardian
.seeChestedHorse
seeChestedHorse
Humans may now dual wield in their off hand, use explicit methods inPlayerInventory
.There are currently no well defined semantics regarding serialized entities in Bukkit. Use with care.There are currently no well defined semantics regarding serialized entities in Bukkit. Use with care.Humans may now dual wield in their off hand, use explicit methods inPlayerInventory
.There are currently no well defined semantics regarding serialized entities in Bukkit. Use with care.There are currently no well defined semantics regarding serialized entities in Bukkit. Use with care.no need to force since multiple effects of the same type are now supported.Magic valueMagic valueseeAgeable.setBaby()
andAgeable.setAdult()
draft APIdraft APIThis value is controlled only by the client and is therefore unreliable and vulnerable to spoofing and/or desync depending on the context/time which it is accessedMagic valueMagic valueMagic valueAPI behavior subject to changeMinecraft no longer uses textures packs. Instead you should usePlayer.setResourcePack(String)
.draft APIseeAgeable.setBaby()
andAgeable.setAdult()
check if instanceofZombieVillager
.seeAgeable.setBaby()
andAgeable.setAdult()
must spawnZombieVillager
.Magic valueslime blocks make the value of this method inaccurate due to blocks being pushed at the sidenot all cauldron contents are Levellednot all cauldron contents are Levellednot all cauldron contents are Levelledno effect on newer Minecraft versionsno effect on newer Minecraft versionsUsePrepareItemEnchantEvent.getOffers()
instead of this methodhorse jumping was moved client side.horse jumping was moved client side.MC 1.14 has changed how villagers restock their trades. UseMerchantRecipe.getUses()
.MC 1.14 has changed how villagers restock their trades. This has no effect anymore.This changes the ItemStack in their hand before any calculations are applied to the Inventory, which has a tendency to create inconsistencies between the Player and the server, and to make unexpected changes in the behavior of the clicked Inventory.This method uses a deprecated enum fromPlayerPreLoginEvent
This method uses a deprecated enum fromPlayerPreLoginEvent
This method uses a deprecated enum fromPlayerPreLoginEvent
This method is provided for backward compatibility with no guarantee to the effect of viewing or modifying the set.books may be signed from off handThis event has two possible cancellation states, one forPlayerInteractEvent.useInteractedBlock()
and one forPlayerInteractEvent.useItemInHand()
. It is possible a call might have the former false, but the latter true, eg in the case of using a firework whilst gliding. Callers should check the relevant methods individually.Magic valueMagic valuebiomes are now 3-dimensionalbiomes are now 3-dimensionalUses magic valuesChunkGenerator.ChunkData
are now directly providedThe generation is now split up and the new methods should be used, seeChunkGenerator
the chunk generation code should be thread safeMagic valueMagic valueMagic valueMagic valueentities can duel wield now use the methods for the specific hand insteadentities can duel wield now use the methods for the specific hand insteadentities can duel wield now use the methods for the specific hand insteadentities can duel wield now use the methods for the specific hand insteadMagic valueMagic valuefor internal use onlydurability is now part of ItemMeta. To avoid confusion and misuse,ItemStack.getItemMeta()
,ItemStack.setItemMeta(ItemMeta)
andDamageable.setDamage(int)
should be used instead. This is because any call to this method will be overwritten by subsequent setting of ItemMeta which was created before this call.banner color is now stored as the data value, not meta.banner color is now stored as the data value, not meta.this API part has been replaced by thePersistentDataHolder
API. Please usePersistentDataHolder.getPersistentDataContainer()
instead of this.internal use onlyThese methods are poor API: They rely on the caller to pass in an only an integer property, and have poorly defined implementation behavior if that integer is not a valid map (the current implementation for example will generate a new map with a different ID). The xxxMapView family of methods should be used instead.These methods are poor API: They rely on the caller to pass in an only an integer property, and have poorly defined implementation behavior if that integer is not a valid map (the current implementation for example will generate a new map with a different ID). The xxxMapView family of methods should be used instead.These methods are poor API: They rely on the caller to pass in an only an integer property, and have poorly defined implementation behavior if that integer is not a valid map (the current implementation for example will generate a new map with a different ID). The xxxMapView family of methods should be used instead.different types are different itemsdifferent types are different itemsplayers can duel wield now use the methods for the specific hand insteadplayers can duel wield now use the methods for the specific hand insteadfor compatibility onlyMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueThis method should not be used; use hinge and facing accessors instead.Magic valueMagic valueMagic valuecurrently does not have an implementation which is well linked to the underlying server. Contributions welcome.Magic valueMagic valuethis method creates an ItemStack of size 0 which is not generally useful. ConsiderMaterialData.toItemStack(int)
.Use MushroomBlockType cap optionsMagic valueThis is now stored inSpawnEggMeta
.This is now stored inSpawnEggMeta
.Magic valueMagic valueMagic valueMagic valueMagic valueMagic valueshould never be used by plugins, for internal use only!!Magic valueMagic valueMagic valueMagic valueMagic valuenot an API methodnot an API methodunusedInternal useNon-functionalNon-functionalNon-Functionalcolor is not part of potion effectsMagic valueunused, always 1.0Magic valueMisleadingMagic valueMagic valueThis name is misleading, as it does not schedule "a sync" task, but rather, "an async" taskThis name is misleading, as it does not schedule "a sync" task, but rather, "an async" taskThis name is misleading, as it does not schedule "a sync" task, but rather, "an async" taskScoreboards can contain entries that aren't playersScoreboards can contain entries that aren't playersScoreboards can contain entries that aren't playersScoreboards can contain entries that aren't playersScoreboards can contain entries that aren't playersa displayName should be explicitly specifiedScoreboards can contain entries that aren't playersTeams can contain entries that aren't playersTeams can contain entries that aren't playersTeams can contain entries that aren't playersTeams can contain entries that aren't playersDeprecated in favor ofServer.getSpawnLimit(SpawnCategory)
Deprecated in favor ofServer.getSpawnLimit(SpawnCategory)
Magic valueDeprecated in favor ofServer.getSpawnLimit(SpawnCategory)
Persistent storage of users should be by UUID as names are no longer unique past a single session.Deprecated in favor ofServer.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofServer.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofServer.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofServer.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofServer.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofServer.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofServer.getSpawnLimit(SpawnCategory)
Deprecated in favor ofServer.getSpawnLimit(SpawnCategory)
Deprecated in favor ofServer.getSpawnLimit(SpawnCategory)
Magic valueMagic valueMagic valueMagic valuethis method does not handle tile entities (bee nests)Deprecated in favor ofWorld.getSpawnLimit(SpawnCategory)
Deprecated in favor ofWorld.getSpawnLimit(SpawnCategory)
biomes are now 3-dimensionaluseWorld.getGameRuleValue(GameRule)
insteadbiomes are now 3-dimensionalDeprecated in favor ofWorld.getSpawnLimit(SpawnCategory)
biomes are now 3-dimensionalDeprecated in favor ofWorld.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofWorld.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofWorld.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofWorld.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofWorld.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofWorld.getTicksPerSpawns(SpawnCategory)
Deprecated in favor ofWorld.getSpawnLimit(SpawnCategory)
Deprecated in favor ofWorld.getSpawnLimit(SpawnCategory)
Deprecated in favor ofWorld.getSpawnLimit(SpawnCategory)
world type is only used to select the default word generation settings and is not stored in Vanilla worlds, making it impossible for this method to always return the correct value.This method was added to facilitate chunk garbage collection. As of the current Minecraft version chunks are now strictly managed and will not be loaded for more than 1 tick unless they are in use.This method is not guaranteed to work suitably across all client implementations.regenerating a single chunk is not likely to produce the same chunk as before as terrain decoration may be spread across chunks. Use of this method should be avoided as it is known to produce buggy results.Deprecated in favor ofWorld.setSpawnLimit(SpawnCategory, int)
Deprecated in favor ofWorld.getSpawnLimit(SpawnCategory)
biomes are now 3-dimensionaluseWorld.setGameRule(GameRule, Object)
instead.Deprecated in favor ofWorld.setSpawnLimit(SpawnCategory, int)
Deprecated in favor ofWorld.setTicksPerSpawns(SpawnCategory, int)
Deprecated in favor ofWorld.setTicksPerSpawns(SpawnCategory, int)
Deprecated in favor ofWorld.setTicksPerSpawns(SpawnCategory, int)
Deprecated in favor ofWorld.setTicksPerSpawns(SpawnCategory, int)
Deprecated in favor ofWorld.setTicksPerSpawns(SpawnCategory, int)
Deprecated in favor ofWorld.setTicksPerSpawns(SpawnCategory, int)
Deprecated in favor ofWorld.setSpawnLimit(SpawnCategory, int)
Deprecated in favor ofWorld.setSpawnLimit(SpawnCategory, int)
Deprecated in favor ofWorld.setSpawnLimit(SpawnCategory, int)
Magic value
-
ConstructorDescriptionthis method uses an ambiguous data byte objectMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueArtifact of old API, equivalent to new
Door(Material.LEGACY_WOODEN_DOOR);
Magic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueMagic valueshould never be used by plugins, for internal use only!!In favour of usingPotion(PotionType)
withPotion.splash()
.
-
Enum ConstantDescriptionthis target no longer exists in Vanillaalthough this effect may trigger other events on non-living entities, it's only supported usage is on living ones.although this effect may trigger other events on non-living entities, it's only supported usage is on living ones.no longer called, chunks are generated with entities already existing. Consider using
ChunkLoadEvent
,ChunkLoadEvent.isNewChunk()
andChunk.getEntities()
for similar effect.all plugins are now assumed to be UTF-8 aware.