Class PlaceStructureTrigger

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

Triggers whenever the build tool is used to position a new structure
  • Constructor Details

    • PlaceStructureTrigger

      public PlaceStructureTrigger()
  • Method Details

    • trigger

      public void trigger(net.minecraft.server.level.ServerPlayer player, String structureName)
      Triggers the listener checks if there are any listening in
      Parameters:
      player - the player the check regards
      structureName - the structure id of what was just placed
    • createInstance

      @NotNull public @NotNull PlaceStructureCriterionInstance createInstance(@NotNull @NotNull com.google.gson.JsonObject jsonObject, @NotNull @NotNull net.minecraft.advancements.critereon.DeserializationContext conditionArrayParser)