Skip to main content

ArmorWithTickItem

Add onArmorTick(World world, PlayerEntity entity) method to armors.

Example(s):

public class YourArmor extends ArmorWithTickItem {
public YourArmor(Type slot) {
super(...)
//super constructor will automatically register it into tick event
}

@Override
public void onArmorTick(World world, PlayerEntity entity) {
//Execute on every tick if this is equipped.
}
}