Class BentoListener

java.lang.Object
xyz.geik.farmer.integrations.bentobox.BentoListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class BentoListener extends Object implements org.bukkit.event.Listener
Bento listener class
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor of class
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteEvent(@NotNull world.bentobox.bentobox.api.events.island.IslandDeleteEvent e)
    Island delete evet for remove farmer
    void
    islandCreateEvent(@NotNull world.bentobox.bentobox.api.events.island.IslandCreatedEvent e)
    Automatically creates farmer when island is created
    void
    ownerChangeEvent(@NotNull world.bentobox.bentobox.api.events.team.TeamSetownerEvent e)
    Island delete event for remove farmer
    void
    resetEvent(@NotNull world.bentobox.bentobox.api.events.island.IslandResettedEvent e)
    Island reset event for remove farmer
    void
    teamJoinEvent(@NotNull world.bentobox.bentobox.api.events.team.TeamJoinEvent e)
    Adds user to farmer
    void
    teamKickEvent(@NotNull world.bentobox.bentobox.api.events.team.TeamKickEvent e)
    Removes user from farmer if added on kick
    void
    teamLeaveEvent(@NotNull world.bentobox.bentobox.api.events.team.TeamLeaveEvent e)
    Removes user from farmer if added on leave

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BentoListener

      public BentoListener()
      Constructor of class
  • Method Details

    • deleteEvent

      public void deleteEvent(@NotNull @NotNull world.bentobox.bentobox.api.events.island.IslandDeleteEvent e)
      Island delete evet for remove farmer
      Parameters:
      e - of event
    • resetEvent

      public void resetEvent(@NotNull @NotNull world.bentobox.bentobox.api.events.island.IslandResettedEvent e)
      Island reset event for remove farmer
      Parameters:
      e - of event
    • ownerChangeEvent

      public void ownerChangeEvent(@NotNull @NotNull world.bentobox.bentobox.api.events.team.TeamSetownerEvent e)
      Island delete event for remove farmer
      Parameters:
      e - of event
    • teamJoinEvent

      public void teamJoinEvent(@NotNull @NotNull world.bentobox.bentobox.api.events.team.TeamJoinEvent e)
      Adds user to farmer
      Parameters:
      e - of event
    • teamLeaveEvent

      public void teamLeaveEvent(@NotNull @NotNull world.bentobox.bentobox.api.events.team.TeamLeaveEvent e)
      Removes user from farmer if added on leave
      Parameters:
      e - of event
    • teamKickEvent

      public void teamKickEvent(@NotNull @NotNull world.bentobox.bentobox.api.events.team.TeamKickEvent e)
      Removes user from farmer if added on kick
      Parameters:
      e - of event
    • islandCreateEvent

      public void islandCreateEvent(@NotNull @NotNull world.bentobox.bentobox.api.events.island.IslandCreatedEvent e)
      Automatically creates farmer when island is created
      Parameters:
      e - of event