Class MockUnsafeValues

java.lang.Object
be.seeseemelk.mockbukkit.MockUnsafeValues
All Implemented Interfaces:
org.bukkit.UnsafeValues

@Deprecated public class MockUnsafeValues extends Object implements org.bukkit.UnsafeValues
Deprecated.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.kyori.adventure.text.serializer.gson.GsonComponentSerializer
    Deprecated.
     
    static final net.kyori.adventure.text.flattener.ComponentFlattener
    Deprecated.
     
    static final net.kyori.adventure.text.serializer.gson.GsonComponentSerializer
    Deprecated.
     
    static final net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer
    Deprecated.
     
    static final net.kyori.adventure.text.serializer.plain.PlainComponentSerializer
    Deprecated.
     
    static final net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkSupported(org.bukkit.plugin.PluginDescriptionFile pdf)
    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)
    Deprecated.
     
    org.bukkit.entity.Entity
    deserializeEntity(byte[] data, org.bukkit.World world, boolean preserveUUID)
    Deprecated.
     
    org.bukkit.inventory.ItemStack
    deserializeItem(byte[] data)
    Deprecated.
     
    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.
     
    int
    Deprecated.
     
    Deprecated.
     
    getTranslationKey(org.bukkit.block.Block block)
    Deprecated.
     
    getTranslationKey(org.bukkit.entity.EntityType type)
    Deprecated.
     
    getTranslationKey(org.bukkit.inventory.ItemStack itemStack)
    Deprecated.
     
    getTranslationKey(org.bukkit.Material mat)
    Deprecated.
     
    com.destroystokyo.paper.util.VersionFetcher
    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 itemToBeRepaired, @NotNull org.bukkit.inventory.ItemStack repairMaterial)
    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, for removal: This API element is subject to removal in a future version.
    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 item)
    Deprecated.
     
    void
    setMinimumApiVersion(String minimumApiVersion)
    Deprecated.
    Sets the minimum api-version allowed.
    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
  • Field Details

    • FLATTENER

      public static final net.kyori.adventure.text.flattener.ComponentFlattener FLATTENER
      Deprecated.
    • LEGACY_SECTION_UXRC

      public static final net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer LEGACY_SECTION_UXRC
      Deprecated.
    • PLAIN

      public static final net.kyori.adventure.text.serializer.plain.PlainComponentSerializer PLAIN
      Deprecated.
    • PLAIN_TEXT

      public static final net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer PLAIN_TEXT
      Deprecated.
    • GSON

      public static final net.kyori.adventure.text.serializer.gson.GsonComponentSerializer GSON
      Deprecated.
    • COLOR_DOWNSAMPLING_GSON

      public static final net.kyori.adventure.text.serializer.gson.GsonComponentSerializer COLOR_DOWNSAMPLING_GSON
      Deprecated.
  • Constructor Details

    • MockUnsafeValues

      public MockUnsafeValues()
      Deprecated.
  • Method Details

    • componentFlattener

      public net.kyori.adventure.text.flattener.ComponentFlattener componentFlattener()
      Deprecated.
      Specified by:
      componentFlattener in interface org.bukkit.UnsafeValues
    • plainComponentSerializer

      @Deprecated(forRemoval=true) public net.kyori.adventure.text.serializer.plain.PlainComponentSerializer plainComponentSerializer()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      plainComponentSerializer in interface org.bukkit.UnsafeValues
    • plainTextSerializer

      public net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer plainTextSerializer()
      Deprecated.
      Specified by:
      plainTextSerializer in interface org.bukkit.UnsafeValues
    • gsonComponentSerializer

      public net.kyori.adventure.text.serializer.gson.GsonComponentSerializer gsonComponentSerializer()
      Deprecated.
      Specified by:
      gsonComponentSerializer in interface org.bukkit.UnsafeValues
    • colorDownsamplingGsonComponentSerializer

      public net.kyori.adventure.text.serializer.gson.GsonComponentSerializer colorDownsamplingGsonComponentSerializer()
      Deprecated.
      Specified by:
      colorDownsamplingGsonComponentSerializer in interface org.bukkit.UnsafeValues
    • legacyComponentSerializer

      public net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer legacyComponentSerializer()
      Deprecated.
      Specified by:
      legacyComponentSerializer in interface org.bukkit.UnsafeValues
    • reportTimings

      public void reportTimings()
      Deprecated.
      Specified by:
      reportTimings in interface org.bukkit.UnsafeValues
    • toLegacy

      public org.bukkit.Material toLegacy(org.bukkit.Material material)
      Deprecated.
      Specified by:
      toLegacy in interface org.bukkit.UnsafeValues
    • fromLegacy

      public org.bukkit.Material fromLegacy(org.bukkit.Material material)
      Deprecated.
      Specified by:
      fromLegacy in interface org.bukkit.UnsafeValues
    • fromLegacy

      public org.bukkit.Material fromLegacy(org.bukkit.material.MaterialData material)
      Deprecated.
      Specified by:
      fromLegacy in interface org.bukkit.UnsafeValues
    • fromLegacy

      public org.bukkit.Material fromLegacy(org.bukkit.material.MaterialData material, boolean itemPriority)
      Deprecated.
      Specified by:
      fromLegacy in interface org.bukkit.UnsafeValues
    • fromLegacy

      public org.bukkit.block.data.BlockData fromLegacy(org.bukkit.Material material, byte data)
      Deprecated.
      Specified by:
      fromLegacy in interface org.bukkit.UnsafeValues
    • getDataVersion

      public int getDataVersion()
      Deprecated.
      Specified by:
      getDataVersion in interface org.bukkit.UnsafeValues
    • modifyItemStack

      public org.bukkit.inventory.ItemStack modifyItemStack(org.bukkit.inventory.ItemStack stack, String arguments)
      Deprecated.
      Specified by:
      modifyItemStack in interface org.bukkit.UnsafeValues
    • setMinimumApiVersion

      public void setMinimumApiVersion(String minimumApiVersion)
      Deprecated.
      Sets the minimum api-version allowed.
      Parameters:
      minimumApiVersion - The minimum API version to support.
    • checkSupported

      public void checkSupported(org.bukkit.plugin.PluginDescriptionFile pdf) throws org.bukkit.plugin.InvalidPluginException
      Deprecated.
      Specified by:
      checkSupported in interface org.bukkit.UnsafeValues
      Throws:
      org.bukkit.plugin.InvalidPluginException
    • processClass

      public byte[] processClass(org.bukkit.plugin.PluginDescriptionFile pdf, String path, byte[] clazz)
      Deprecated.
      Specified by:
      processClass in interface org.bukkit.UnsafeValues
    • loadAdvancement

      public org.bukkit.advancement.Advancement loadAdvancement(org.bukkit.NamespacedKey key, String advancement)
      Deprecated.
      Specified by:
      loadAdvancement in interface org.bukkit.UnsafeValues
    • removeAdvancement

      public boolean removeAdvancement(org.bukkit.NamespacedKey key)
      Deprecated.
      Specified by:
      removeAdvancement in interface org.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 interface org.bukkit.UnsafeValues
    • getCreativeCategory

      public org.bukkit.inventory.CreativeCategory getCreativeCategory(org.bukkit.Material material)
      Deprecated.
      Specified by:
      getCreativeCategory in interface org.bukkit.UnsafeValues
    • getTimingsServerName

      public String getTimingsServerName()
      Deprecated.
      Specified by:
      getTimingsServerName in interface org.bukkit.UnsafeValues
    • getVersionFetcher

      public com.destroystokyo.paper.util.VersionFetcher getVersionFetcher()
      Deprecated.
      Specified by:
      getVersionFetcher in interface org.bukkit.UnsafeValues
    • isSupportedApiVersion

      public boolean isSupportedApiVersion(String apiVersion)
      Deprecated.
      Specified by:
      isSupportedApiVersion in interface org.bukkit.UnsafeValues
    • serializeItem

      public byte[] serializeItem(org.bukkit.inventory.ItemStack item)
      Deprecated.
      Specified by:
      serializeItem in interface org.bukkit.UnsafeValues
    • deserializeItem

      public org.bukkit.inventory.ItemStack deserializeItem(byte[] data)
      Deprecated.
      Specified by:
      deserializeItem in interface org.bukkit.UnsafeValues
    • serializeEntity

      public byte[] serializeEntity(org.bukkit.entity.Entity entity)
      Deprecated.
      Specified by:
      serializeEntity in interface org.bukkit.UnsafeValues
    • deserializeEntity

      public org.bukkit.entity.Entity deserializeEntity(byte[] data, org.bukkit.World world)
      Deprecated.
      Specified by:
      deserializeEntity in interface org.bukkit.UnsafeValues
    • deserializeEntity

      public org.bukkit.entity.Entity deserializeEntity(byte[] data, org.bukkit.World world, boolean preserveUUID)
      Deprecated.
      Specified by:
      deserializeEntity in interface org.bukkit.UnsafeValues
    • getTranslationKey

      public String getTranslationKey(org.bukkit.Material mat)
      Deprecated.
      Specified by:
      getTranslationKey in interface org.bukkit.UnsafeValues
    • getTranslationKey

      public String getTranslationKey(org.bukkit.block.Block block)
      Deprecated.
      Specified by:
      getTranslationKey in interface org.bukkit.UnsafeValues
    • getTranslationKey

      public String getTranslationKey(org.bukkit.entity.EntityType type)
      Deprecated.
      Specified by:
      getTranslationKey in interface org.bukkit.UnsafeValues
    • getTranslationKey

      public String getTranslationKey(org.bukkit.inventory.ItemStack itemStack)
      Deprecated.
      Specified by:
      getTranslationKey in interface org.bukkit.UnsafeValues
    • nextEntityId

      public int nextEntityId()
      Deprecated.
      Specified by:
      nextEntityId in interface org.bukkit.UnsafeValues
    • registryFor

      @NotNull public <T extends org.bukkit.Keyed> @NotNull org.bukkit.Registry<T> registryFor(Class<T> classOfT)
      Deprecated.
      Specified by:
      registryFor in interface org.bukkit.UnsafeValues
    • getMainLevelName

      @NotNull public @NotNull String getMainLevelName()
      Deprecated.
      Specified by:
      getMainLevelName in interface org.bukkit.UnsafeValues
    • getItemRarity

      public io.papermc.paper.inventory.ItemRarity getItemRarity(org.bukkit.Material material)
      Deprecated.
      Specified by:
      getItemRarity in interface org.bukkit.UnsafeValues
    • getItemStackRarity

      public io.papermc.paper.inventory.ItemRarity getItemStackRarity(org.bukkit.inventory.ItemStack itemStack)
      Deprecated.
      Specified by:
      getItemStackRarity in interface org.bukkit.UnsafeValues
    • isValidRepairItemStack

      public boolean isValidRepairItemStack(@NotNull @NotNull org.bukkit.inventory.ItemStack itemToBeRepaired, @NotNull @NotNull org.bukkit.inventory.ItemStack repairMaterial)
      Deprecated.
      Specified by:
      isValidRepairItemStack in interface org.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 interface org.bukkit.UnsafeValues
    • getProtocolVersion

      public int getProtocolVersion()
      Deprecated.
      Specified by:
      getProtocolVersion in interface org.bukkit.UnsafeValues
    • hasDefaultEntityAttributes

      public boolean hasDefaultEntityAttributes(@NotNull @NotNull org.bukkit.NamespacedKey entityKey)
      Deprecated.
      Specified by:
      hasDefaultEntityAttributes in interface org.bukkit.UnsafeValues
    • getDefaultEntityAttributes

      @NotNull public @NotNull org.bukkit.attribute.Attributable getDefaultEntityAttributes(@NotNull @NotNull org.bukkit.NamespacedKey entityKey)
      Deprecated.
      Specified by:
      getDefaultEntityAttributes in interface org.bukkit.UnsafeValues
    • isCollidable

      public boolean isCollidable(@NotNull @NotNull org.bukkit.Material material)
      Deprecated.
      Specified by:
      isCollidable in interface org.bukkit.UnsafeValues
    • getMaterial

      public org.bukkit.Material getMaterial(String material, int version)
      Deprecated.
      Specified by:
      getMaterial in interface org.bukkit.UnsafeValues