Interface BlockSoundInteractionHandler

All Superinterfaces:
SoundInteractionHandler<String>
All Known Implementing Classes:
BucketSoundInteractionHandler, ComparatorSoundInteractionHandler, DoorSoundInteractionHandler, FlintAndSteelInteractionHandler, GrassPathInteractionHandler, HoeInteractionHandler, LeverSoundInteractionHandler

public interface BlockSoundInteractionHandler extends SoundInteractionHandler<String>
Sound interaction handler for when a block is right-clicked.
  • Method Details

    • handleBlockInteraction

      static void handleBlockInteraction(GeyserSession session, com.nukkitx.math.vector.Vector3f position, String identifier)
      Handles the block interaction when a player right-clicks a block.
      Parameters:
      session - the session interacting with the block
      position - the position of the block
      identifier - the identifier of the block