public interface IForgeTextureAtlasSprite
Modifier and Type | Method and Description |
---|---|
default java.util.Collection<ResourceLocation> |
getDependencies() |
default boolean |
hasCustomLoader(IResourceManager manager,
ResourceLocation location)
The result of this function determines is the below 'load' function is called, and the
default vanilla loading code is bypassed completely.
|
default boolean |
load(IResourceManager manager,
ResourceLocation location,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> textureGetter)
Load the specified resource as this sprite's data.
|
default boolean hasCustomLoader(IResourceManager manager, ResourceLocation location)
manager
- Main resource managerlocation
- File resource locationdefault boolean load(IResourceManager manager, ResourceLocation location, java.util.function.Function<ResourceLocation,TextureAtlasSprite> textureGetter)
manager
- Main resource managerlocation
- File resource locationtextureGetter
- accessor for dependencies. All of them will be loaded before this onedefault java.util.Collection<ResourceLocation> getDependencies()