|
||||||||||
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.EntityChangeBlockEvent
public class EntityChangeBlockEvent
Called when any Entity, excluding players, changes a block.
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 | |
---|---|
EntityChangeBlockEvent(Entity what,
Block block,
Material to,
byte data)
|
|
EntityChangeBlockEvent(LivingEntity what,
Block block,
Material to)
Deprecated. Provided as a backward compatibility before the data byte was provided, and type increased to all entities |
Method Summary | |
---|---|
Block |
getBlock()
Gets the block the entity is changing |
byte |
getData()
Gets the data for the block that would be changed into |
static HandlerList |
getHandlerList()
|
HandlerList |
getHandlers()
|
Material |
getTo()
Gets the Material that the block is changing into |
boolean |
isCancelled()
Gets the cancellation state of this event. |
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event. |
Methods inherited from class org.bukkit.event.entity.EntityEvent |
---|
getEntity, 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 |
---|
@Deprecated public EntityChangeBlockEvent(LivingEntity what, Block block, Material to)
what
- the LivingEntity causing the changeblock
- the block (before the change)to
- the future material being changed topublic EntityChangeBlockEvent(Entity what, Block block, Material to, byte data)
what
- the Entity causing the changeblock
- the block (before the change)to
- the future material being changed todata
- the future block dataMethod Detail |
---|
public Block getBlock()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic Material getTo()
public byte getData()
public HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |