Class NMSImpl

java.lang.Object
studio.magemonkey.codex.nms.v1_21_7.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
    • addSkullTexture

      public void addSkullTexture(@NotNull org.bukkit.inventory.ItemStack item, @NotNull String value, @NotNull UUID uuid)
      Specified by:
      addSkullTexture in interface studio.magemonkey.codex.compat.NMS
    • getAttribute

      @NotNull public org.bukkit.attribute.Attribute getAttribute(String name)
      Specified by:
      getAttribute 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
    • registerNewObjective

      public org.bukkit.scoreboard.Objective registerNewObjective(org.bukkit.scoreboard.Scoreboard scoreboard, org.bukkit.scoreboard.Objective objective)
      Specified by:
      registerNewObjective in interface studio.magemonkey.codex.compat.NMS
    • getHoverEvent

      public net.md_5.bungee.api.chat.HoverEvent getHoverEvent(@NotNull org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      getHoverEvent in interface studio.magemonkey.codex.compat.NMS
    • getTranslatedComponent

      public net.md_5.bungee.api.chat.BaseComponent getTranslatedComponent(@NotNull org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      getTranslatedComponent in interface studio.magemonkey.codex.compat.NMS
    • createEntityDamageEvent

      public org.bukkit.event.entity.EntityDamageByEntityEvent createEntityDamageEvent(@NotNull org.bukkit.entity.Entity entity, @NotNull org.bukkit.entity.Entity attacker, @NotNull org.bukkit.event.entity.EntityDamageEvent.DamageCause cause, double damage)
      Specified by:
      createEntityDamageEvent in interface studio.magemonkey.codex.compat.NMS