protected void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.maxHealth) .setBaseValue((double) EntityAttributes.maxHealth1); // this.getEntityAttribute(SharedMonsterAttributes.followRange).setBaseValue(40.0D); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed) .setBaseValue((double) EntityAttributes.moveSpeed1); this.getEntityAttribute(SharedMonsterAttributes.attackDamage) .setBaseValue((double) EntityAttributes.attackDamage1); }
/* public void setTarget(Entity par1Entity) { StackTraceElement[] elements = Thread.currentThread().getStackTrace(); if(elements.length > 2) { StackTraceElement previousMethod = elements[2]; if(previousMethod.getClassName().startsWith("org.millenaire.") && previousMethod.getMethodName().equals("triggerMobAttacks")) { return; } } super.setTarget(par1Entity); } */ public void onLivingUpdate() { super.onLivingUpdate(); }