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

net.minecraft.server.EntityGiantZombie Maven / Gradle / Ivy

The newest version!
package net.minecraft.server;

import org.bukkit.entity.Giant;
import org.jetbrains.annotations.NotNull;

public class EntityGiantZombie extends EntityMonster {

  public EntityGiantZombie(World world) {
    super(world);
    this.setSize(this.width * 6.0F, this.length * 6.0F);
  }

  public float getHeadHeight() {
    return 10.440001F;
  }

  @NotNull
  @Override
  public Giant getEntity() {
    return (Giant) super.getEntity();
  }

  protected void initAttributes() {
    super.initAttributes();
    this.getAttributeInstance(GenericAttributes.maxHealth).setValue(100.0D);
    this.getAttributeInstance(GenericAttributes.MOVEMENT_SPEED).setValue(0.5D);
    this.getAttributeInstance(GenericAttributes.ATTACK_DAMAGE).setValue(50.0D);
  }

  public float a(BlockPosition blockposition) {
    return this.world.o(blockposition) - 0.5F;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy