Class ProfessorDialogueFactory
java.lang.Object
com.pixelmonmod.pixelmon.api.dialogue.professor.ProfessorDialogueFactory
Factory for tracking ProfessorDialogue instances.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addDialogue
(net.minecraft.server.level.ServerPlayer player, ProfessorDialogue.Builder dialogue) Adds a dialogue for the given player.static ProfessorDialogue.Builder
getDialogue
(net.minecraft.server.level.ServerPlayer player) Gets the dialogue for the given player.static void
removeDialogue
(net.minecraft.server.level.ServerPlayer player) Removes the dialogue for the given player.
-
Method Details
-
getDialogue
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 playerdialogue
- The dialogue
-
removeDialogue
public static void removeDialogue(net.minecraft.server.level.ServerPlayer player) Removes the dialogue for the given player.- Parameters:
player
- The player
-