org.bukkit.entity
Interface IronGolem

All Superinterfaces:
Creature, Damageable, Entity, Golem, LivingEntity, Metadatable

public interface IronGolem
extends Golem

An iron Golem that protects Villages.


Method Summary
 boolean isPlayerCreated()
          Gets whether this iron golem was built by a player.
 void setPlayerCreated(boolean playerCreated)
          Sets whether this iron golem was built by a player or not.
 
Methods inherited from interface org.bukkit.entity.Creature
getTarget, setTarget
 
Methods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getCustomName, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, hasLineOfSight, hasPotionEffect, isCustomNameVisible, launchProjectile, removePotionEffect, setCanPickupItems, setCustomName, setCustomNameVisible, setLastDamage, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, shootArrow, throwEgg, throwSnowball
 
Methods inherited from interface org.bukkit.entity.Damageable
damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
 

Method Detail

isPlayerCreated

boolean isPlayerCreated()
Gets whether this iron golem was built by a player.

Returns:
Whether this iron golem was built by a player

setPlayerCreated

void setPlayerCreated(boolean playerCreated)
Sets whether this iron golem was built by a player or not.

Parameters:
playerCreated - true if you want to set the iron golem as being player created, false if you want it to be a natural village golem.


Copyright © 2013. All Rights Reserved.