Class ClickGuiButtonTrigger

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

  • Constructor Details

    • ClickGuiButtonTrigger

      public ClickGuiButtonTrigger()
  • Method Details

    • trigger

      public void trigger(net.minecraft.server.level.ServerPlayer player, String buttonId, net.minecraft.resources.ResourceLocation windowResource)
      Triggers the listener checks if there are any listening in
      Parameters:
      player - the player the check regards
      buttonId - the id of the button in blockui
      windowResource - the blockui window id to refer to
    • createInstance

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