Skip to content

Instantly share code, notes, and snippets.

@ShaRose
Created December 5, 2011 08:55
Show Gist options
  • Save ShaRose/1432918 to your computer and use it in GitHub Desktop.
Save ShaRose/1432918 to your computer and use it in GitHub Desktop.
package net.minecraft.src;
public class EntityGoomba extends EntityCreature {
public EntityGoomba(World world) {
super(world);
texture = "/mob/Goomba.png";
moveSpeed = 1.0F;
isImmuneToFire = false;
npcName = "Goomba";
}
@Override
protected int getDropItemId() {
return Item.swordStone.shiftedIndex;
}
@Override
public boolean canBreatheUnderwater() {
return false;
}
@Override
protected boolean canDespawn() {
return false;
}
@Override
public int getMaxHealth() {
return 20;
}
@Override
public void onEntityDeath() {
}
public String npcName;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment