ArenaListener

Aktualisiert: 14.11.2017

  • BLOCK_DAMAGE
  • BLOCK_HUNGER
  • BLOCK_BREAK
  • BLOCK_PLACE
  • BLOCK_DROP_ITEM
  • BLOCK_INVENTORY_CLICK
  • BLOCK_UPROOT
  • BLOCK_PICKUP_ITEMS
  • BLOCK_FALL_DAMAGE

Wie fĂĽge ich Arenalistener hinzu?:

getMinigame().addArenaListener(Status der Arena (ArenaState), ArenaListener (AListener));

minigame.addArenaListener(ArenaState.Lobby, AListener.BLOCK_BREAK);
minigame.addArenaListener(ArenaState.Lobby, AListener.BLOCK_PLACE);
minigame.addArenaListener(ArenaState.Lobby, AListener.BLOCK_DAMAGE);
minigame.addArenaListener(ArenaState.Lobby, AListener.BLOCK_HUNGER);
minigame.addArenaListener(ArenaState.Lobby, AListener.BLOCK_INVENTORY_CLICK);
minigame.addArenaListener(ArenaState.Lobby, AListener.BLOCK_PICKUP_ITEMS);
minigame.addArenaListener(ArenaState.Lobby, AListener.BLOCK_DROP_ITEM);
minigame.addArenaListener(ArenaState.InGame, AListener.BLOCK_BREAK);
minigame.addArenaListener(ArenaState.InGame, AListener.BLOCK_PLACE);
minigame.addArenaListener(ArenaState.Ending, AListener.BLOCK_BREAK);
minigame.addArenaListener(ArenaState.Ending, AListener.BLOCK_PLACE);
minigame.addArenaListener(ArenaState.Ending, AListener.BLOCK_DAMAGE);
minigame.addArenaListener(ArenaState.Ending, AListener.BLOCK_HUNGER);
minigame.addArenaListener(ArenaState.Ending, AListener.BLOCK_DROP_ITEM);

Beispiel aus dem Aura Minigame