Class MockUnsafeValues

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

@Deprecated(since="1.7.2") public class MockUnsafeValues extends Object implements org.bukkit.UnsafeValues
Deprecated.
Mock implementation of an UnsafeValues.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkSupported(@NotNull org.bukkit.plugin.PluginDescriptionFile pdf)
    Deprecated.
     
    @NotNull net.kyori.adventure.text.serializer.gson.GsonComponentSerializer
    Deprecated, for removal: This API element is subject to removal in a future version.
    @NotNull net.kyori.adventure.text.flattener.ComponentFlattener
    Deprecated.
     
    @NotNull List<net.kyori.adventure.text.Component>
    computeTooltipLines(@NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull io.papermc.paper.inventory.tooltip.TooltipContext tooltipContext, @Nullable org.bukkit.entity.Player player)
    Deprecated.
     
    @NotNull org.bukkit.damage.DamageSource.Builder
    createDamageSourceBuilder(@NotNull org.bukkit.damage.DamageType damageType)
    Deprecated.
     
    io.papermc.paper.plugin.lifecycle.event.LifecycleEventManager<org.bukkit.plugin.Plugin>
    createPluginLifecycleEventManager(org.bukkit.plugin.java.JavaPlugin javaPlugin, BooleanSupplier booleanSupplier)
    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 materialData, boolean itemPriority)
    Deprecated.
     
    org.bukkit.block.data.BlockData
    fromLegacy(org.bukkit.Material material, byte data)
    Deprecated.
     
    get(Class<?> aClass, String s)
    Deprecated.
     
    <B extends org.bukkit.Keyed>
    B
    get(org.bukkit.Registry<B> registry, org.bukkit.NamespacedKey namespacedKey)
    Deprecated.
     
    @NotNull org.bukkit.NamespacedKey
    getBiomeKey(org.bukkit.RegionAccessor accessor, int x, int y, int z)
    Deprecated.
     
    @Nullable String
    getBlockTranslationKey(@NotNull org.bukkit.Material material)
    Deprecated.
     
    org.bukkit.inventory.CreativeCategory
    getCreativeCategory(org.bukkit.Material material)
    Deprecated.
     
    @Nullable org.bukkit.damage.DamageEffect
    getDamageEffect(@NotNull String key)
    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.
     
    @Nullable org.bukkit.FeatureFlag
    getFeatureFlag(@NotNull org.bukkit.NamespacedKey key)
    Deprecated.
     
    org.bukkit.potion.PotionType.InternalPotionData
    getInternalPotionData(org.bukkit.NamespacedKey key)
    Deprecated.
     
    @Nullable String
    getItemTranslationKey(@NotNull org.bukkit.Material material)
    Deprecated.
     
    @NotNull String
    Deprecated.
     
    org.bukkit.Material
    getMaterial(String material, int version)
    Deprecated.
     
    int
    Deprecated.
     
    @Nullable org.bukkit.Color
    getSpawnEggLayerColor(org.bukkit.entity.EntityType entityType, int i)
    Deprecated.
     
    getStatisticCriteriaKey(@NotNull org.bukkit.Statistic statistic)
    Deprecated.
     
    Deprecated.
     
    getTranslationKey(org.bukkit.attribute.Attribute attribute)
    Deprecated.
     
    @Nullable String
    getTranslationKey(@NotNull org.bukkit.entity.EntityType type)
    Deprecated.
     
    @Nullable String
    getTranslationKey(@NotNull org.bukkit.inventory.ItemStack itemStack)
    Deprecated.
     
    com.destroystokyo.paper.util.VersionFetcher
    Deprecated.
     
    @NotNull net.kyori.adventure.text.serializer.gson.GsonComponentSerializer
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    hasDefaultEntityAttributes(@NotNull org.bukkit.NamespacedKey entityKey)
    Deprecated.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    isValidRepairItemStack(@NotNull org.bukkit.inventory.ItemStack itemToBeRepaired, @NotNull org.bukkit.inventory.ItemStack repairMaterial)
    Deprecated.
     
    @NotNull net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer
    Deprecated, for removal: This API element is subject to removal in a future version.
    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.
     
    @NotNull net.kyori.adventure.text.serializer.plain.PlainComponentSerializer
    Deprecated, for removal: This API element is subject to removal in a future version.
    @NotNull net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer
    Deprecated, for removal: This API element is subject to removal in a future version.
    byte[]
    processClass(org.bukkit.plugin.PluginDescriptionFile pdf, String path, byte[] clazz)
    Deprecated.
     
    boolean
    removeAdvancement(org.bukkit.NamespacedKey key)
    Deprecated.
     
    void
    Deprecated.
     
    net.kyori.adventure.text.Component
    resolveWithContext(net.kyori.adventure.text.Component component, org.bukkit.command.CommandSender context, org.bukkit.entity.Entity scoreboardSubject, boolean bypassPermissions)
    Deprecated.
     
    byte[]
    serializeEntity(org.bukkit.entity.Entity entity)
    Deprecated.
     
    byte[]
    serializeItem(org.bukkit.inventory.ItemStack item)
    Deprecated.
     
    void
    setBiomeKey(org.bukkit.RegionAccessor accessor, int x, int y, int z, org.bukkit.NamespacedKey biomeKey)
    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
  • Constructor Details

    • MockUnsafeValues

      public MockUnsafeValues()
      Deprecated.
  • Method Details

    • componentFlattener

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

      @Deprecated(forRemoval=true, since="1.18") @NotNull public @NotNull 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

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

      @Deprecated(forRemoval=true, since="1.18") @NotNull public @NotNull net.kyori.adventure.text.serializer.gson.GsonComponentSerializer gsonComponentSerializer()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      gsonComponentSerializer in interface org.bukkit.UnsafeValues
    • colorDownsamplingGsonComponentSerializer

      @Deprecated(forRemoval=true, since="1.18") @NotNull public @NotNull net.kyori.adventure.text.serializer.gson.GsonComponentSerializer colorDownsamplingGsonComponentSerializer()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      colorDownsamplingGsonComponentSerializer in interface org.bukkit.UnsafeValues
    • legacyComponentSerializer

      @Deprecated(forRemoval=true, since="1.18") @NotNull public @NotNull net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer legacyComponentSerializer()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      legacyComponentSerializer in interface org.bukkit.UnsafeValues
    • resolveWithContext

      public net.kyori.adventure.text.Component resolveWithContext(net.kyori.adventure.text.Component component, org.bukkit.command.CommandSender context, org.bukkit.entity.Entity scoreboardSubject, boolean bypassPermissions) throws IOException
      Deprecated.
      Specified by:
      resolveWithContext in interface org.bukkit.UnsafeValues
      Throws:
      IOException
    • 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 materialData, 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(@NotNull @NotNull 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

      @Deprecated(forRemoval=true, since="1.19") public boolean isSupportedApiVersion(String apiVersion)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
    • getBlockTranslationKey

      @Nullable public @Nullable String getBlockTranslationKey(@NotNull @NotNull org.bukkit.Material material)
      Deprecated.
      Specified by:
      getBlockTranslationKey in interface org.bukkit.UnsafeValues
    • getItemTranslationKey

      @Nullable public @Nullable String getItemTranslationKey(@NotNull @NotNull org.bukkit.Material material)
      Deprecated.
      Specified by:
      getItemTranslationKey in interface org.bukkit.UnsafeValues
    • getTranslationKey

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

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

      public String getTranslationKey(org.bukkit.attribute.Attribute attribute)
      Deprecated.
      Specified by:
      getTranslationKey in interface org.bukkit.UnsafeValues
    • getFeatureFlag

      @Nullable public @Nullable org.bukkit.FeatureFlag getFeatureFlag(@NotNull @NotNull org.bukkit.NamespacedKey key)
      Deprecated.
      Specified by:
      getFeatureFlag in interface org.bukkit.UnsafeValues
    • getInternalPotionData

      public org.bukkit.potion.PotionType.InternalPotionData getInternalPotionData(org.bukkit.NamespacedKey key)
      Deprecated.
      Specified by:
      getInternalPotionData in interface org.bukkit.UnsafeValues
    • getDamageEffect

      @Nullable public @Nullable org.bukkit.damage.DamageEffect getDamageEffect(@NotNull @NotNull String key)
      Deprecated.
      Specified by:
      getDamageEffect in interface org.bukkit.UnsafeValues
    • createDamageSourceBuilder

      public @NotNull org.bukkit.damage.DamageSource.Builder createDamageSourceBuilder(@NotNull @NotNull org.bukkit.damage.DamageType damageType)
      Deprecated.
      Specified by:
      createDamageSourceBuilder in interface org.bukkit.UnsafeValues
    • get

      @Internal public String get(Class<?> aClass, String s)
      Deprecated.
      Specified by:
      get in interface org.bukkit.UnsafeValues
    • get

      public <B extends org.bukkit.Keyed> B get(org.bukkit.Registry<B> registry, org.bukkit.NamespacedKey namespacedKey)
      Deprecated.
      Specified by:
      get in interface org.bukkit.UnsafeValues
    • nextEntityId

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

      @NotNull public @NotNull String getMainLevelName()
      Deprecated.
      Specified by:
      getMainLevelName 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
    • 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
    • getBiomeKey

      @NotNull public @NotNull org.bukkit.NamespacedKey getBiomeKey(org.bukkit.RegionAccessor accessor, int x, int y, int z)
      Deprecated.
      Specified by:
      getBiomeKey in interface org.bukkit.UnsafeValues
    • setBiomeKey

      public void setBiomeKey(org.bukkit.RegionAccessor accessor, int x, int y, int z, org.bukkit.NamespacedKey biomeKey)
      Deprecated.
      Specified by:
      setBiomeKey in interface org.bukkit.UnsafeValues
    • getStatisticCriteriaKey

      public String getStatisticCriteriaKey(@NotNull @NotNull org.bukkit.Statistic statistic)
      Deprecated.
      Specified by:
      getStatisticCriteriaKey in interface org.bukkit.UnsafeValues
    • getSpawnEggLayerColor

      @Nullable public @Nullable org.bukkit.Color getSpawnEggLayerColor(org.bukkit.entity.EntityType entityType, int i)
      Deprecated.
      Specified by:
      getSpawnEggLayerColor in interface org.bukkit.UnsafeValues
    • createPluginLifecycleEventManager

      public io.papermc.paper.plugin.lifecycle.event.LifecycleEventManager<org.bukkit.plugin.Plugin> createPluginLifecycleEventManager(org.bukkit.plugin.java.JavaPlugin javaPlugin, BooleanSupplier booleanSupplier)
      Deprecated.
      Specified by:
      createPluginLifecycleEventManager in interface org.bukkit.UnsafeValues
    • computeTooltipLines

      @NotNull public @NotNull List<net.kyori.adventure.text.Component> computeTooltipLines(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull @NotNull io.papermc.paper.inventory.tooltip.TooltipContext tooltipContext, @Nullable @Nullable org.bukkit.entity.Player player)
      Deprecated.
      Specified by:
      computeTooltipLines in interface org.bukkit.UnsafeValues
    • getMaterial

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