Class RequestBasedInteraction

All Implemented Interfaces:
IInteractionResponseHandler, net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class RequestBasedInteraction extends ServerCitizenInteraction
The request based interaction response handler.
  • Constructor Details

    • RequestBasedInteraction

      public RequestBasedInteraction(net.minecraft.network.chat.Component inquiry, IChatPriority priority, net.minecraft.network.chat.Component validator, IToken<?> token)
      The server interaction response handler.
      Parameters:
      inquiry - the client inquiry.
      priority - the interaction priority.
      validator - the validator id.
      token - the token this is related to.
    • RequestBasedInteraction

      public RequestBasedInteraction(net.minecraft.network.chat.Component inquiry, IChatPriority priority, IToken<?> token)
      The server interaction response handler.
      Parameters:
      inquiry - the client inquiry.
      priority - the interaction priority.
      token - the token this is related to.
    • RequestBasedInteraction

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