net.minecraft.server.EntityGiantZombie Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chest-server Show documentation
Show all versions of chest-server Show documentation
A spigot fork to kotlin structure and news.
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