Class CompatImpl

java.lang.Object
studio.magemonkey.codex.nms.v1_21_1.CompatImpl
All Implemented Interfaces:
studio.magemonkey.codex.compat.Compat

public class CompatImpl extends Object implements studio.magemonkey.codex.compat.Compat
  • Field Summary

    Fields inherited from interface studio.magemonkey.codex.compat.Compat

    ATTRIBUTE_BONUS_UUID
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    convertSlot(org.bukkit.event.inventory.InventoryEvent event, int slot)
     
    org.bukkit.attribute.AttributeModifier
    createAttributeModifier(studio.magemonkey.codex.api.meta.NBTAttribute attribute, double amount, org.bukkit.attribute.AttributeModifier.Operation operation, org.bukkit.inventory.EquipmentSlot slot)
     
    getAttributeKey(org.bukkit.attribute.AttributeModifier attributeModifier)
     
    getAttributeKey(studio.magemonkey.codex.api.meta.NBTAttribute attribute)
     
    org.bukkit.inventory.Inventory
    getBottomInventory(org.bukkit.event.inventory.InventoryEvent event)
     
    org.bukkit.inventory.Inventory
    getInventory(org.bukkit.event.inventory.InventoryEvent event, int slot)
     
    org.bukkit.inventory.ItemStack
    getItem(org.bukkit.event.inventory.InventoryEvent event, int slot)
     
    getItemName(org.bukkit.inventory.ItemStack item)
     
    org.bukkit.inventory.Inventory
    getTopInventory(org.bukkit.entity.Player player)
     
    org.bukkit.inventory.Inventory
    getTopInventory(org.bukkit.event.inventory.InventoryEvent event)
     
    void
    setCursor(org.bukkit.event.inventory.InventoryEvent event, org.bukkit.inventory.ItemStack item)
     
    void
    setItem(org.bukkit.entity.Player player, int slot, org.bukkit.inventory.ItemStack item)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface studio.magemonkey.codex.compat.Compat

    createAttributeModifier
  • Constructor Details

    • CompatImpl

      public CompatImpl()
  • Method Details

    • createAttributeModifier

      public org.bukkit.attribute.AttributeModifier createAttributeModifier(studio.magemonkey.codex.api.meta.NBTAttribute attribute, double amount, org.bukkit.attribute.AttributeModifier.Operation operation, @Nullable org.bukkit.inventory.EquipmentSlot slot)
      Specified by:
      createAttributeModifier in interface studio.magemonkey.codex.compat.Compat
    • getAttributeKey

      public String getAttributeKey(org.bukkit.attribute.AttributeModifier attributeModifier)
      Specified by:
      getAttributeKey in interface studio.magemonkey.codex.compat.Compat
    • getAttributeKey

      public String getAttributeKey(studio.magemonkey.codex.api.meta.NBTAttribute attribute)
      Specified by:
      getAttributeKey in interface studio.magemonkey.codex.compat.Compat
    • getTopInventory

      public org.bukkit.inventory.Inventory getTopInventory(org.bukkit.event.inventory.InventoryEvent event)
      Specified by:
      getTopInventory in interface studio.magemonkey.codex.compat.Compat
    • getTopInventory

      @NotNull public org.bukkit.inventory.Inventory getTopInventory(org.bukkit.entity.Player player)
      Specified by:
      getTopInventory in interface studio.magemonkey.codex.compat.Compat
    • getBottomInventory

      public org.bukkit.inventory.Inventory getBottomInventory(org.bukkit.event.inventory.InventoryEvent event)
      Specified by:
      getBottomInventory in interface studio.magemonkey.codex.compat.Compat
    • setCursor

      public void setCursor(org.bukkit.event.inventory.InventoryEvent event, org.bukkit.inventory.ItemStack item)
      Specified by:
      setCursor in interface studio.magemonkey.codex.compat.Compat
    • setItem

      public void setItem(org.bukkit.entity.Player player, int slot, org.bukkit.inventory.ItemStack item)
      Specified by:
      setItem in interface studio.magemonkey.codex.compat.Compat
    • getInventory

      public org.bukkit.inventory.Inventory getInventory(org.bukkit.event.inventory.InventoryEvent event, int slot)
      Specified by:
      getInventory in interface studio.magemonkey.codex.compat.Compat
    • getItem

      public org.bukkit.inventory.ItemStack getItem(org.bukkit.event.inventory.InventoryEvent event, int slot)
      Specified by:
      getItem in interface studio.magemonkey.codex.compat.Compat
    • convertSlot

      public int convertSlot(org.bukkit.event.inventory.InventoryEvent event, int slot)
      Specified by:
      convertSlot in interface studio.magemonkey.codex.compat.Compat
    • getItemName

      public String getItemName(org.bukkit.inventory.ItemStack item)
      Specified by:
      getItemName in interface studio.magemonkey.codex.compat.Compat