コード例 #1
0
 protected void applyEntityAttributes() {
   super.applyEntityAttributes();
   this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(baseSpeed);
   this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(baseHealth);
   this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(baseDamage);
 }
コード例 #2
0
 public void onLivingUpdate() {
   breakBlock(5);
   super.onLivingUpdate();
 }
コード例 #3
0
 protected void entityInit() {
   super.entityInit();
 }