Class ItemGridResource

All Implemented Interfaces:
GridResource, PlatformGridResource

public class ItemGridResource extends AbstractPlatformGridResource<ItemResource>
  • Constructor Details

  • Method Details

    • getItemStack

      public net.minecraft.world.item.ItemStack getItemStack()
    • getItemResource

      public ItemResource getItemResource()
    • getRegistryId

      public int getRegistryId()
    • getExtractionHints

      public List<net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent> getExtractionHints(net.minecraft.world.item.ItemStack carriedStack, GridView view)
    • getAutocraftingRequest

      @Nullable public ResourceAmount getAutocraftingRequest()
    • canExtract

      public boolean canExtract(net.minecraft.world.item.ItemStack carriedStack, GridView view)
    • onExtract

      public void onExtract(GridExtractMode extractMode, boolean cursor, GridExtractionStrategy extractionStrategy)
    • onScroll

      public void onScroll(GridScrollMode scrollMode, GridScrollingStrategy scrollingStrategy)
    • render

      public void render(net.minecraft.client.gui.GuiGraphics graphics, int x, int y)
    • getDisplayedAmount

      public String getDisplayedAmount(GridView view)
    • getAmountInTooltip

      public String getAmountInTooltip(GridView view)
    • belongsToResourceType

      public boolean belongsToResourceType(ResourceType resourceType)
    • getTooltip

      public List<net.minecraft.network.chat.Component> getTooltip()
    • getTooltipImage

      public Optional<net.minecraft.world.inventory.tooltip.TooltipComponent> getTooltipImage()