Class AbstractItemGridResourceFactory
java.lang.Object
com.refinedmods.refinedstorage.common.grid.view.AbstractItemGridResourceFactory
- All Implemented Interfaces:
GridResourceFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(ResourceKey resource, boolean autocraftable) Transforms aResourceKey
into aGridResource
.abstract String
getModId
(net.minecraft.world.item.ItemStack itemStack) getModName
(String modId)
-
Constructor Details
-
AbstractItemGridResourceFactory
public AbstractItemGridResourceFactory()
-
-
Method Details
-
apply
Description copied from interface:GridResourceFactory
Transforms aResourceKey
into aGridResource
.- Specified by:
apply
in interfaceGridResourceFactory
- Parameters:
resource
- the resourceautocraftable
- whether the resource is autocraftable- Returns:
- the grid resource, if applicable
-
getModId
-
getModName
-