Added events for endermen pickup/placement blocks and methods to get/set the block that an enderman is holding. Thanks Wizjany

By: Wizjany <wizjany@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-09-17 20:18:43 -04:00
parent ae629bb348
commit 032a212512
6 changed files with 126 additions and 2 deletions

View File

@@ -1,6 +1,23 @@
package org.bukkit.entity;
import org.bukkit.material.MaterialData;
/**
* Represents an Enderman.
*/
public interface Enderman extends Monster {}
public interface Enderman extends Monster {
/**
* Get the id and data of the block that the Enderman is carrying.
*
* @return MaterialData containing the id and data of the block
*/
public MaterialData getCarriedMaterial();
/**
* Set the id and data of the block that the Enderman is carring.
*
* @param material data to set the carried block to
*/
public void setCarriedMaterial(MaterialData material);
}