remove ItemTool subclassing

This commit is contained in:
Sen 2025-07-31 17:13:19 +02:00
parent 37f912cb6d
commit acc43e2d42
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
24 changed files with 101 additions and 216 deletions

View file

@ -30,7 +30,6 @@ import common.attributes.Attribute;
import common.collect.Lists;
import common.collect.Sets;
import common.enchantment.Enchantment;
import common.enchantment.EnchantmentHelper;
import common.init.ItemRegistry;
import common.inventory.Container;
import common.inventory.InventoryPlayer;
@ -142,15 +141,6 @@ public abstract class GuiContainer extends Gui
}
}
int damage = stack.getItem().getAttackDamageBonus();
damage += EnchantmentHelper.getDamageModifier(stack);
if(damage != 0) {
if(damage > 0)
list.add(Color.BLUE + String.format("+%d Angriffsschaden", damage));
else
list.add(Color.RED + String.format("-%d Angriffsschaden", damage));
}
Map<Attribute, Float> mods = stack.getAttributeModifiers(null);
if(!mods.isEmpty()) {

View file

@ -900,11 +900,6 @@ public class ClientPlayer implements IClientPlayer
{
this.gm.effectRenderer.spawnCritParticles(entity);
}
else if (packetIn.getAnimationType() == 5)
{
this.gm.effectRenderer.spawnCritParticles(entity);
this.gm.effectRenderer.spawnCritParticles(entity);
}
}
}