Examples of handleHealthUpdate()


Examples of net.minecraft.entity.passive.EntityTameable.handleHealthUpdate()

    @Override
    public void onHackFinished(Entity entity, EntityPlayer player){
        EntityTameable tameable = (EntityTameable)entity;
        if(entity.worldObj.isRemote) {
            tameable.handleHealthUpdate((byte)7);
        } else {
            tameable.setPathToEntity((PathEntity)null);
            tameable.setAttackTarget((EntityLivingBase)null);
            tameable.setHealth(20.0F);
            tameable.func_152115_b(player.getUniqueID().toString());//setOwner
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.