Klasse SelectionWand
java.lang.Object
de.delinkedde.areashopreborn.selection.SelectionWand
- Alle implementierten Schnittstellen:
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
KonstruktorenKonstruktorBeschreibungSelectionWand(org.bukkit.plugin.java.JavaPlugin plugin, SelectionService selections, org.bukkit.Material material, MessageService messages) Creates a selection wand handler. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleangive(org.bukkit.entity.Player player) Gives a marked selection wand to a player or reports a full inventory.voidonInteract(org.bukkit.event.player.PlayerInteractEvent event) Handles block clicks made with a marked wand.
-
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 markerselections- selection session servicematerial- configured wand materialmessages- 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:
truewhen 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
-