Interface InteractionResult
- All Known Implementing Classes:
AppraiseRodInteractionResult
,BuildableInteractionResult
,ConsoleExecuteCommandInteractionResult
,EmptyInteractionResult
,GiveItemInteractionResult
,GivePokemonInteractionResult
,HealPlayerPartyInteractionResult
,ImmutableInteractionResult
,MessagePlayerInteractionResult
,MutableInteractionResult
,OpenDialogueInteractionResult
,OpenPagedDialogueInteractionResult
,OpenShopInteractionResult
,OpenTradeInteractionResult
,PlayerExecuteCommandInteractionResult
,PlayerStartNPCBattleInteractionResult
,RelearnerInteractionResult
,SetIconInteractionResult
,TriggerInteractionEventInteractionResult
,TutorInteractionResult
public interface InteractionResult
Interaction results represent a function to execute once the
relevant event has been fired, and then all additional
conditions have been met
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a new builder for an interaction resultcom.mojang.serialization.Codec<? extends InteractionResult>
codec()
The coded for decoding data for this interaction resultdefault InteractionResult
fill
(ResultData data) static InteractionResult
from
(ResultData data) Converts the network data into an interaction conditionvoid
handle
(InteractionContext context) Handles the result using the given context
-
Field Details
-
CODEC
-
-
Method Details
-
codec
com.mojang.serialization.Codec<? extends InteractionResult> codec()The coded for decoding data for this interaction result- Returns:
- The codec
-
handle
Handles the result using the given context- Parameters:
context
- The context
-
fill
-
inputTypes
-
from
Converts the network data into an interaction condition- Parameters:
data
- The network data- Returns:
- The interaction condition
-
builder
Creates a new builder for an interaction result- Returns:
- The builder
-