Package org.bukkit
Interface UnsafeValues
Deprecated.
This interface provides value conversions that may be specific to a
 runtime, or have arbitrary meaning (read: magic values).
 
Their existence and behavior is not guaranteed across future versions. They may be poorly named, throw exceptions, have misleading parameters, or any other bad programming practice.
- 
Method SummaryModifier and TypeMethodDescriptionvoidDeprecated.createDamageSourceBuilder(DamageType damageType) Deprecated.Create a newDamageSource.Builder.Deprecated.Deprecated.fromLegacy(Material material) Deprecated.fromLegacy(MaterialData material) Deprecated.fromLegacy(MaterialData material, boolean itemPriority) Deprecated.fromLegacy(Material material, byte data) Deprecated.Deprecated.<B extends Keyed>
 Bget(Registry<B> registry, NamespacedKey key) Deprecated.getBlockTranslationKey(Material material) Deprecated, for removal: This API element is subject to removal in a future version.getCreativeCategory(Material material) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated.getDamageEffect(String key) Deprecated.intDeprecated.getDefaultAttributeModifiers(Material material, EquipmentSlot slot) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated.Deprecated, for removal: This API element is subject to removal in a future version.getItemTranslationKey(Material material) Deprecated, for removal: This API element is subject to removal in a future version.getMaterial(String material, int version) Deprecated.getTranslationKey(Attribute attribute) Deprecated, for removal: This API element is subject to removal in a future version.getTranslationKey(EntityType entityType) Deprecated.getTranslationKey(ItemStack itemStack) Deprecated.loadAdvancement(NamespacedKey key, String advancement) Deprecated.Load an advancement represented by the specified string into the server.modifyItemStack(ItemStack stack, String arguments) Deprecated.byte[]processClass(PluginDescriptionFile pdf, String path, byte[] clazz) Deprecated.booleanDeprecated.Delete an advancement which was loaded and saved byloadAdvancement(org.bukkit.NamespacedKey, java.lang.String).Deprecated.
- 
Method Details- 
toLegacyDeprecated.
- 
fromLegacyDeprecated.
- 
fromLegacyDeprecated.
- 
fromLegacyDeprecated.
- 
fromLegacyDeprecated.
- 
getMaterialDeprecated.
- 
getDataVersionint getDataVersion()Deprecated.
- 
modifyItemStackDeprecated.
- 
checkSupportedDeprecated.- Throws:
- InvalidPluginException
 
- 
processClassDeprecated.
- 
loadAdvancementDeprecated.Load an advancement represented by the specified string into the server. The advancement format is governed by Minecraft and has no specified layout.
 It is currently a JSON object, as described by the Minecraft wiki.
 Loaded advancements will be stored and persisted across server restarts and reloads.
 Callers should be prepared forExceptionto be thrown.- Parameters:
- key- the unique advancement key
- advancement- representation of the advancement
- Returns:
- the loaded advancement or null if an error occurred
 
- 
removeAdvancementDeprecated.Delete an advancement which was loaded and saved byloadAdvancement(org.bukkit.NamespacedKey, java.lang.String).
 This method will only remove advancement from persistent storage. It should be accompanied by a call toServer.reloadData()in order to fully remove it from the running instance.- Parameters:
- key- the unique advancement key
- Returns:
- true if a file matching this key was found and deleted
 
- 
getDefaultAttributeModifiers@Deprecated(since="1.21", forRemoval=true) Multimap<Attribute,AttributeModifier> getDefaultAttributeModifiers(Material material, EquipmentSlot slot) Deprecated, for removal: This API element is subject to removal in a future version.
- 
getCreativeCategoryDeprecated, for removal: This API element is subject to removal in a future version.
- 
getBlockTranslationKeyDeprecated, for removal: This API element is subject to removal in a future version.
- 
getItemTranslationKeyDeprecated, for removal: This API element is subject to removal in a future version.
- 
getTranslationKeyDeprecated.
- 
getTranslationKeyDeprecated.
- 
getTranslationKeyDeprecated, for removal: This API element is subject to removal in a future version.
- 
getFeatureFlagDeprecated.
- 
getInternalPotionData@Internal @Deprecated(since="1.20.2", forRemoval=true) PotionType.InternalPotionData getInternalPotionData(NamespacedKey key) Deprecated, for removal: This API element is subject to removal in a future version.Do not use, method will get removed, and the plugin won't run- Parameters:
- key- of the potion type
- Returns:
- an internal potion data
 
- 
getDamageEffectDeprecated.
- 
createDamageSourceBuilderDeprecated.Create a newDamageSource.Builder.- Parameters:
- damageType- the- DamageTypeto use
- Returns:
- a DamageSource.Builder
 
- 
getDeprecated.
- 
getDeprecated.
- 
getCustomBiomeDeprecated.
- 
createReputationTypeDeprecated.
- 
createReputationEventDeprecated.
 
-