Package com.nexomc.nexo.nms
Class EmptyNMSHandler
-
- All Implemented Interfaces:
-
com.nexomc.nexo.nms.NMSHandler
public final class EmptyNMSHandler implements NMSHandler
-
-
Field Summary
Fields Modifier and Type Field Description private final IPluginConverterpluginConverterprivate final ListenerpackDispatchListener
-
Constructor Summary
Constructors Constructor Description EmptyNMSHandler()
-
Method Summary
Modifier and Type Method Description IPluginConvertergetPluginConverter()ListenergetPackDispatchListener()IPacketHandlerpacketHandler()IItemUtilsitemUtils()IPlayerUtilsplayerUtils()BooleannoteblockUpdatesDisabled()BooleantripwireUpdatesDisabled()BooleanchorusplantUpdateDisabled()VoidcorrectBlockStates(Player player, EquipmentSlot slot, ItemStack itemStack, Block target, BlockFace blockFace)Corrects the BlockData of a placed block. StringnoteBlockInstrument(Block block)IntegerresourcepackFormat()IntegerdatapackFormat()-
-
Method Detail
-
getPluginConverter
IPluginConverter getPluginConverter()
-
getPackDispatchListener
Listener getPackDispatchListener()
-
packetHandler
IPacketHandler packetHandler()
-
itemUtils
IItemUtils itemUtils()
-
playerUtils
IPlayerUtils playerUtils()
-
noteblockUpdatesDisabled
Boolean noteblockUpdatesDisabled()
-
tripwireUpdatesDisabled
Boolean tripwireUpdatesDisabled()
-
chorusplantUpdateDisabled
Boolean chorusplantUpdateDisabled()
-
correctBlockStates
Void 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
String noteBlockInstrument(Block block)
-
resourcepackFormat
Integer resourcepackFormat()
-
datapackFormat
Integer datapackFormat()
-
-
-
-