public boolean interact(EntityPlayer player) {
ItemStack is = player.inventory.getCurrentItem();
float healingBuff = 0.0F;
if(is != null && is.getItem() == ModItems.materials && is.getItemDamage() == ItemMaterials.DATA.BEETLE_TAMING_AMULET.ordinal() && this.getTameState() == 1) {
healingBuff = (float)(ConfigHandler.INSTANCE.mobHealthMultipier < 2?20.0D:20.0D * (double)ConfigHandler.INSTANCE.mobHealthMultipier);
--is.stackSize;
this.setTameState((byte)1);
this.playTameEffect(true);
player.swingItem();
super.tasks.removeTask(this.aiNearestAttackableTarget);
this.setAttackTarget((EntityLivingBase)null);
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(ConfigHandler.INSTANCE.mobHealthMultipier < 2?80.0D:80.0D * (double)ConfigHandler.INSTANCE.mobHealthMultipier);
this.heal(healingBuff);
return true;
public boolean interact(EntityPlayer player) {
ItemStack is = player.inventory.getCurrentItem();
float healingBuff = 0.0F;
if(is != null && is.getItem() == ModItems.materials && is.getItemDamage() == ItemMaterials.DATA.BEETLE_TAMING_AMULET.ordinal() && this.getTameState() == 0) {
healingBuff = (float)(ConfigHandler.INSTANCE.mobHealthMultipier < 2?20.0D:20.0D * (double)ConfigHandler.INSTANCE.mobHealthMultipier);
--is.stackSize;
this.setTameState((byte)1);
this.playTameEffect(true);
player.swingItem();
super.tasks.removeTask(this.aiNearestAttackableTarget);
this.setAttackTarget((EntityLivingBase)null);
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(ConfigHandler.INSTANCE.mobHealthMultipier < 2?80.0D:80.0D * (double)ConfigHandler.INSTANCE.mobHealthMultipier);
this.heal(healingBuff);
return true;
public boolean interact(EntityPlayer player) {
ItemStack is = player.inventory.getCurrentItem();
float healingBuff = 0.0F;
if(is != null && is.getItem() == ModItems.materials && is.getItemDamage() == ItemMaterials.DATA.BEETLE_TAMING_AMULET.ordinal() && this.getTameState() == 0) {
healingBuff = (float)(ConfigHandler.INSTANCE.mobHealthMultipier < 2?20.0D:20.0D * (double)ConfigHandler.INSTANCE.mobHealthMultipier);
--is.stackSize;
this.setTameState((byte)1);
this.playTameEffect(true);
player.swingItem();
super.tasks.removeTask(this.aiNearestAttackableTarget);
this.setAttackTarget((EntityLivingBase)null);
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(ConfigHandler.INSTANCE.mobHealthMultipier < 2?80.0D:80.0D * (double)ConfigHandler.INSTANCE.mobHealthMultipier);
this.heal(healingBuff);
return true;