Class MaxFieldsTrigger

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

Is triggered when the maximum number of fields has been allocated to a single farmer
  • Constructor Details

    • MaxFieldsTrigger

      public MaxFieldsTrigger()
  • Method Details

    • trigger

      public void trigger(net.minecraft.server.level.ServerPlayer player)
      Triggers the listener checks if there are any listening in
      Parameters:
      player - the player the check regards
    • createInstance

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