Package com.nexomc.nexo.nms
Interface NMSHandler
-
- All Implemented Interfaces:
public interface NMSHandler
-
-
Method Summary
Modifier and Type Method Description ICustomEntityHandler
customEntityHandler()
IFurniturePacketManager
furniturePacketManager()
abstract IPacketHandler
packetHandler()
abstract IItemUtils
itemUtils()
abstract IPlayerUtils
playerUtils()
abstract Boolean
noteblockUpdatesDisabled()
abstract Boolean
tripwireUpdatesDisabled()
abstract Boolean
chorusplantUpdateDisabled()
abstract Integer
resourcepackFormat()
abstract Integer
datapackFormat()
abstract InteractionResult
correctBlockStates(Player player, EquipmentSlot slot, ItemStack itemStack, Block target, BlockFace blockFace)
Corrects the BlockData of a placed block. abstract String
noteBlockInstrument(Block block)
abstract Listener
getPackDispatchListener()
abstract IPluginConverter
getPluginConverter()
-
-
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()
-
-
-
-