java.lang.Object
com.pixelmonmod.pixelmon.api.dialogue.Choice

@Deprecated(forRemoval=true, since="9.2.7") public class Choice extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Use DialogueFactory instead.
Object representation of a dialogue choice. Instantiation is strongly recommended to be done through the Choice.ChoiceBuilder because of its automatic use of the handleMap.
Since:
November 26, 2017
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    The runtime-unique ID for this choice.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    A server-held mapping from choiceID to the handler of the event.
    final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    The display text for the choice.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Choice(String text, Consumer<DialogueChoiceEvent> handle, int choiceID)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Choice(net.minecraft.network.FriendlyByteBuf buffer)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Choice(net.minecraft.network.FriendlyByteBuf buffer, boolean localized)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    toBytes(net.minecraft.network.FriendlyByteBuf buffer)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • handleMap

      public static final HashMap<UUID,HashMap<Integer,Consumer<DialogueChoiceEvent>>> handleMap
      Deprecated, for removal: This API element is subject to removal in a future version.
      A server-held mapping from choiceID to the handler of the event. This is used implicitly through the Choice.ChoiceBuilder, and as such modifying this directly is not recommended.
    • choiceID

      public final int choiceID
      Deprecated, for removal: This API element is subject to removal in a future version.
      The runtime-unique ID for this choice.
    • text

      public final String text
      Deprecated, for removal: This API element is subject to removal in a future version.
      The display text for the choice.
    • handle

      public final Consumer<DialogueChoiceEvent> handle
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • Choice

      public Choice(String text, Consumer<DialogueChoiceEvent> handle)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Choice

      public Choice(String text, Consumer<DialogueChoiceEvent> handle, int choiceID)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Choice

      public Choice(net.minecraft.network.FriendlyByteBuf buffer)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Choice

      public Choice(net.minecraft.network.FriendlyByteBuf buffer, boolean localized)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • toBytes

      public void toBytes(net.minecraft.network.FriendlyByteBuf buffer)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • builder

      public static Choice.ChoiceBuilder builder()
      Deprecated, for removal: This API element is subject to removal in a future version.