Class InteractionResponseHandlerManager

java.lang.Object
com.minecolonies.core.colony.interactionhandling.registry.InteractionResponseHandlerManager
All Implemented Interfaces:
IInteractionResponseHandlerDataManager

public final class InteractionResponseHandlerManager extends Object implements IInteractionResponseHandlerDataManager
Manager creating and loading an instance of the interactionResponseHandler from NBT.
  • Constructor Details

    • InteractionResponseHandlerManager

      public InteractionResponseHandlerManager()
  • Method Details

    • createFrom

      @Nullable public @Nullable IInteractionResponseHandler createFrom(@NotNull @NotNull ICitizen citizen, @NotNull @NotNull net.minecraft.nbt.CompoundTag compound)
      Description copied from interface: IInteractionResponseHandlerDataManager
      Create an interactionResponseHandler from saved CompoundTag data.
      Specified by:
      createFrom in interface IInteractionResponseHandlerDataManager
      Parameters:
      citizen - The citizen that owns the interaction response handler..
      compound - The CompoundTag containing the saved interaction data.
      Returns:
      New InteractionResponseHandler created from the data, or null.