Package net.risingworld.api.assets
Klasse ModelAsset
java.lang.Object
net.risingworld.api.assets.Asset
net.risingworld.api.assets.ModelAsset
Represents a 3D model file. A model typically consists of a single mesh.
Supported file formats: zip, fbx, obj, stl, ply, 3mf, gltf
Supported file formats: zip, fbx, obj, stl, ply, 3mf, gltf
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen net.risingworld.api.assets.Asset
Asset.Source, Asset.Type
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final ModelAsset
An arrow with a length of 1, facing backward (towards -Z)static final ModelAsset
An arrow with a length of 1, facing down (towards -Y)static final ModelAsset
An arrow with a length of 1, facing forward (towards Z)static final ModelAsset
An arrow with a length of 1, facing left (towards -X)static final ModelAsset
An arrow with a length of 1, facing right (towards X)static final ModelAsset
An arrow with a length of 1, facing up (towards Y)static final ModelAsset
A boxstatic final ModelAsset
An double-sided boxstatic final ModelAsset
The frame / edges of a boxstatic final ModelAsset
A cylinderstatic final ModelAsset
A quad with a size of 1x1, facing upwards (y)static final ModelAsset
A quad with a size of 1x1, facing forward (z)static final ModelAsset
A sphereVon Klasse geerbte Felder net.risingworld.api.assets.Asset
DEFAULT_EXTENSION
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ModelAsset
loadFromFile
(String file) Loads a model from a file.static ModelAsset
loadFromFile
(String file, ModelImportSettings settings) static ModelAsset
loadFromGame
(String path) Loads a mesh from the game assets.Von Klasse geerbte Methoden net.risingworld.api.assets.Asset
dispose, equals, getChecksum, getDependency, getExtension, getHandle, getPath, getSource, getType, hashCode, isDisposed
-
Felddetails
-
Cube
A box -
CubeDoubleSided
An double-sided box -
CubeFrame
The frame / edges of a box -
Sphere
A sphere -
Cylinder
A cylinder -
Quad
A quad with a size of 1x1, facing forward (z) -
Plane
A quad with a size of 1x1, facing upwards (y) -
ArrowForward
An arrow with a length of 1, facing forward (towards Z) -
ArrowBack
An arrow with a length of 1, facing backward (towards -Z) -
ArrowRight
An arrow with a length of 1, facing right (towards X) -
ArrowLeft
An arrow with a length of 1, facing left (towards -X) -
ArrowUp
An arrow with a length of 1, facing up (towards Y) -
ArrowDown
An arrow with a length of 1, facing down (towards -Y)
-
-
Methodendetails
-
loadFromGame
Loads a mesh from the game assets. This is quite efficient because the server doesn't have to send any data to the clients.- Parameter:
path
- the path to the game mesh / model.- Gibt zurück:
- a new model asset instance.
-
loadFromFile
Loads a model from a file.- Parameter:
file
- the path to the model file.- Gibt zurück:
- a new model asset instance.
-
loadFromFile
-