Class PosBasedInteraction

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

public class PosBasedInteraction extends ServerCitizenInteraction
The position based interaction response handler.
  • Constructor Details

    • PosBasedInteraction

      public PosBasedInteraction(net.minecraft.network.chat.Component inquiry, IChatPriority priority, net.minecraft.network.chat.Component validator, net.minecraft.core.BlockPos pos)
      The server interaction response handler.
      Parameters:
      inquiry - the client inquiry.
      priority - the interaction priority.
      pos - the pos this is related to.
      validator - the validator id.
    • PosBasedInteraction

      public PosBasedInteraction(net.minecraft.network.chat.Component inquiry, IChatPriority priority, net.minecraft.core.BlockPos pos)
      The server interaction response handler.
      Parameters:
      inquiry - the client inquiry.
      priority - the interaction priority.
      pos - the pos this is related to.
    • PosBasedInteraction

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