Class Choice
java.lang.Object
com.pixelmonmod.pixelmon.api.dialogue.Choice
Deprecated, for removal: This API element is subject to removal in a future version.
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
Modifier and TypeClassDescriptionstatic class
Deprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
Modifier and TypeFieldDescriptionfinal int
Deprecated, for removal: This API element is subject to removal in a future version.The runtime-unique ID for this choice.final Consumer<DialogueChoiceEvent>
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 fromchoiceID
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
ConstructorDescriptionChoice
(String text, Consumer<DialogueChoiceEvent> handle) 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 TypeMethodDescriptionstatic Choice.ChoiceBuilder
builder()
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.
-
Field Details
-
handleMap
Deprecated, for removal: This API element is subject to removal in a future version.A server-held mapping fromchoiceID
to the handler of the event. This is used implicitly through theChoice.ChoiceBuilder
, and as such modifying this directly is not recommended. -
choiceID
public final int choiceIDDeprecated, for removal: This API element is subject to removal in a future version.The runtime-unique ID for this choice. -
text
Deprecated, for removal: This API element is subject to removal in a future version.The display text for the choice. -
handle
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
Choice
Deprecated, for removal: This API element is subject to removal in a future version. -
Choice
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
Deprecated, for removal: This API element is subject to removal in a future version.
-
DialogueFactory
instead.