Class CreatePropertyProcess
java.lang.Object
me.fami6xx.rpuniverse.core.properties.process.CreatePropertyProcess
- All Implemented Interfaces:
org.bukkit.event.Listener
Handles the process of creating a property in the RP Universe.
-
Constructor Summary
ConstructorsConstructorDescriptionCreatePropertyProcess(org.bukkit.entity.Player player)Constructs a new CreatePropertyProcess for the specified player. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcancel()Cancels the property creation process.static org.bukkit.inventory.ItemStackGets the property creation wand item.voidonPlayerDropItem(org.bukkit.event.player.PlayerDropItemEvent e)Handles the event when a player drops an item.voidonPlayerInteractEvent(org.bukkit.event.player.PlayerInteractEvent e)Handles the event when a player interacts with a block.voidonPlayerLeave(org.bukkit.event.player.PlayerQuitEvent e)Handles the event when a player leaves the server.protected org.bukkit.scheduler.BukkitTaskStarts a task to control locked materials.protected org.bukkit.scheduler.BukkitTaskStarts a task to display locked blocks to the player.
-
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
-