Class QuestDeliveryInteraction
java.lang.Object
com.minecolonies.api.colony.interactionhandling.AbstractInteractionResponseHandler
com.minecolonies.core.colony.interactionhandling.ServerCitizenInteraction
com.minecolonies.core.colony.interactionhandling.StandardInteraction
com.minecolonies.core.colony.interactionhandling.QuestDialogueInteraction
com.minecolonies.core.colony.interactionhandling.QuestDeliveryInteraction
- All Implemented Interfaces:
IInteractionResponseHandler,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
More specific quest dialogue interaction that also tries to fulfill a deliver request.
-
Field Summary
Fields inherited from class com.minecolonies.core.colony.interactionhandling.QuestDialogueInteraction
citizen, colonyQuest, currentElement, finished, index, questId, startElementFields inherited from class com.minecolonies.core.colony.interactionhandling.StandardInteraction
INTERACTION_R_IGNORE, INTERACTION_R_OKAY, INTERACTION_R_REMIND, INTERACTION_R_SKIPFields inherited from class com.minecolonies.core.colony.interactionhandling.ServerCitizenInteraction
parents, validatorId -
Constructor Summary
ConstructorsConstructorDescriptionQuestDeliveryInteraction(net.minecraft.network.chat.Component inquiry, IChatPriority priority, net.minecraft.resources.ResourceLocation location, int index, ICitizenData citizenData) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationGets the icon to render for this interactiongetType()Type id used to deserialize.booleanonClientResponseTriggered(int responseId, net.minecraft.world.entity.player.Player player, ICitizenDataView data, com.ldtteam.blockui.views.BOWindow window) Client side action triggered on a possible response.voidonOpened(net.minecraft.world.entity.player.Player player) Trigger on opening the interaction.voidonServerResponseTriggered(int responseId, net.minecraft.world.entity.player.Player player, ICitizenData data) Server side action triggered on a possible response.Methods inherited from class com.minecolonies.core.colony.interactionhandling.QuestDialogueInteraction
deserializeNBT, getId, getInquiry, getPossibleResponses, isValid, isVisible, onClosed, serializeNBTMethods inherited from class com.minecolonies.core.colony.interactionhandling.StandardInteraction
genChildInteractionsMethods inherited from class com.minecolonies.core.colony.interactionhandling.ServerCitizenInteraction
addParent, loadValidator, removeParentMethods inherited from class com.minecolonies.api.colony.interactionhandling.AbstractInteractionResponseHandler
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, onWindowOpened
-
Constructor Details
-
QuestDeliveryInteraction
public QuestDeliveryInteraction(net.minecraft.network.chat.Component inquiry, IChatPriority priority, net.minecraft.resources.ResourceLocation location, int index, ICitizenData citizenData) -
QuestDeliveryInteraction
-
-
Method Details
-
onServerResponseTriggered
public void onServerResponseTriggered(int responseId, net.minecraft.world.entity.player.Player player, ICitizenData data) Description copied from interface:IInteractionResponseHandlerServer side action triggered on a possible response.- Specified by:
onServerResponseTriggeredin interfaceIInteractionResponseHandler- Overrides:
onServerResponseTriggeredin classQuestDialogueInteraction- Parameters:
responseId- the clicked string response of the player.player- the world it was triggered in.data- the citizen related to it.
-
onClientResponseTriggered
public boolean onClientResponseTriggered(int responseId, net.minecraft.world.entity.player.Player player, ICitizenDataView data, com.ldtteam.blockui.views.BOWindow window) Description copied from interface:IInteractionResponseHandlerClient side action triggered on a possible response.- Specified by:
onClientResponseTriggeredin interfaceIInteractionResponseHandler- Overrides:
onClientResponseTriggeredin classQuestDialogueInteraction- Parameters:
responseId- the clicked index.player- the client side world.data- the citizen data assigned to it.window- the window it was triggered in.- Returns:
- if wishing to continue interacting.
-
onOpened
public void onOpened(net.minecraft.world.entity.player.Player player) Description copied from interface:IInteractionResponseHandlerTrigger on opening the interaction.- Specified by:
onOpenedin interfaceIInteractionResponseHandler- Overrides:
onOpenedin classQuestDialogueInteraction
-
getType
Description copied from interface:IInteractionResponseHandlerType id used to deserialize.- Specified by:
getTypein interfaceIInteractionResponseHandler- Overrides:
getTypein classQuestDialogueInteraction- Returns:
- the string type.
-
getInteractionIcon
public net.minecraft.resources.ResourceLocation getInteractionIcon()Description copied from interface:IInteractionResponseHandlerGets the icon to render for this interaction- Specified by:
getInteractionIconin interfaceIInteractionResponseHandler- Overrides:
getInteractionIconin classQuestDialogueInteraction- Returns:
- resourcelocation for icon
-