Class MockUnsafeValues

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

public class MockUnsafeValues extends Object implements org.bukkit.UnsafeValues
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkSupported(org.bukkit.plugin.PluginDescriptionFile pdf)
     
    org.bukkit.Material
    fromLegacy(org.bukkit.Material material)
     
    org.bukkit.Material
    fromLegacy(org.bukkit.material.MaterialData material)
     
    org.bukkit.Material
    fromLegacy(org.bukkit.material.MaterialData material, boolean itemPriority)
     
    org.bukkit.block.data.BlockData
    fromLegacy(org.bukkit.Material material, byte data)
     
    org.bukkit.inventory.CreativeCategory
    getCreativeCategory(org.bukkit.Material material)
     
    int
     
    com.google.common.collect.Multimap<org.bukkit.attribute.Attribute,org.bukkit.attribute.AttributeModifier>
    getDefaultAttributeModifiers(org.bukkit.Material material, org.bukkit.inventory.EquipmentSlot slot)
     
    org.bukkit.Material
    getMaterial(String material, int version)
     
    org.bukkit.advancement.Advancement
    loadAdvancement(org.bukkit.NamespacedKey key, String advancement)
     
    org.bukkit.inventory.ItemStack
    modifyItemStack(org.bukkit.inventory.ItemStack stack, String arguments)
     
    byte[]
    processClass(org.bukkit.plugin.PluginDescriptionFile pdf, String path, byte[] clazz)
     
    boolean
    removeAdvancement(org.bukkit.NamespacedKey key)
     
    org.bukkit.Material
    toLegacy(org.bukkit.Material material)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MockUnsafeValues

      public MockUnsafeValues()
  • Method Details

    • toLegacy

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

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

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

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

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

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

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

      public void checkSupported(org.bukkit.plugin.PluginDescriptionFile pdf) throws org.bukkit.plugin.InvalidPluginException
      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)
      Specified by:
      processClass in interface org.bukkit.UnsafeValues
    • loadAdvancement

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

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

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

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