public abstract class PreLogEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Modifier and Type | Field and Description |
---|---|
protected boolean |
cancelled |
protected Actor |
owner |
Constructor and Description |
---|
PreLogEvent(Actor owner) |
Modifier and Type | Method and Description |
---|---|
String |
getOwner()
Deprecated.
getOwnerActor() returns an object encapsulating
name and uuid. Names are not guaranteed to be unique. |
Actor |
getOwnerActor()
Returns the player/monster/cause involved in this event
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setOwner(Actor owner)
Sets the player/monster/cause involved in this event
|
protected boolean cancelled
protected Actor owner
public PreLogEvent(Actor owner)
public String getOwner()
getOwnerActor()
returns an object encapsulating
name and uuid. Names are not guaranteed to be unique.public Actor getOwnerActor()
public void setOwner(Actor owner)
owner
- The player/monster/cause who is involved in this eventpublic boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable
Copyright © 2015. All rights reserved.