Class StandardRequests.ToolRequest

java.lang.Object
com.minecolonies.core.colony.requestsystem.requests.AbstractRequest<Tool>
com.minecolonies.core.colony.requestsystem.requests.StandardRequests.ToolRequest
All Implemented Interfaces:
IRequest<Tool>
Enclosing class:
StandardRequests

public static class StandardRequests.ToolRequest extends AbstractRequest<Tool>
Generic Tool Request.
  • 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: IRequest
      Method used to get a Component that 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:
      getLongDisplayString in interface IRequest<Tool>
      Overrides:
      getLongDisplayString in class AbstractRequest<Tool>
      Returns:
      The text that describes this Request.
    • getShortDisplayString

      @NotNull public @NotNull net.minecraft.network.chat.Component getShortDisplayString()
      Description copied from interface: IRequest
      Method used to get a Component that 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.