Class OpenGuiWindowTrigger

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

Triggered when a blockui window is opened
  • Constructor Details

    • OpenGuiWindowTrigger

      public OpenGuiWindowTrigger()
  • Method Details

    • trigger

      public void trigger(net.minecraft.server.level.ServerPlayer player, net.minecraft.resources.ResourceLocation windowResource)
      Triggers the listener checks if there are any listening in
      Parameters:
      player - the player the check regards
      windowResource - the window id that was just opened
    • createInstance

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