Package org.mcmonkey.sentinel.utilities
Class SentinelNMSHelper
java.lang.Object
org.mcmonkey.sentinel.utilities.SentinelNMSHelper
Helper for NMS-based actions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic MethodHandlestatic MethodHandlestatic MethodHandlestatic MethodHandlestatic MethodHandlestatic MethodHandlestatic MethodHandle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidanimateIronGolemSwing(org.bukkit.entity.IronGolem entity) static StringgetInventoryTitle(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 voidinit()static voidsetEndermanAngry(org.bukkit.entity.Enderman entity, boolean angry)
-
Field Details
-
CRAFTENTITY_GETHANDLE
-
NMSENTITY_WORLDGETTER
-
NMSWORLD_BROADCASTENTITYEFFECT
-
NMSENTITY_GETDATAWATCHER
-
DATWATCHER_SET
-
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).
-