Class StandardInteraction

All Implemented Interfaces:
IInteractionResponseHandler, net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Direct Known Subclasses:
QuestDialogueInteraction, SimpleNotificationInteraction

public class StandardInteraction extends ServerCitizenInteraction
The server side interaction response handler.
  • Field Details

  • Constructor Details

    • StandardInteraction

      public StandardInteraction(net.minecraft.network.chat.Component inquiry, net.minecraft.network.chat.Component validator, IChatPriority priority)
      The server interaction response handler with custom validator.
      Parameters:
      inquiry - the client inquiry.
      validator - the id of the validator.
      priority - the interaction priority.
    • StandardInteraction

      public StandardInteraction(net.minecraft.network.chat.Component inquiry, IChatPriority priority)
      The server interaction response handler.
      Parameters:
      inquiry - the client inquiry.
      priority - the interaction priority.
    • StandardInteraction

      public StandardInteraction(ICitizen data)
      Way to load the response handler for a citizen.
      Parameters:
      data - the citizen owning this handler.
  • Method Details