Class StandardInteraction
java.lang.Object
com.minecolonies.api.colony.interactionhandling.AbstractInteractionResponseHandler
com.minecolonies.core.colony.interactionhandling.ServerCitizenInteraction
com.minecolonies.core.colony.interactionhandling.StandardInteraction
- All Implemented Interfaces:
IInteractionResponseHandler,net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- Direct Known Subclasses:
QuestDialogueInteraction,SimpleNotificationInteraction
The server side interaction response handler.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringStandard responsesstatic final Stringstatic final StringFields inherited from class com.minecolonies.core.colony.interactionhandling.ServerCitizenInteraction
parents, validatorId -
Constructor Summary
ConstructorsConstructorDescriptionStandardInteraction(ICitizen data) Way to load the response handler for a citizen.StandardInteraction(net.minecraft.network.chat.Component inquiry, IChatPriority priority) The server interaction response handler.StandardInteraction(net.minecraft.network.chat.Component inquiry, net.minecraft.network.chat.Component validator, IChatPriority priority) The server interaction response handler with custom validator. -
Method Summary
Modifier and TypeMethodDescriptionGen all child interactions related to this.getType()Type id used to deserialize.Methods inherited from class com.minecolonies.core.colony.interactionhandling.ServerCitizenInteraction
addParent, deserializeNBT, getId, isValid, isVisible, loadValidator, onClientResponseTriggered, onServerResponseTriggered, removeParent, serializeNBTMethods inherited from class com.minecolonies.api.colony.interactionhandling.AbstractInteractionResponseHandler
getInquiry, getPossibleResponses, getPriority, getResponseResult, isPrimaryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.colony.interactionhandling.IInteractionResponseHandler
getInquiry, getInteractionIcon, onClosed, onOpened, onWindowOpened
-
Field Details
-
INTERACTION_R_OKAY
Standard responses- See Also:
-
INTERACTION_R_IGNORE
- See Also:
-
INTERACTION_R_REMIND
- See Also:
-
INTERACTION_R_SKIP
- See Also:
-
-
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
The server interaction response handler.- Parameters:
inquiry- the client inquiry.priority- the interaction priority.
-
StandardInteraction
Way to load the response handler for a citizen.- Parameters:
data- the citizen owning this handler.
-
-
Method Details
-
genChildInteractions
Description copied from interface:IInteractionResponseHandlerGen all child interactions related to this.- Returns:
- all child interactions.
-
getType
Description copied from interface:IInteractionResponseHandlerType id used to deserialize.- Returns:
- the string type.
-