Class ArmyPopulationTrigger

All Implemented Interfaces:
net.minecraft.advancements.CriterionTrigger<ArmyPopulationCriterionInstance>

Triggered on allocation of new soldiers
  • Constructor Details

    • ArmyPopulationTrigger

      public ArmyPopulationTrigger()
  • Method Details

    • trigger

      public void trigger(net.minecraft.server.level.ServerPlayer player, int armySize)
      Triggers the listener checks if there is any listening in
      Parameters:
      player - the player the check regards
      armySize - the related colony's current army size
    • createInstance

      @NotNull public @NotNull ArmyPopulationCriterionInstance createInstance(@NotNull @NotNull com.google.gson.JsonObject object, @NotNull @NotNull net.minecraft.advancements.critereon.DeserializationContext context)