mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
Adding all Entities into CraftBukkit.
These are needed to properly allow for determining class type, in accordance with current practice.
This commit is contained in:
committed by
Dinner Bone
parent
5f2c8108b7
commit
5209e17e1b
49
src/main/java/net/minecraft/server/EntityCow.java
Normal file
49
src/main/java/net/minecraft/server/EntityCow.java
Normal file
@@ -0,0 +1,49 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
public class EntityCow extends EntityAnimals {
|
||||
|
||||
public EntityCow(World world) {
|
||||
super(world);
|
||||
aP = "/mob/cow.png";
|
||||
a(0.9F, 1.3F);
|
||||
}
|
||||
|
||||
public void a(NBTTagCompound nbttagcompound) {
|
||||
super.a(nbttagcompound);
|
||||
}
|
||||
|
||||
public void b(NBTTagCompound nbttagcompound) {
|
||||
super.b(nbttagcompound);
|
||||
}
|
||||
|
||||
protected String e() {
|
||||
return "mob.cow";
|
||||
}
|
||||
|
||||
protected String f() {
|
||||
return "mob.cowhurt";
|
||||
}
|
||||
|
||||
protected String g() {
|
||||
return "mob.cowhurt";
|
||||
}
|
||||
|
||||
protected float i() {
|
||||
return 0.4F;
|
||||
}
|
||||
|
||||
protected int h() {
|
||||
return Item.aD.ba;
|
||||
}
|
||||
|
||||
public boolean a(EntityPlayer entityplayer) {
|
||||
ItemStack itemstack = entityplayer.an.e();
|
||||
|
||||
if (itemstack != null && itemstack.c == Item.au.ba) {
|
||||
entityplayer.an.a(entityplayer.an.c, new ItemStack(Item.aE));
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user