Class ProfessorDialogueFactory

java.lang.Object
com.pixelmonmod.pixelmon.api.dialogue.professor.ProfessorDialogueFactory

public class ProfessorDialogueFactory extends Object
Factory for tracking ProfessorDialogue instances.
  • Method Details

    • getDialogue

      public static ProfessorDialogue.Builder getDialogue(net.minecraft.server.level.ServerPlayer player)
      Gets the dialogue for the given player.
      Parameters:
      player - The player
      Returns:
      The dialogue
    • addDialogue

      public static void addDialogue(net.minecraft.server.level.ServerPlayer player, ProfessorDialogue.Builder dialogue)
      Adds a dialogue for the given player.
      Parameters:
      player - The player
      dialogue - The dialogue
    • removeDialogue

      public static void removeDialogue(net.minecraft.server.level.ServerPlayer player)
      Removes the dialogue for the given player.
      Parameters:
      player - The player