Interface ExternallyInteractable

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ExternallyInteractable
Implement this interface for any SlimefunItem to provide methods for external code to 'interact' with the item when placed as a block in the world.
Author:
Sefiraat
  • Method Summary

    Modifier and Type
    Method
    Description
    onInteract(Location location)
    This method should be used by the implementing class to fulfill the actions needed when being interacted with returning the result of the interaction.
  • Method Details

    • onInteract

      @Nonnull InteractionResult onInteract(@Nonnull Location location)
      This method should be used by the implementing class to fulfill the actions needed when being interacted with returning the result of the interaction.
      Parameters:
      location - The Location of the Block being targeted for the interaction.
      Returns:
      The InteractionResult denoting the result of the interaction.