コード例 #1
0
ファイル: EntitySheep2.java プロジェクト: StefanFox/mods
 @Override
 protected void applyEntityAttributes() {
   super.applyEntityAttributes();
   this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setAttribute(10);
   this.getEntityAttribute(SharedMonsterAttributes.movementSpeed)
       .setAttribute(0.10000000298023224D);
 }
コード例 #2
0
 protected void applyEntityAttributes() {
   super.applyEntityAttributes();
   this.getAttributeMap().registerAttribute(horseJumpStrength);
   this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(53.0D);
   this.getEntityAttribute(SharedMonsterAttributes.movementSpeed)
       .setBaseValue(0.22499999403953552D);
 }
コード例 #3
0
 // you don't have to call this as it is called automatically during entityLiving subclass creation
 @Override
 protected void applyEntityAttributes() {
   super.applyEntityAttributes();
   getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.2D);
   getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(8.0D);
 }
コード例 #4
0
 protected void applyEntityAttributes() {
   super.applyEntityAttributes();
   this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(10.0D);
   this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.25D);
 }
コード例 #5
0
ファイル: EntitySheep.java プロジェクト: mjuniper/mod-design
 protected void applyEntityAttributes() {
   super.applyEntityAttributes();
   this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setAttribute(8.0D);
   this.getEntityAttribute(SharedMonsterAttributes.movementSpeed)
       .setAttribute(0.23000000417232513D);
 }