Package net.risingworld.api.assets
Klasse Asset
java.lang.Object
net.risingworld.api.assets.Asset
- Bekannte direkte Unterklassen:
AssetBundle
,MaterialAsset
,MeshAsset
,ModelAsset
,ModelImportSettings
,PrefabAsset
,SoundAsset
,StyleSheetAsset
,TextureAsset
Abstract base class representing a reference to an asset.
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic enum
The asset source, i.e where it is loaded fromstatic enum
The asset type -
Feldübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
dispose()
Disposes the asset, i.e frees all resources.boolean
Gets the checksum of this asset.int
Gets the asset extension.int
Gets the internal handle of this asset.getPath()
Gets the path to the asset.getType()
int
hashCode()
boolean
Gets whether or not the asset is already disposed (i.e the resources are released).
-
Felddetails
-
DEFAULT_EXTENSION
- Siehe auch:
-
-
Methodendetails
-
getHandle
public int getHandle()Gets the internal handle of this asset.- Gibt zurück:
- the internal handle (ID).
-
getSource
-
getType
-
getDependency
public int getDependency() -
getPath
Gets the path to the asset.- Gibt zurück:
- the path to the asset.
-
getExtension
Gets the asset extension. Usually this is only relevant for files loaded from the hard drive.- Gibt zurück:
- the asset extension.
-
getChecksum
Gets the checksum of this asset.- Gibt zurück:
- the MD5 checksum, as a String.
-
isDisposed
public boolean isDisposed()Gets whether or not the asset is already disposed (i.e the resources are released). Never use disposed assets!- Gibt zurück:
- true if the asset is already disposed, false if not.
-
dispose
public boolean dispose()Disposes the asset, i.e frees all resources. Call this method if you no longer need this asset.- Gibt zurück:
- true if the asset was valid and found on native side, false if not.
-
equals
-
hashCode
public int hashCode()
-