Interface UseListener

All Known Implementing Classes:
AreaUseItem, BalloonScroll, Basket, Bestiary, BlankPetScroll, BoardToken, Box, BreakableItem, CaptureFlagUseListener, CaptureTheFlagFlag, Chest, CoalSource, ConditionAndActionPortal, ConsumableItem, Container, Dice, Door, Drink, DummyWeapon, EmptyScroll, Fire, FishSource, FlowerGrower, Food, FoodMill, Gate, GateKey, GoldSource, GrainField, HouseKey, HousePortal, InvitationScroll, Item, ItemInformation, KeyDestroyingDoor, KeyedPortal, LevelCheckingPortal, LifeSupportGear, LockedDoor, MarkedScroll, MasterKey, MetalDetector, Money, NecroStaff, NineSwitchesGameSwitch, NoStatsStackableItem, NPCOwnedChest, OnePlayerRoomDoor, OneWayPortalDestination, OwnedItem, PasswordPortal, PersonalChest, Player, PlayerActivityEntity, PlaySoundEntity, PopupImage, Portal, Present, QuestCheckingPortal, QuestCompletedPortal, RainbowBeansScroll, RandomDestinationPortal, RingOfLife, Scroll, Seed, ShopSign, Shovel, SlotActivatedItem, StackableItem, StatusHealer, StatusResistantItem, Stocking, StoredChest, SummonPetScroll, SummonScroll, Teleporter, TeleportScroll, TimedInvisibility, TimedStackableItem, TimedTeleportScroll, Token, TwilightElixir, TwilightMossScroll, UseableEntity, VegetableGrower, ViewChangeEntity, WaterSpringSource, WeddingRing, WellSource

public interface UseListener
Implementing classes will be called back when a player uses them.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onUsed​(RPEntity user)
    Invoked when the object is used.
  • Method Details

    • onUsed

      boolean onUsed(RPEntity user)
      Invoked when the object is used.
      Parameters:
      user - the RPEntity who uses the object
      Returns:
      true if successful