Class StandardRequests.ToolRequest
java.lang.Object
com.minecolonies.core.colony.requestsystem.requests.AbstractRequest<Tool>
com.minecolonies.core.colony.requestsystem.requests.StandardRequests.ToolRequest
- Enclosing class:
- StandardRequests
Generic Tool Request.
-
Field Summary
Fields inherited from class com.minecolonies.core.colony.requestsystem.requests.AbstractRequest
MISSING -
Constructor Summary
ConstructorsConstructorDescriptionToolRequest(@NotNull IRequester requester, @NotNull IToken<?> token, @NotNull RequestState state, @NotNull Tool requested) ToolRequest(@NotNull IRequester requester, @NotNull IToken<?> token, @NotNull Tool requested) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.network.chat.ComponentMethod used to get aComponentthat can be displayed to the Player and describes so that the player can complete it.@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, getDisplayStacks, getId, 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
-
ToolRequest
public ToolRequest(@NotNull @NotNull IRequester requester, @NotNull @NotNull IToken<?> token, @NotNull @NotNull Tool requested) -
ToolRequest
public ToolRequest(@NotNull @NotNull IRequester requester, @NotNull @NotNull IToken<?> token, @NotNull @NotNull RequestState state, @NotNull @NotNull Tool requested)
-
-
Method Details
-
getLongDisplayString
@NotNull public @NotNull net.minecraft.network.chat.Component getLongDisplayString()Description copied from interface:IRequestMethod used to get aComponentthat can be displayed to the Player and describes so that the player can complete it. Should represent the request, in case the player needs to fulfill it, or information about this request is required.- Specified by:
getLongDisplayStringin interfaceIRequest<Tool>- Overrides:
getLongDisplayStringin classAbstractRequest<Tool>- Returns:
- The text that describes this Request.
-
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.
-