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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user