Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
IronGolem.java
1 package org.bukkit.entity;
2 
3 /**
4  * An iron Golem that protects Villages.
5  */
6 public interface IronGolem extends Golem {
7 
8  /**
9  * Gets whether this iron golem was built by a player.
10  *
11  * @return Whether this iron golem was built by a player
12  */
13  public boolean isPlayerCreated();
14 
15  /**
16  * Sets whether this iron golem was built by a player or not.
17  *
18  * @param playerCreated true if you want to set the iron golem as being
19  * player created, false if you want it to be a natural village golem.
20  */
21  public void setPlayerCreated(boolean playerCreated);
22 }
void setPlayerCreated(boolean playerCreated)