All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.craftbukkit.entity.CraftIronGolem Maven / Gradle / Ivy

package org.bukkit.craftbukkit.entity;

import net.minecraft.server.EntityIronGolem;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.IronGolem;

public class CraftIronGolem extends CraftGolem implements IronGolem {
  public CraftIronGolem(CraftServer server, EntityIronGolem entity) {
    super(server, entity);
  }

  @Override
  public EntityIronGolem getHandle() {
    return (EntityIronGolem) entity;
  }

  @Override
  public String toString() {
    return "CraftIronGolem";
  }

  public boolean isPlayerCreated() {
    return getHandle().isPlayerCreated();
  }

  public void setPlayerCreated(boolean playerCreated) {
    getHandle().setPlayerCreated(playerCreated);
  }

  @Override
  public EntityType getType() {
    return EntityType.IRON_GOLEM;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy