Class PreWorldItemExpireEvent
java.lang.Object
org.bukkit.event.Event
dev.tezvn.timeditem.api.event.TimedEvent
dev.tezvn.timeditem.api.event.item.ItemEvent
dev.tezvn.timeditem.api.event.item.PreItemExpireEvent
dev.tezvn.timeditem.api.event.item.world.PreWorldItemExpireEvent
public class PreWorldItemExpireEvent extends PreItemExpireEvent
Event will be called before item on ground is expired.
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description PreWorldItemExpireEvent(org.bukkit.inventory.ItemStack item, long expireTime, org.bukkit.Location location) -
Method Summary
Modifier and Type Method Description org.bukkit.LocationgetLocation()Get location of itemvoidteleport(org.bukkit.Location location)Teleport item to specific locationMethods inherited from class dev.tezvn.timeditem.api.event.item.PreItemExpireEvent
addTime, getExpireTime
-
Constructor Details
-
PreWorldItemExpireEvent
public PreWorldItemExpireEvent(org.bukkit.inventory.ItemStack item, long expireTime, org.bukkit.Location location)
-
-
Method Details
-
getLocation
public org.bukkit.Location getLocation()Get location of item- Returns:
- Location where item will be disappeared
-
teleport
public void teleport(org.bukkit.Location location)Teleport item to specific locationItem can be teleported if the new expire time is greater than the old expire time
- Parameters:
location- Destination of item
-