Class ItemUseBlacklistEvent
java.lang.Object
com.sk89q.worldguard.blacklist.event.ItemUseBlacklistEvent
- All Implemented Interfaces:
BlacklistEvent
-
Constructor Summary
ConstructorsConstructorDescriptionItemUseBlacklistEvent
(LocalPlayer player, com.sk89q.worldedit.math.BlockVector3 position, Target target) Construct the object. -
Method Summary
Modifier and TypeMethodDescriptionGet the cause name, which is usually the player name.Get a short description such as "break" or "destroy with."Get the event type.com.sk89q.worldedit.math.BlockVector3
Get the position that should be logged.Get a message for logger outputs.Get the player.protected String
com.sk89q.worldedit.math.BlockVector3
Get the position.Get the item type.
-
Constructor Details
-
ItemUseBlacklistEvent
public ItemUseBlacklistEvent(@Nullable LocalPlayer player, com.sk89q.worldedit.math.BlockVector3 position, Target target) Construct the object.- Parameters:
player
- The player associated with this eventposition
- The position the event occurred attarget
- The target of the event
-
-
Method Details
-
getDescription
Description copied from interface:BlacklistEvent
Get a short description such as "break" or "destroy with."- Returns:
- The event description
-
getEventType
Description copied from interface:BlacklistEvent
Get the event type.- Returns:
- the type
-
getLoggerMessage
Description copied from interface:BlacklistEvent
Get a message for logger outputs.- Returns:
- A logging message
-
getLoggedPosition
public com.sk89q.worldedit.math.BlockVector3 getLoggedPosition()Description copied from interface:BlacklistEvent
Get the position that should be logged.- Returns:
- The position that be logged.
-
getPlayer
Description copied from interface:BlacklistEvent
Get the player.- Specified by:
getPlayer
in interfaceBlacklistEvent
- Returns:
- The player associated with this event
-
getCauseName
Description copied from interface:BlacklistEvent
Get the cause name, which is usually the player name.- Specified by:
getCauseName
in interfaceBlacklistEvent
- Returns:
- the cause name
-
getPosition
public com.sk89q.worldedit.math.BlockVector3 getPosition()Description copied from interface:BlacklistEvent
Get the position.- Specified by:
getPosition
in interfaceBlacklistEvent
- Returns:
- The position of this event
-
getTarget
Description copied from interface:BlacklistEvent
Get the item type.- Specified by:
getTarget
in interfaceBlacklistEvent
- Returns:
- The type associated with this event
-
getPlayerName
-