Modifier and Type | Method and Description |
---|---|
void |
queueBlock(Actor actor,
org.bukkit.Location loc,
int typeBefore,
int typeAfter,
byte data)
Logs any block change.
|
void |
queueBlockBreak(Actor actor,
org.bukkit.block.BlockState before)
Logs a block break.
|
void |
queueBlockBreak(Actor actor,
org.bukkit.Location loc,
int typeBefore,
byte dataBefore)
Logs a block break.
|
void |
queueBlockPlace(Actor actor,
org.bukkit.block.BlockState after)
Logs a block place.
|
void |
queueBlockPlace(Actor actor,
org.bukkit.Location loc,
int type,
byte data)
Logs a block place.
|
void |
queueBlockReplace(Actor actor,
org.bukkit.block.BlockState before,
org.bukkit.block.BlockState after)
Logs a block being replaced from the before and after
BlockState s |
void |
queueBlockReplace(Actor actor,
org.bukkit.block.BlockState before,
int typeAfter,
byte dataAfter)
Logs a block being replaced from the before
BlockState and the type and data after |
void |
queueBlockReplace(Actor actor,
int typeBefore,
byte dataBefore,
org.bukkit.block.BlockState after)
Logs a block being replaced from the type and data before and the
BlockState after |
void |
queueBlockReplace(Actor actor,
org.bukkit.Location loc,
int typeBefore,
byte dataBefore,
int typeAfter,
byte dataAfter) |
void |
queueChat(Actor player,
String message) |
void |
queueChestAccess(Actor actor,
org.bukkit.block.BlockState container,
short itemType,
short itemAmount,
short itemData)
Logs an actor interacting with a container block's inventory
|
void |
queueChestAccess(Actor actor,
org.bukkit.Location loc,
int type,
short itemType,
short itemAmount,
short itemData)
Logs an actor interacting with a container block's inventory
|
void |
queueContainerBreak(Actor actor,
org.bukkit.block.BlockState container)
Logs a container block break.
|
void |
queueContainerBreak(Actor actor,
org.bukkit.Location loc,
int type,
byte data,
org.bukkit.inventory.Inventory inv)
Logs a container block break.
|
void |
queueJoin(org.bukkit.entity.Player player) |
void |
queueKill(Actor killer,
org.bukkit.entity.Entity victim)
This form should only be used when the killer is not an entity e.g.
|
void |
queueKill(org.bukkit.entity.Entity killer,
org.bukkit.entity.Entity victim) |
void |
queueKill(org.bukkit.Location location,
Actor killer,
Actor victim,
int weapon) |
void |
queueKill(org.bukkit.World world,
Actor killer,
Actor victim,
int weapon)
Deprecated.
Use
queueKill(Location, Actor, Actor, int) instead |
void |
queueLeave(org.bukkit.entity.Player player) |
void |
queueSignBreak(Actor actor,
org.bukkit.Location loc,
int type,
byte data,
String[] lines)
Logs an actor breaking a sign along with its contents
|
void |
queueSignBreak(Actor actor,
org.bukkit.block.Sign sign)
Logs an actor breaking a sign along with its contents
|
void |
queueSignPlace(Actor actor,
org.bukkit.Location loc,
int type,
byte data,
String[] lines)
Logs an actor placing a sign along with its contents
|
void |
queueSignPlace(Actor actor,
org.bukkit.block.Sign sign)
Logs an actor placing a sign along with its contents
|
void |
run() |
void |
writeToFile() |
cancel, scheduledExecutionTime
public void queueBlock(Actor actor, org.bukkit.Location loc, int typeBefore, int typeAfter, byte data)
actor
- Actor responsible for making the changeloc
- Location of the block changetypeBefore
- Type of the block before the changetypeAfter
- Type of the block after the changedata
- Data of the block after the changepublic void queueBlockBreak(Actor actor, org.bukkit.block.BlockState before)
actor
- Actor responsible for breaking the blockbefore
- Blockstate of the block before actually being destroyed.public void queueBlockBreak(Actor actor, org.bukkit.Location loc, int typeBefore, byte dataBefore)
actor
- Actor responsible for the block breakloc
- Location of the broken blocktypeBefore
- Type of the block before the breakdataBefore
- Data of the block before the breakpublic void queueBlockPlace(Actor actor, org.bukkit.block.BlockState after)
actor
- Actor responsible for placing the blockafter
- Blockstate of the block after actually being placed.public void queueBlockPlace(Actor actor, org.bukkit.Location loc, int type, byte data)
actor
- Actor responsible for placing the blockloc
- Location of the placed blocktype
- Type of the placed blockdata
- Data of the placed blockpublic void queueBlockReplace(Actor actor, org.bukkit.block.BlockState before, org.bukkit.block.BlockState after)
BlockState
sactor
- Actor responsible for replacing the blockbefore
- Blockstate of the block before actually being destroyed.after
- Blockstate of the block after actually being placed.public void queueBlockReplace(Actor actor, org.bukkit.block.BlockState before, int typeAfter, byte dataAfter)
BlockState
and the type and data afteractor
- Actor responsible for replacing the blockbefore
- Blockstate of the block before being replaced.typeAfter
- Type of the block after being replaceddataAfter
- Data of the block after being replacedpublic void queueBlockReplace(Actor actor, int typeBefore, byte dataBefore, org.bukkit.block.BlockState after)
BlockState
afteractor
- Actor responsible for replacing the blocktypeBefore
- Type of the block before being replaceddataBefore
- Data of the block before being replacedafter
- Blockstate of the block after actually being placed.public void queueBlockReplace(Actor actor, org.bukkit.Location loc, int typeBefore, byte dataBefore, int typeAfter, byte dataAfter)
public void queueChestAccess(Actor actor, org.bukkit.block.BlockState container, short itemType, short itemAmount, short itemData)
actor
- The actor interacting with the containercontainer
- The respective container. Must be an instance of an InventoryHolder.itemType
- Type of the item taken/storeditemAmount
- Amount of the item taken/storeditemData
- Data of the item taken/storedpublic void queueChestAccess(Actor actor, org.bukkit.Location loc, int type, short itemType, short itemAmount, short itemData)
actor
- The actor interacting with the containerloc
- The location of the container blocktype
- Type id of the container.itemType
- Type of the item taken/storeditemAmount
- Amount of the item taken/storeditemData
- Data of the item taken/storedpublic void queueContainerBreak(Actor actor, org.bukkit.block.BlockState container)
actor
- The actor breaking the containercontainer
- Must be an instance of InventoryHolderpublic void queueContainerBreak(Actor actor, org.bukkit.Location loc, int type, byte data, org.bukkit.inventory.Inventory inv)
actor
- The actor responsible for breaking the containerloc
- The location of the inventory blocktype
- The type of the container blockdata
- The data of the container blockinv
- The inventory of the container blockpublic void queueKill(org.bukkit.entity.Entity killer, org.bukkit.entity.Entity victim)
killer
- Can't be nullvictim
- Can't be nullpublic void queueKill(Actor killer, org.bukkit.entity.Entity victim)
killer
- Can't be nullvictim
- Can't be null@Deprecated public void queueKill(org.bukkit.World world, Actor killer, Actor victim, int weapon)
queueKill(Location, Actor, Actor, int)
insteadworld
- World the victim was inside.killer
- Name of the killer. Can be null.victim
- Name of the victim. Can't be null.weapon
- Item id of the weapon. 0 for no weapon.public void queueKill(org.bukkit.Location location, Actor killer, Actor victim, int weapon)
location
- Location of the victim.killer
- Killer Actor. Can be null.victim
- Victim Actor. Can't be null.weapon
- Item id of the weapon. 0 for no weapon.public void queueSignBreak(Actor actor, org.bukkit.Location loc, int type, byte data, String[] lines)
actor
- Actor responsible for breaking the signloc
- Location of the broken signtype
- Type of the sign. Must be 63 or 68.data
- Data of the sign being brokenlines
- The four lines on the sign.public void queueSignBreak(Actor actor, org.bukkit.block.Sign sign)
actor
- Actor responsible for breaking the signsign
- The sign being brokenpublic void queueSignPlace(Actor actor, org.bukkit.Location loc, int type, byte data, String[] lines)
actor
- Actor placing the signloc
- Location of the placed signtype
- Type of the sign. Must be 63 or 68.data
- Data of the placed sign blocklines
- The four lines on the sign.public void queueSignPlace(Actor actor, org.bukkit.block.Sign sign)
actor
- Actor placing the signsign
- The palced sign objectpublic void queueJoin(org.bukkit.entity.Player player)
public void queueLeave(org.bukkit.entity.Player player)
public void writeToFile() throws FileNotFoundException
FileNotFoundException
Copyright © 2015. All rights reserved.