Class StandardRequests.MinStackRequest

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

public static class StandardRequests.MinStackRequest extends AbstractRequest<MinimumStack>
Request for a single ItemStack.
  • Constructor Details

    • MinStackRequest

      public MinStackRequest(@NotNull @NotNull IRequester requester, @NotNull @NotNull IToken<?> token, @NotNull @NotNull MinimumStack requested)
    • MinStackRequest

      public MinStackRequest(@NotNull @NotNull IRequester requester, @NotNull @NotNull IToken<?> token, @NotNull @NotNull RequestState state, @NotNull @NotNull MinimumStack requested)
  • Method Details

    • 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.
    • getDisplayStacks

      @NotNull public @NotNull List<net.minecraft.world.item.ItemStack> getDisplayStacks()
      Description copied from interface: IRequest
      Method 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:
      getDisplayStacks in interface IRequest<MinimumStack>
      Overrides:
      getDisplayStacks in class AbstractRequest<MinimumStack>
      Returns:
      A List of ItemStacks that represents this request.