Abstract error when equipping mobs

Hey guys :slight_smile:

Sponge Version 6.0.0-BETA-190

Simply put, I have a class which generates a Zombie equipped with armour. The equipping stage is as simple as:
zombie.equip(EquipmentTypes.BOOTS, ItemStack.of(ItemTypes.CHAINMAIL_BOOTS, 1));
However, when this function runs it fails at that line with the following exception:
java.lang.AbstractMethodError: Method net/minecraft/entity/monster/EntityZombie.equip(org/spongepowered/api/item/inventory/equipment/EquipmentType;org/spongepowered/api/item/inventory/ItemStack;)z is abstract

This error also occurs with skeletons, and with every equipment slot.

I’ll add that I am trying to equip the entities at the createEntity() stage rather than the spawnEntity() stage.

Thanks in advance,

  • Nickick
1 Like

I believe this is due to lack of implementation of Sponge.

2 Likes

Wait, so it’s not my fault for a change?! :open_mouth:
I just assumed I was using the wrong command etc etc.

Is there a workaround?

Correct. AbstractMethodError always means “not implemented”.

1 Like