Interface UseBehavior

All Known Implementing Classes:
MessagingUseBehavior

public interface UseBehavior
Interface for behavior implementations that can be attached to items.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    use​(RPEntity user, Item item)
    Called when the item is used.
  • Method Details

    • use

      boolean use(RPEntity user, Item item)
      Called when the item is used.
      Parameters:
      user - entity using the item
      item - used item
      Returns:
      true on successful use, false on failure