Package net.glowstone.util
Class GlowUnsafeValues
java.lang.Object
net.glowstone.util.GlowUnsafeValues
- All Implemented Interfaces:
org.bukkit.UnsafeValues
Deprecated.
Implementation of Bukkit's internal-use UnsafeValues.
In CraftBukkit, this uses Mojang identifiers, but here we just stick to Bukkit's.
The implementation may be a bit sketchy but this isn't a problem since the behavior of this class isn't strictly specified.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkSupported
(org.bukkit.plugin.PluginDescriptionFile pluginDescriptionFile) Deprecated.net.kyori.adventure.text.serializer.gson.GsonComponentSerializer
Deprecated.net.kyori.adventure.text.flattener.ComponentFlattener
Deprecated.org.bukkit.entity.Entity
deserializeEntity
(byte[] data, org.bukkit.World world, boolean preserveUUID) Deprecated.org.bukkit.inventory.ItemStack
deserializeItem
(byte[] bytes) Deprecated.org.bukkit.Material
fromId
(int id) Deprecated.Converts a numerical ID to a material type.org.bukkit.Material
fromLegacy
(org.bukkit.Material material) Deprecated.org.bukkit.Material
fromLegacy
(org.bukkit.material.MaterialData material) Deprecated.org.bukkit.Material
fromLegacy
(org.bukkit.material.MaterialData material, boolean itemPriority) Deprecated.org.bukkit.block.data.BlockData
fromLegacy
(org.bukkit.Material material, byte data) Deprecated.org.bukkit.inventory.CreativeCategory
getCreativeCategory
(org.bukkit.Material material) Deprecated.int
Deprecated.com.google.common.collect.Multimap<org.bukkit.attribute.Attribute,
org.bukkit.attribute.AttributeModifier> getDefaultAttributeModifiers
(org.bukkit.Material material, org.bukkit.inventory.EquipmentSlot slot) Deprecated.@NotNull org.bukkit.attribute.Attributable
getDefaultEntityAttributes
(@NotNull org.bukkit.NamespacedKey entityKey) Deprecated.@NotNull com.google.common.collect.Multimap<org.bukkit.attribute.Attribute,
org.bukkit.attribute.AttributeModifier> getItemAttributes
(@NotNull org.bukkit.Material material, @NotNull org.bukkit.inventory.EquipmentSlot equipmentSlot) Deprecated.io.papermc.paper.inventory.ItemRarity
getItemRarity
(org.bukkit.Material material) Deprecated.io.papermc.paper.inventory.ItemRarity
getItemStackRarity
(org.bukkit.inventory.ItemStack itemStack) Deprecated.@NotNull String
Deprecated.org.bukkit.Material
getMaterial
(String material, int version) Deprecated.org.bukkit.Material
Deprecated.int
Deprecated.org.bukkit.Statistic
Deprecated.Deprecated.getTranslationKey
(org.bukkit.block.Block block) Deprecated.getTranslationKey
(org.bukkit.entity.EntityType entityType) Deprecated.getTranslationKey
(org.bukkit.inventory.ItemStack itemStack) Deprecated.getTranslationKey
(org.bukkit.Material material) Deprecated.net.kyori.adventure.text.serializer.gson.GsonComponentSerializer
Deprecated.boolean
hasDefaultEntityAttributes
(@NotNull org.bukkit.NamespacedKey entityKey) Deprecated.boolean
isCollidable
(@NotNull org.bukkit.Material material) Deprecated.boolean
Deprecated.boolean
isValidRepairItemStack
(@NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull org.bukkit.inventory.ItemStack itemStack1) Deprecated.net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer
Deprecated.org.bukkit.advancement.Advancement
loadAdvancement
(org.bukkit.NamespacedKey key, String advancement) Deprecated.org.bukkit.inventory.ItemStack
modifyItemStack
(org.bukkit.inventory.ItemStack stack, String arguments) Deprecated.int
Deprecated.net.kyori.adventure.text.serializer.plain.PlainComponentSerializer
Deprecated.net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer
Deprecated.byte[]
processClass
(org.bukkit.plugin.PluginDescriptionFile pdf, String path, byte[] clazz) Deprecated.<T extends org.bukkit.Keyed>
@NotNull org.bukkit.Registry<T>registryFor
(Class<T> classOfT) Deprecated.boolean
removeAdvancement
(org.bukkit.NamespacedKey key) Deprecated.void
Deprecated.byte[]
serializeEntity
(org.bukkit.entity.Entity entity) Deprecated.byte[]
serializeItem
(org.bukkit.inventory.ItemStack itemStack) Deprecated.tabCompleteInternalMaterialName
(String token, List<String> completions) Deprecated.tabCompleteInternalStatistic
(String token, List<String> completions) Deprecated.org.bukkit.Material
toLegacy
(org.bukkit.Material material) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.UnsafeValues
deserializeEntity, getVersionFetcher
-
Constructor Details
-
GlowUnsafeValues
public GlowUnsafeValues()Deprecated.
-
-
Method Details
-
getMaterialFromInternalName
Deprecated. -
tabCompleteInternalMaterialName
@Deprecated public List<String> tabCompleteInternalMaterialName(String token, List<String> completions) Deprecated. -
componentFlattener
public net.kyori.adventure.text.flattener.ComponentFlattener componentFlattener()Deprecated.- Specified by:
componentFlattener
in interfaceorg.bukkit.UnsafeValues
-
plainComponentSerializer
public net.kyori.adventure.text.serializer.plain.PlainComponentSerializer plainComponentSerializer()Deprecated.- Specified by:
plainComponentSerializer
in interfaceorg.bukkit.UnsafeValues
-
plainTextSerializer
public net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer plainTextSerializer()Deprecated.- Specified by:
plainTextSerializer
in interfaceorg.bukkit.UnsafeValues
-
gsonComponentSerializer
public net.kyori.adventure.text.serializer.gson.GsonComponentSerializer gsonComponentSerializer()Deprecated.- Specified by:
gsonComponentSerializer
in interfaceorg.bukkit.UnsafeValues
-
colorDownsamplingGsonComponentSerializer
public net.kyori.adventure.text.serializer.gson.GsonComponentSerializer colorDownsamplingGsonComponentSerializer()Deprecated.- Specified by:
colorDownsamplingGsonComponentSerializer
in interfaceorg.bukkit.UnsafeValues
-
legacyComponentSerializer
public net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer legacyComponentSerializer()Deprecated.- Specified by:
legacyComponentSerializer
in interfaceorg.bukkit.UnsafeValues
-
reportTimings
public void reportTimings()Deprecated.- Specified by:
reportTimings
in interfaceorg.bukkit.UnsafeValues
-
toLegacy
public org.bukkit.Material toLegacy(org.bukkit.Material material) Deprecated.- Specified by:
toLegacy
in interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.Material fromLegacy(org.bukkit.Material material) Deprecated.- Specified by:
fromLegacy
in interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.Material fromLegacy(org.bukkit.material.MaterialData material) Deprecated.- Specified by:
fromLegacy
in interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.Material fromLegacy(org.bukkit.material.MaterialData material, boolean itemPriority) Deprecated.- Specified by:
fromLegacy
in interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.block.data.BlockData fromLegacy(org.bukkit.Material material, byte data) Deprecated.- Specified by:
fromLegacy
in interfaceorg.bukkit.UnsafeValues
-
getMaterial
Deprecated.- Specified by:
getMaterial
in interfaceorg.bukkit.UnsafeValues
-
fromId
public org.bukkit.Material fromId(int id) Deprecated.Converts a numerical ID to a material type.Should only be used for network protocol.
- Parameters:
id
- the numerical ID of the material- Returns:
- the material
-
getDataVersion
public int getDataVersion()Deprecated.- Specified by:
getDataVersion
in interfaceorg.bukkit.UnsafeValues
-
modifyItemStack
public org.bukkit.inventory.ItemStack modifyItemStack(org.bukkit.inventory.ItemStack stack, String arguments) Deprecated.- Specified by:
modifyItemStack
in interfaceorg.bukkit.UnsafeValues
-
checkSupported
public void checkSupported(org.bukkit.plugin.PluginDescriptionFile pluginDescriptionFile) Deprecated.- Specified by:
checkSupported
in interfaceorg.bukkit.UnsafeValues
-
processClass
Deprecated.- Specified by:
processClass
in interfaceorg.bukkit.UnsafeValues
-
getStatisticFromInternalName
Deprecated. -
tabCompleteInternalStatistic
@Deprecated public List<String> tabCompleteInternalStatistic(String token, List<String> completions) Deprecated. -
loadAdvancement
public org.bukkit.advancement.Advancement loadAdvancement(org.bukkit.NamespacedKey key, String advancement) Deprecated.- Specified by:
loadAdvancement
in interfaceorg.bukkit.UnsafeValues
-
removeAdvancement
public boolean removeAdvancement(org.bukkit.NamespacedKey key) Deprecated.- Specified by:
removeAdvancement
in interfaceorg.bukkit.UnsafeValues
-
getDefaultAttributeModifiers
public com.google.common.collect.Multimap<org.bukkit.attribute.Attribute,org.bukkit.attribute.AttributeModifier> getDefaultAttributeModifiers(org.bukkit.Material material, org.bukkit.inventory.EquipmentSlot slot) Deprecated.- Specified by:
getDefaultAttributeModifiers
in interfaceorg.bukkit.UnsafeValues
-
getCreativeCategory
public org.bukkit.inventory.CreativeCategory getCreativeCategory(org.bukkit.Material material) Deprecated.- Specified by:
getCreativeCategory
in interfaceorg.bukkit.UnsafeValues
-
getTimingsServerName
Deprecated.- Specified by:
getTimingsServerName
in interfaceorg.bukkit.UnsafeValues
-
isSupportedApiVersion
Deprecated.- Specified by:
isSupportedApiVersion
in interfaceorg.bukkit.UnsafeValues
-
serializeItem
public byte[] serializeItem(org.bukkit.inventory.ItemStack itemStack) Deprecated.- Specified by:
serializeItem
in interfaceorg.bukkit.UnsafeValues
-
deserializeItem
public org.bukkit.inventory.ItemStack deserializeItem(byte[] bytes) Deprecated.- Specified by:
deserializeItem
in interfaceorg.bukkit.UnsafeValues
-
serializeEntity
public byte[] serializeEntity(org.bukkit.entity.Entity entity) Deprecated.- Specified by:
serializeEntity
in interfaceorg.bukkit.UnsafeValues
-
deserializeEntity
public org.bukkit.entity.Entity deserializeEntity(byte[] data, org.bukkit.World world, boolean preserveUUID) Deprecated.- Specified by:
deserializeEntity
in interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKey
in interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKey
in interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKey
in interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKey
in interfaceorg.bukkit.UnsafeValues
-
nextEntityId
public int nextEntityId()Deprecated.- Specified by:
nextEntityId
in interfaceorg.bukkit.UnsafeValues
-
registryFor
@NotNull public <T extends org.bukkit.Keyed> @NotNull org.bukkit.Registry<T> registryFor(Class<T> classOfT) Deprecated.- Specified by:
registryFor
in interfaceorg.bukkit.UnsafeValues
-
getMainLevelName
Deprecated.- Specified by:
getMainLevelName
in interfaceorg.bukkit.UnsafeValues
-
getItemRarity
public io.papermc.paper.inventory.ItemRarity getItemRarity(org.bukkit.Material material) Deprecated.- Specified by:
getItemRarity
in interfaceorg.bukkit.UnsafeValues
-
getItemStackRarity
public io.papermc.paper.inventory.ItemRarity getItemStackRarity(org.bukkit.inventory.ItemStack itemStack) Deprecated.- Specified by:
getItemStackRarity
in interfaceorg.bukkit.UnsafeValues
-
isValidRepairItemStack
public boolean isValidRepairItemStack(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull @NotNull org.bukkit.inventory.ItemStack itemStack1) Deprecated.- Specified by:
isValidRepairItemStack
in interfaceorg.bukkit.UnsafeValues
-
getItemAttributes
@NotNull public @NotNull com.google.common.collect.Multimap<org.bukkit.attribute.Attribute,org.bukkit.attribute.AttributeModifier> getItemAttributes(@NotNull @NotNull org.bukkit.Material material, @NotNull @NotNull org.bukkit.inventory.EquipmentSlot equipmentSlot) Deprecated.- Specified by:
getItemAttributes
in interfaceorg.bukkit.UnsafeValues
-
getProtocolVersion
public int getProtocolVersion()Deprecated.- Specified by:
getProtocolVersion
in interfaceorg.bukkit.UnsafeValues
-
hasDefaultEntityAttributes
public boolean hasDefaultEntityAttributes(@NotNull @NotNull org.bukkit.NamespacedKey entityKey) Deprecated.- Specified by:
hasDefaultEntityAttributes
in interfaceorg.bukkit.UnsafeValues
-
getDefaultEntityAttributes
@NotNull public @NotNull org.bukkit.attribute.Attributable getDefaultEntityAttributes(@NotNull @NotNull org.bukkit.NamespacedKey entityKey) Deprecated.- Specified by:
getDefaultEntityAttributes
in interfaceorg.bukkit.UnsafeValues
-
isCollidable
public boolean isCollidable(@NotNull @NotNull org.bukkit.Material material) Deprecated.- Specified by:
isCollidable
in interfaceorg.bukkit.UnsafeValues
-