Class ItemGridResource
java.lang.Object
com.refinedmods.refinedstorage.common.api.grid.view.AbstractPlatformGridResource<ItemResource>
com.refinedmods.refinedstorage.common.grid.view.ItemGridResource
- All Implemented Interfaces:
GridResource
,PlatformGridResource
-
Field Summary
Fields inherited from class com.refinedmods.refinedstorage.common.api.grid.view.AbstractPlatformGridResource
resource
-
Constructor Summary
ConstructorDescriptionItemGridResource
(ItemResource resource, net.minecraft.world.item.ItemStack itemStack, String name, Map<GridResourceAttributeKey, Set<String>> attributes, boolean autocraftable) -
Method Summary
Modifier and TypeMethodDescriptionboolean
belongsToResourceType
(ResourceType resourceType) boolean
canExtract
(net.minecraft.world.item.ItemStack carriedStack, GridView view) getAmountInTooltip
(GridView view) getDisplayedAmount
(GridView view) List
<net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent> getExtractionHints
(net.minecraft.world.item.ItemStack carriedStack, GridView view) net.minecraft.world.item.ItemStack
int
List
<net.minecraft.network.chat.Component> Optional
<net.minecraft.world.inventory.tooltip.TooltipComponent> void
onExtract
(GridExtractMode extractMode, boolean cursor, GridExtractionStrategy extractionStrategy) void
onScroll
(GridScrollMode scrollMode, GridScrollingStrategy scrollingStrategy) void
render
(net.minecraft.client.gui.GuiGraphics graphics, int x, int y) Methods inherited from class com.refinedmods.refinedstorage.common.api.grid.view.AbstractPlatformGridResource
getAmount, getAttribute, getName, getResourceForRecipeMods, getTrackedResource, isAutocraftable, toString
-
Constructor Details
-
ItemGridResource
public ItemGridResource(ItemResource resource, net.minecraft.world.item.ItemStack itemStack, String name, Map<GridResourceAttributeKey, Set<String>> attributes, boolean autocraftable)
-
-
Method Details
-
getItemStack
public net.minecraft.world.item.ItemStack getItemStack() -
getItemResource
-
getRegistryId
public int getRegistryId() -
getExtractionHints
-
getAutocraftingRequest
-
canExtract
-
onExtract
public void onExtract(GridExtractMode extractMode, boolean cursor, GridExtractionStrategy extractionStrategy) -
onScroll
-
render
public void render(net.minecraft.client.gui.GuiGraphics graphics, int x, int y) -
getDisplayedAmount
-
getAmountInTooltip
-
belongsToResourceType
-
getTooltip
-
getTooltipImage
-