Class StandardRequests.ItemStackListRequest
java.lang.Object
com.minecolonies.core.colony.requestsystem.requests.AbstractRequest<StackList>
com.minecolonies.core.colony.requestsystem.requests.StandardRequests.ItemStackListRequest
- Enclosing class:
- StandardRequests
Request for a list of potential candidates.
-
Field Summary
Fields inherited from class com.minecolonies.core.colony.requestsystem.requests.AbstractRequest
MISSING -
Constructor Summary
ConstructorsConstructorDescriptionItemStackListRequest(@NotNull IRequester requester, @NotNull IToken<?> token, @NotNull RequestState state, @NotNull StackList requested) Constructor of the request.ItemStackListRequest(@NotNull IRequester requester, @NotNull IToken<?> token, @NotNull StackList requested) Constructor of the request. -
Method Summary
Modifier and TypeMethodDescription@NotNull List<net.minecraft.world.item.ItemStack>Method used to get a List of ItemStacks that represents the stack.@NotNull net.minecraft.network.chat.ComponentMethod used to get aComponentthat can be displayed to the Player and describes the request in short.Methods inherited from class com.minecolonies.core.colony.requestsystem.requests.AbstractRequest
addChild, addChildren, addChildren, addDelivery, addDelivery, canBeDelivered, childStateUpdated, equals, getChildren, getDeliveries, getDisplayIcon, getId, getLongDisplayString, getParent, getRequest, getRequester, getRequestOfType, getResolverToolTip, getResult, getState, getSuperClasses, getType, hasChildren, hashCode, hasParent, hasResult, overrideCurrentDeliveries, removeChild, removeChildren, removeChildren, resetDeliveries, setParent, setResult, setStateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.colony.requestsystem.request.IRequest
getStrategy
-
Constructor Details
-
ItemStackListRequest
public ItemStackListRequest(@NotNull @NotNull IRequester requester, @NotNull @NotNull IToken<?> token, @NotNull @NotNull StackList requested) Constructor of the request.- Parameters:
requester- the requester.token- the token assigned to this request.requested- the request data.
-
ItemStackListRequest
public ItemStackListRequest(@NotNull @NotNull IRequester requester, @NotNull @NotNull IToken<?> token, @NotNull @NotNull RequestState state, @NotNull @NotNull StackList requested) Constructor of the request.- Parameters:
requester- the requester.token- the token assigned to this request.state- the state of the request.requested- the request data.
-
-
Method Details
-
getShortDisplayString
@NotNull public @NotNull net.minecraft.network.chat.Component getShortDisplayString()Description copied from interface:IRequestMethod used to get aComponentthat can be displayed to the Player and describes the request in short. Should represent the request, in case the player needs to fulfill it, or information about this request is required.- Returns:
- The text that describes this Request.
-
getDisplayStacks
Description copied from interface:IRequestMethod used to get a List of ItemStacks that represents the stack. This list is used in GUI to show what the request is. If an empty list is returned then no stack is shown. If a list with multiple stacks is returned it will switch between the stacks once every second unless the player holds the shift key.- Specified by:
getDisplayStacksin interfaceIRequest<StackList>- Overrides:
getDisplayStacksin classAbstractRequest<StackList>- Returns:
- A List of ItemStacks that represents this request.
-