Java 类net.minecraft.entity.passive.EntityParrot 实例源码

项目:Sophisticated-wolves    文件:ParrotPetCarrier.java   
@Override
public NBTTagCompound getInfo(EntityLivingBase pet) {
    NBTTagCompound nbt = new NBTTagCompound();
    nbt.setInteger("Variant", ((EntityParrot) pet).getVariant());

    return nbt;
}
项目:Sophisticated-wolves    文件:ParrotPetCarrier.java   
@Override
public Class getPetClass() {
    return EntityParrot.class;
}
项目:Sophisticated-wolves    文件:ParrotPetCarrier.java   
@Override
public EntityLiving spawnPet(World world, EntityPlayer player) {
    return new EntityParrot(world);
}
项目:iChunUtil    文件:HeadParrot.java   
@Override
public float getEyeRotation(EntityParrot living, float partialTick, int eye)
{
    return eye == 0 ? 90F : - 90F;
}
项目:iChunUtil    文件:HeadParrot.java   
@Override
public float getPupilScale(EntityParrot living, float partialTick, int eye)
{
    return super.getPupilScale(living, partialTick, eye) * (living.isPartying() ? 1.6F : 1F);
}