Klasse SelectionWand

java.lang.Object
de.delinkedde.areashopreborn.selection.SelectionWand
Alle implementierten Schnittstellen:
org.bukkit.event.Listener

public final class SelectionWand extends Object implements org.bukkit.event.Listener
Creates and handles the plugin-owned cuboid selection wand.

The wand is identified by a persistent data key instead of its material or display name. It therefore cannot accidentally intercept a normal item or a WorldEdit selection wand.

  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    SelectionWand(org.bukkit.plugin.java.JavaPlugin plugin, SelectionService selections, org.bukkit.Material material, MessageService messages)
    Creates a selection wand handler.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
    give(org.bukkit.entity.Player player)
    Gives a marked selection wand to a player or reports a full inventory.
    void
    onInteract(org.bukkit.event.player.PlayerInteractEvent event)
    Handles block clicks made with a marked wand.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • SelectionWand

      public SelectionWand(org.bukkit.plugin.java.JavaPlugin plugin, SelectionService selections, org.bukkit.Material material, MessageService messages)
      Creates a selection wand handler.
      Parameter:
      plugin - owning plugin used to namespace the persistent marker
      selections - selection session service
      material - configured wand material
      messages - configurable message renderer
  • Methodendetails

    • give

      public boolean give(org.bukkit.entity.Player player)
      Gives a marked selection wand to a player or reports a full inventory.
      Parameter:
      player - receiving player
      Gibt zurück:
      true when the wand was placed in the inventory
    • onInteract

      public void onInteract(org.bukkit.event.player.PlayerInteractEvent event)
      Handles block clicks made with a marked wand.
      Parameter:
      event - Paper interaction event