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 Details

  • Method Details

    • codec

      com.mojang.serialization.Codec<? extends InteractionResult> codec()
      The coded for decoding data for this interaction result
      Returns:
      The codec
    • handle

      void handle(InteractionContext context)
      Handles the result using the given context
      Parameters:
      context - The context
    • fill

      default InteractionResult fill(ResultData data)
    • inputTypes

      default List<InputType<?>> inputTypes()
    • from

      @Internal static InteractionResult from(ResultData data)
      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