Module gomint.api

Class PlayerInteractEvent

    • Constructor Detail

      • PlayerInteractEvent

        public PlayerInteractEvent​(EntityPlayer player,
                                   PlayerInteractEvent.ClickType clickType,
                                   Block block)
        Create a new interaction event
        Parameters:
        player - which interacted with something
        clickType - which has been used
        block - on which the player interacted
    • Method Detail

      • getBlock

        public Block getBlock()
        Get the block with which the player interacted. This may be null
        Returns:
        block which the player interacted with