Package com.nexomc.nexo.nms
Interface NMSHandler
-
- All Implemented Interfaces:
public interface NMSHandler
-
-
Method Summary
Modifier and Type Method Description ICustomEntityHandlercustomEntityHandler()IFurniturePacketManagerfurniturePacketManager()abstract IPacketHandlerpacketHandler()abstract IItemUtilsitemUtils()abstract IPlayerUtilsplayerUtils()abstract BooleannoteblockUpdatesDisabled()abstract BooleantripwireUpdatesDisabled()abstract BooleanchorusplantUpdateDisabled()abstract IntegerresourcepackFormat()abstract IntegerdatapackFormat()abstract InteractionResultcorrectBlockStates(Player player, EquipmentSlot slot, ItemStack itemStack, Block target, BlockFace blockFace)Corrects the BlockData of a placed block. abstract StringnoteBlockInstrument(Block block)abstract ListenergetPackDispatchListener()abstract IPluginConvertergetPluginConverter()-
-
Method Detail
-
customEntityHandler
ICustomEntityHandler customEntityHandler()
-
furniturePacketManager
IFurniturePacketManager furniturePacketManager()
-
packetHandler
abstract IPacketHandler packetHandler()
-
itemUtils
abstract IItemUtils itemUtils()
-
playerUtils
abstract IPlayerUtils playerUtils()
-
noteblockUpdatesDisabled
abstract Boolean noteblockUpdatesDisabled()
-
tripwireUpdatesDisabled
abstract Boolean tripwireUpdatesDisabled()
-
chorusplantUpdateDisabled
abstract Boolean chorusplantUpdateDisabled()
-
resourcepackFormat
abstract Integer resourcepackFormat()
-
datapackFormat
abstract Integer datapackFormat()
-
correctBlockStates
abstract InteractionResult correctBlockStates(Player player, EquipmentSlot slot, ItemStack itemStack, Block target, BlockFace blockFace)
Corrects the BlockData of a placed block. Mainly fired when placing a block against an NexoNoteBlock due to vanilla behaviour requiring Sneaking
- Parameters:
player- The player that placed the blockslot- The hand the player placed the block withitemStack- The ItemStack the player placed the block withtarget- The block where the new block will be placed (usually air or another replaceable block)blockFace- The face of the block that the player clicked- Returns:
The enum interaction result
-
noteBlockInstrument
abstract String noteBlockInstrument(Block block)
-
getPackDispatchListener
abstract Listener getPackDispatchListener()
-
getPluginConverter
abstract IPluginConverter getPluginConverter()
-
-
-
-