if (speedBase > flightSpeed)
{
speedBase = flightSpeed;
}
EntityArrow arrowEntity = null;
// if (tinkerArrow != null)
if (slotID != -1 && (arrowID == -1 || slotID < arrowID))
{
ItemStack arrowStack = tinkerArrow.copy();
arrowStack.stackSize = 1;
arrowEntity = new ArrowEntity(world, player, speedBase * 2.0F, arrowStack);
}
else
{
arrowEntity = new EntityArrow(world, player, speedBase * 2.0F);
}
if (speedBase >= 1.0F)
{
arrowEntity.setIsCritical(true);
}
int var9 = EnchantmentHelper.getEnchantmentLevel(Enchantment.power.effectId, stack);
if (var9 > 0)
{
arrowEntity.setDamage(arrowEntity.getDamage() + (double) var9 * 0.5D + 0.5D);
}
int var10 = EnchantmentHelper.getEnchantmentLevel(Enchantment.punch.effectId, stack);
if (slotID != -1 && (arrowID == -1 || slotID < arrowID))
((ArrowEntity) arrowEntity).setKnockbackModStrength(toolTag.getFloat("Knockback"));
// var10 += toolTag.getFloat("Knockback");
if (var10 > 0)
{
arrowEntity.setKnockbackStrength(var10);
}
if (EnchantmentHelper.getEnchantmentLevel(Enchantment.flame.effectId, stack) > 0)
{
arrowEntity.setFire(100);
}
int reinforced = 0;
if (toolTag.hasKey("Unbreaking"))