Interface PatternProviderExternalPatternSink
- All Known Subinterfaces:
PlatformPatternProviderExternalPatternSink
- All Known Implementing Classes:
AutocrafterBlockEntity
@API(status=STABLE,
since="2.0.0-milestone.4.12")
public interface PatternProviderExternalPatternSink
-
Method Summary
Modifier and TypeMethodDescriptionaccept(Collection<ResourceAmount> resources, Action action) default booleanapplies(ResourceKey resource) Used to determine the ordering of sinks when inserting multiple resource types.
-
Method Details
-
accept
-
applies
Used to determine the ordering of sinks when inserting multiple resource types.- Parameters:
resource- the resource- Returns:
- true if this sink can accept the given resource type
-