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 IPluginConverter
pluginConverter
private final Listener
packDispatchListener
-
Constructor Summary
Constructors Constructor Description EmptyNMSHandler()
-
Method Summary
Modifier and Type Method Description IPluginConverter
getPluginConverter()
Listener
getPackDispatchListener()
IPacketHandler
packetHandler()
IItemUtils
itemUtils()
IPlayerUtils
playerUtils()
Boolean
noteblockUpdatesDisabled()
Boolean
tripwireUpdatesDisabled()
Boolean
chorusplantUpdateDisabled()
Void
correctBlockStates(Player player, EquipmentSlot slot, ItemStack itemStack, Block target, BlockFace blockFace)
Corrects the BlockData of a placed block. String
noteBlockInstrument(Block block)
Integer
resourcepackFormat()
Integer
datapackFormat()
-
-
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()
-
-
-
-