Interface IAssetOrigin
- Namespace
 - Vintagestory.API.Common
 
- Assembly
 - VintagestoryAPI.dll
 
public interface IAssetOrigin
  - Extension Methods
 
Properties
OriginPath
string OriginPath { get; }
  Property Value
Methods
GetAssets(AssetCategory, bool)
Returns all assets of the given category which can be found in this origin
List<IAsset> GetAssets(AssetCategory category, bool shouldLoad = true)
  Parameters
categoryAssetCategoryshouldLoadbool
Returns
GetAssets(AssetLocation, bool)
Returns all assets of the given base location path which can be found in this origin
List<IAsset> GetAssets(AssetLocation baseLocation, bool shouldLoad = true)
  Parameters
baseLocationAssetLocationshouldLoadbool
Returns
IsAllowedToAffectGameplay()
Resource packs are not allowed to affect gameplay
bool IsAllowedToAffectGameplay()
  Returns
LoadAsset(IAsset)
Loads the asset into memeory.
void LoadAsset(IAsset asset)
  Parameters
assetIAssetThe asset to be loaded
TryLoadAsset(IAsset)
Attempts to load the asset. Returns false if it fails.
bool TryLoadAsset(IAsset asset)
  Parameters
assetIAssetThe asset to be loaded.