Class SentinelNMSHelper

java.lang.Object
org.mcmonkey.sentinel.utilities.SentinelNMSHelper

public class SentinelNMSHelper extends Object
Helper for NMS-based actions.
  • Field Details

    • CRAFTENTITY_GETHANDLE

      public static MethodHandle CRAFTENTITY_GETHANDLE
    • NMSENTITY_WORLDGETTER

      public static MethodHandle NMSENTITY_WORLDGETTER
    • NMSWORLD_BROADCASTENTITYEFFECT

      public static MethodHandle NMSWORLD_BROADCASTENTITYEFFECT
    • NMSENTITY_GETDATAWATCHER

      public static MethodHandle NMSENTITY_GETDATAWATCHER
    • DATWATCHER_SET

      public static MethodHandle DATWATCHER_SET
    • ENTITYENDERMAN_DATAWATCHER_ANGRY

      public static Object ENTITYENDERMAN_DATAWATCHER_ANGRY
    • INVENTORYCLOSEEVENT_GETVIEW

      public static MethodHandle INVENTORYCLOSEEVENT_GETVIEW
    • INVENTORYVIEW_GETTITLE

      public static MethodHandle INVENTORYVIEW_GETTITLE
  • Constructor Details

    • SentinelNMSHelper

      public SentinelNMSHelper()
  • Method Details

    • getOptionalFieldType

      public static Class<?> getOptionalFieldType(Class<?> clazz, String fieldName)
    • init

      public static void init()
    • animateIronGolemSwing

      public static void animateIronGolemSwing(org.bukkit.entity.IronGolem entity)
    • setEndermanAngry

      public static void setEndermanAngry(org.bukkit.entity.Enderman entity, boolean angry)
    • getInventoryTitle

      public static String getInventoryTitle(org.bukkit.event.inventory.InventoryEvent event)
      Gets the title of an inventory in an InventoryEvent (compensates for code change between Spigot versions).