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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable IInteractionResponseHandlercreateFrom(net.minecraft.core.HolderLookup.Provider provider, @NotNull ICitizen citizen, @NotNull net.minecraft.nbt.CompoundTag compound) Create an interactionResponseHandler from saved CompoundTag data.
-
Constructor Details
-
InteractionResponseHandlerManager
public InteractionResponseHandlerManager()
-
-
Method Details
-
createFrom
@Nullable public @Nullable IInteractionResponseHandler createFrom(@NotNull net.minecraft.core.HolderLookup.Provider provider, @NotNull @NotNull ICitizen citizen, @NotNull @NotNull net.minecraft.nbt.CompoundTag compound) Description copied from interface:IInteractionResponseHandlerDataManagerCreate an interactionResponseHandler from saved CompoundTag data.- Specified by:
createFromin interfaceIInteractionResponseHandlerDataManager- 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.
-