Example #1
0
 public void onLivingUpdate() {
   super.onLivingUpdate();
   if (isInWater()) {
     // randomMotionSpeed = 2.0F;
   }
 }
Example #2
0
 protected void applyEntityAttributes() {
   super.applyEntityAttributes();
   this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(50.0D);
   this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(1.0D);
 }
Example #3
0
 public void onUpdate() {
   super.onUpdate();
 }