package mhfc.net.common.entity.monster;
import org.lwjgl.opengl.GL11;
import com.github.worldsender.mcanm.client.model.util.RenderPassInformation;
import mhfc.net.common.ai.IActionManager;
import mhfc.net.common.ai.manager.builder.ActionManagerBuilder;
import mhfc.net.common.entity.type.EntityMHFCBase;
import mhfc.net.common.entity.type.EntityMHFCPart;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.EntityAINearestAttackableTarget;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
public class EntityGiaprey extends EntityMHFCBase<EntityGiaprey> {
public EntityGiaprey(World world) {
super(world);
this.height = 1f;
this.width = 2f;
targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
}
@Override
public IActionManager<EntityGiaprey> constructActionManager() {
ActionManagerBuilder<EntityGiaprey> actionManager = new ActionManagerBuilder<>();
return actionManager.build(this);
}
@Override
public EntityMHFCPart[] getParts() {
return null;
}
@Override
public void applyEntityAttributes() {
super.applyEntityAttributes();
getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(healthbaseHP(5500D));
}
@Override
public RenderPassInformation preRenderCallback(float scale, RenderPassInformation sub) {
GL11.glScaled(0.8, 0.8, 0.8);
return super.preRenderCallback(scale, sub);
}
@Override
public void entityInit() {
super.entityInit();
// if(this.isInWater())
dataWatcher.addObject(16, Byte.valueOf((byte) 0));
dataWatcher.addObject(17, Byte.valueOf((byte) 0));
}
}