Package org.mcmonkey.sentinel.utilities
Class SentinelNMSHelper
java.lang.Object
org.mcmonkey.sentinel.utilities.SentinelNMSHelper
Helper for NMS-based actions.
-
Field Summary
Modifier and TypeFieldDescriptionstatic MethodHandle
static MethodHandle
static Object
static MethodHandle
static MethodHandle
static MethodHandle
static MethodHandle
static MethodHandle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
animateIronGolemSwing
(org.bukkit.entity.IronGolem entity) 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).static Class
<?> getOptionalFieldType
(Class<?> clazz, String fieldName) static void
init()
static void
setEndermanAngry
(org.bukkit.entity.Enderman entity, boolean angry)
-
Field Details
-
CRAFTENTITY_GETHANDLE
-
NMSENTITY_WORLDGETTER
-
NMSWORLD_BROADCASTENTITYEFFECT
-
NMSENTITY_GETDATAWATCHER
-
DATWATCHER_SET
-
ENTITYENDERMAN_DATAWATCHER_ANGRY
-
INVENTORYCLOSEEVENT_GETVIEW
-
INVENTORYVIEW_GETTITLE
-
-
Constructor Details
-
SentinelNMSHelper
public SentinelNMSHelper()
-
-
Method Details
-
getOptionalFieldType
-
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
Gets the title of an inventory in an InventoryEvent (compensates for code change between Spigot versions).
-