Interface IAssetProvider
- All Known Implementing Classes:
DefaultAssetProvider,TestAssetProvider
public interface IAssetProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final DefaultAssetProvider -
Method Summary
Modifier and TypeMethodDescription<T extends IAsset>
TgetAsset(IAssetType<T> assetType) Provide custom assets tostatic <T extends IAsset>
TgetAsset(IAssetProvider provider, IAssetType<T> type)
-
Field Details
-
DEFAULT_LOCATION
static final net.minecraft.resources.ResourceLocation DEFAULT_LOCATION -
DEFAULT_LOCATION_ALT
static final net.minecraft.resources.ResourceLocation DEFAULT_LOCATION_ALT -
DEFAULT_PROVIDER
-
-
Method Details
-
getAsset
-
getAsset
Provide custom assets to- Parameters:
assetType- The assets type requested- Returns:
- The IAsset requested, if you don't wish to have a custom assets, return null
-