Class CreatePropertyProcess

java.lang.Object
me.fami6xx.rpuniverse.core.properties.process.CreatePropertyProcess
All Implemented Interfaces:
org.bukkit.event.Listener

public class CreatePropertyProcess extends Object implements org.bukkit.event.Listener
Handles the process of creating a property in the RP Universe.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CreatePropertyProcess​(org.bukkit.entity.Player player)
    Constructs a new CreatePropertyProcess for the specified player.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Cancels the property creation process.
    static org.bukkit.inventory.ItemStack
    Gets the property creation wand item.
    void
    onPlayerDropItem​(org.bukkit.event.player.PlayerDropItemEvent e)
    Handles the event when a player drops an item.
    void
    onPlayerInteractEvent​(org.bukkit.event.player.PlayerInteractEvent e)
    Handles the event when a player interacts with a block.
    void
    onPlayerLeave​(org.bukkit.event.player.PlayerQuitEvent e)
    Handles the event when a player leaves the server.
    protected org.bukkit.scheduler.BukkitTask
    Starts a task to control locked materials.
    protected org.bukkit.scheduler.BukkitTask
    Starts a task to display locked blocks to the player.

    Methods inherited from class java.lang.Object

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

    • CreatePropertyProcess

      public CreatePropertyProcess(org.bukkit.entity.Player player)
      Constructs a new CreatePropertyProcess for the specified player.
      Parameters:
      player - the player who is creating the property
  • Method Details

    • startControlOfLockedMaterials

      protected org.bukkit.scheduler.BukkitTask startControlOfLockedMaterials()
      Starts a task to control locked materials. If the material of a locked block changes, the block will be unlocked.
      Returns:
      the BukkitTask for controlling locked materials
    • startDisplayOfLockedBlocks

      protected org.bukkit.scheduler.BukkitTask startDisplayOfLockedBlocks()
      Starts a task to display locked blocks to the player.
      Returns:
      the BukkitTask for displaying locked blocks
    • onPlayerDropItem

      public void onPlayerDropItem(org.bukkit.event.player.PlayerDropItemEvent e)
      Handles the event when a player drops an item.
      Parameters:
      e - the PlayerDropItemEvent
    • onPlayerLeave

      public void onPlayerLeave(org.bukkit.event.player.PlayerQuitEvent e)
      Handles the event when a player leaves the server.
      Parameters:
      e - the PlayerQuitEvent
    • onPlayerInteractEvent

      public void onPlayerInteractEvent(org.bukkit.event.player.PlayerInteractEvent e)
      Handles the event when a player interacts with a block.
      Parameters:
      e - the PlayerInteractEvent
    • cancel

      protected void cancel()
      Cancels the property creation process.
    • getPropertyCreationWand

      public static org.bukkit.inventory.ItemStack getPropertyCreationWand()
      Gets the property creation wand item.
      Returns:
      the property creation wand item