Interface ResourceGenerationContext
public interface ResourceGenerationContext
Information available during resource generation, passed to
InputStreamSource as they are generated.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@NonNull net.minecraft.resources.ResourceLocationdefault ResourceGenerationContext
-
Method Details
-
getCacheName
@NonNull net.minecraft.resources.ResourceLocation getCacheName()- Returns:
- a resource location unique to the
ResourceCachethis context is linked to
-
getResourceSource
- Returns:
- a tool to access resources during generation
-
withResourceSource
@NonExtendable default ResourceGenerationContext withResourceSource(ResourceGenerationContext.ResourceSource source) - Returns:
- a generation context identical to the current one, but with a different resource source
-