Class NMSImpl

java.lang.Object
studio.magemonkey.codex.nms.v1_16_5.NMSImpl
All Implemented Interfaces:
studio.magemonkey.codex.compat.NMS

public class NMSImpl extends Object implements studio.magemonkey.codex.compat.NMS
  • Constructor Details

    • NMSImpl

      public NMSImpl()
  • Method Details

    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface studio.magemonkey.codex.compat.NMS
    • getConnection

      @NotNull public Object getConnection(org.bukkit.entity.Player player)
      Specified by:
      getConnection in interface studio.magemonkey.codex.compat.NMS
    • getChannel

      @NotNull public io.netty.channel.Channel getChannel(@NotNull org.bukkit.entity.Player player)
      Specified by:
      getChannel in interface studio.magemonkey.codex.compat.NMS
    • sendPacket

      public void sendPacket(@NotNull org.bukkit.entity.Player player, @NotNull Object packet)
      Specified by:
      sendPacket in interface studio.magemonkey.codex.compat.NMS
    • openChestAnimation

      public void openChestAnimation(@NotNull org.bukkit.block.Block chest, boolean open)
      Specified by:
      openChestAnimation in interface studio.magemonkey.codex.compat.NMS
    • sendAttackPacket

      public void sendAttackPacket(@NotNull org.bukkit.entity.Player player, int i)
      Specified by:
      sendAttackPacket in interface studio.magemonkey.codex.compat.NMS
    • fixColors

      @NotNull public String fixColors(@NotNull String str)
      Specified by:
      fixColors in interface studio.magemonkey.codex.compat.NMS
    • getDefaultDamage

      public double getDefaultDamage(@NotNull org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      getDefaultDamage in interface studio.magemonkey.codex.compat.NMS
    • getDefaultSpeed

      public double getDefaultSpeed(@NotNull org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      getDefaultSpeed in interface studio.magemonkey.codex.compat.NMS
    • getDefaultArmor

      public double getDefaultArmor(@NotNull org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      getDefaultArmor in interface studio.magemonkey.codex.compat.NMS
    • getDefaultToughness

      public double getDefaultToughness(@NotNull org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      getDefaultToughness in interface studio.magemonkey.codex.compat.NMS
    • isWeapon

      public boolean isWeapon(@NotNull org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      isWeapon in interface studio.magemonkey.codex.compat.NMS
    • isArmor

      public boolean isArmor(@NotNull org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      isArmor in interface studio.magemonkey.codex.compat.NMS
    • isTool

      public boolean isTool(@NotNull org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      isTool in interface studio.magemonkey.codex.compat.NMS
    • toJson

      public String toJson(@NotNull org.bukkit.inventory.ItemStack item)
      Specified by:
      toJson in interface studio.magemonkey.codex.compat.NMS
    • setKiller

      public void setKiller(@NotNull org.bukkit.entity.LivingEntity entity, @NotNull org.bukkit.entity.Player killer)
      Specified by:
      setKiller in interface studio.magemonkey.codex.compat.NMS
    • changeSkull

      public void changeSkull(@NotNull org.bukkit.block.Block block, @NotNull String hash)
      Specified by:
      changeSkull in interface studio.magemonkey.codex.compat.NMS
    • getNMSCopy

      public Object getNMSCopy(@NotNull org.bukkit.inventory.ItemStack item)
      Specified by:
      getNMSCopy in interface studio.magemonkey.codex.compat.NMS
    • getMaterial

      public org.bukkit.Material getMaterial(org.bukkit.entity.Boat boat)
      Specified by:
      getMaterial in interface studio.magemonkey.codex.compat.NMS