Interface GridResourceFactory
- All Known Implementing Classes:
AbstractFluidGridResourceFactory
,AbstractItemGridResourceFactory
,CompositeGridResourceFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@API(status=STABLE,
since="2.0.0-milestone.2.6")
public interface GridResourceFactory
Transforms resources into
GridResource
s.-
Method Summary
Modifier and TypeMethodDescriptionapply
(ResourceKey resource, boolean autocraftable) Transforms aResourceKey
into aGridResource
.
-
Method Details
-
apply
Transforms aResourceKey
into aGridResource
.- Parameters:
resource
- the resourceautocraftable
- whether the resource is autocraftable- Returns:
- the grid resource, if applicable
-