Simple Augment

Creating a simple Augment

  1. Create a class that extends ExternalAugment.

  2. Create a class that extends AugmentExecutor.

  3. Register the Augment using the AugmentManager.registerExternal() method.

public class TestAugment extends ExternalAugment {

    @Override
    public String getId() {
        return "TEST_AUGMENT";
    }

    @Override
    public String getName() {
        return "Test Augment";
    }

    @Override
    public String getSymbol() {
        return "\uD83D\uDDE1";
    }

    @Override
    public Color getColor() {
        return Color.decode("#34eb98");
    }

    @Override
    public String getTier() {
        return "GOLD";
    }

    @Override
    public int getModel() {
        return 11202243;
    }

    @Override
    public List<String> getDescription() {
        return List.of(
                "§7Gain the §cStrength §7effect."
        );
    }

    @Override
    public Class<? extends AugmentExecutor> getExecutorClass() {
        return TestAugmentExecutor.class;
    }
}
public static class TestAugmentExecutor extends AugmentExecutor {

    public TestAugmentExecutor(Player player, String augmentId, Augment augment) {
        super(player, augmentId, augment);
    }

    @Override
    public void executePhase(GamePhase gamePhase) {
        player.addPotionEffect(new PotionEffect(PotionEffectType.STRENGTH, PotionEffect.INFINITE_DURATION, 1));
    }
}
AugmentManager.registerExternal(new TestAugment());

Here's the result:

Last updated