Class FluidGridResource
java.lang.Object
com.refinedmods.refinedstorage.common.api.grid.view.AbstractPlatformGridResource<FluidResource>
com.refinedmods.refinedstorage.common.grid.view.FluidGridResource
- All Implemented Interfaces:
GridResource
,PlatformGridResource
-
Field Summary
Fields inherited from class com.refinedmods.refinedstorage.common.api.grid.view.AbstractPlatformGridResource
resource
-
Constructor Summary
ConstructorDescriptionFluidGridResource
(FluidResource resource, 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) 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
-
FluidGridResource
public FluidGridResource(FluidResource resource, String name, Map<GridResourceAttributeKey, Set<String>> attributes, boolean autocraftable)
-
-
Method Details
-
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
-