Interface PlatformGridResource

All Superinterfaces:
GridResource
All Known Implementing Classes:
AbstractPlatformGridResource, FluidGridResource, ItemGridResource

@API(status=STABLE, since="2.0.0-milestone.2.6") public interface PlatformGridResource extends GridResource
  • Method Details

    • canExtract

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

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

      void onScroll(GridScrollMode scrollMode, GridScrollingStrategy scrollingStrategy)
    • render

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

      String getDisplayedAmount(GridView view)
    • getAmountInTooltip

      String getAmountInTooltip(GridView view)
    • belongsToResourceType

      boolean belongsToResourceType(ResourceType resourceType)
    • getTooltip

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

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

      int getRegistryId()
    • getExtractionHints

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

      @Nullable @API(status=INTERNAL) PlatformResourceKey getResourceForRecipeMods()