|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.event.Event org.bukkit.event.entity.EntityEvent org.bukkit.event.entity.EntityDeathEvent org.bukkit.event.entity.PlayerDeathEvent
public class PlayerDeathEvent
Thrown whenever a Player
dies
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.bukkit.event.Event |
---|
Event.Result |
Field Summary |
---|
Fields inherited from class org.bukkit.event.entity.EntityEvent |
---|
entity |
Constructor Summary | |
---|---|
PlayerDeathEvent(Player player,
List<ItemStack> drops,
int droppedExp,
int newExp,
int newTotalExp,
int newLevel,
String deathMessage)
|
|
PlayerDeathEvent(Player player,
List<ItemStack> drops,
int droppedExp,
int newExp,
String deathMessage)
|
|
PlayerDeathEvent(Player player,
List<ItemStack> drops,
int droppedExp,
String deathMessage)
|
Method Summary | |
---|---|
String |
getDeathMessage()
Get the death message that will appear to everyone on the server. |
Player |
getEntity()
Returns the Entity involved in this event |
boolean |
getKeepLevel()
Gets if the Player should keep all EXP at respawn. |
int |
getNewExp()
Gets how much EXP the Player should have at respawn. |
int |
getNewLevel()
Gets the Level the Player should have at respawn. |
int |
getNewTotalExp()
Gets the Total EXP the Player should have at respawn. |
void |
setDeathMessage(String deathMessage)
Set the death message that will appear to everyone on the server. |
void |
setKeepLevel(boolean keepLevel)
Sets if the Player should keep all EXP at respawn. |
void |
setNewExp(int exp)
Sets how much EXP the Player should have at respawn. |
void |
setNewLevel(int level)
Sets the Level the Player should have at respawn. |
void |
setNewTotalExp(int totalExp)
Sets the Total EXP the Player should have at respawn. |
Methods inherited from class org.bukkit.event.entity.EntityDeathEvent |
---|
getDroppedExp, getDrops, getHandlerList, getHandlers, setDroppedExp |
Methods inherited from class org.bukkit.event.entity.EntityEvent |
---|
getEntityType |
Methods inherited from class org.bukkit.event.Event |
---|
getEventName, isAsynchronous |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlayerDeathEvent(Player player, List<ItemStack> drops, int droppedExp, String deathMessage)
public PlayerDeathEvent(Player player, List<ItemStack> drops, int droppedExp, int newExp, String deathMessage)
public PlayerDeathEvent(Player player, List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, String deathMessage)
Method Detail |
---|
public Player getEntity()
EntityEvent
getEntity
in class EntityDeathEvent
public void setDeathMessage(String deathMessage)
deathMessage
- Message to appear to other players on the server.public String getDeathMessage()
public int getNewExp()
EntityDeathEvent.getDroppedExp()
for that.
public void setNewExp(int exp)
EntityDeathEvent.setDroppedExp(int)
for that.
exp
- New EXP of the respawned playerpublic int getNewLevel()
public void setNewLevel(int level)
level
- New Level of the respawned playerpublic int getNewTotalExp()
public void setNewTotalExp(int totalExp)
totalExp
- New Total EXP of the respawned playerpublic boolean getKeepLevel()
public void setKeepLevel(boolean keepLevel)
keepLevel
- True to keep all current value levels
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |