Package net.risingworld.api.definitions
Klasse Constructions.ConstructionDefinition
java.lang.Object
net.risingworld.api.definitions.Constructions.ConstructionDefinition
- Umschließende Klasse:
Constructions
-
Feldübersicht
Modifizierer und TypFeldBeschreibungshort
Base strength of the construction element (+additional strength depending on material)Optional asset path to the debris prefabbyte
Internal type ID of the constructionboolean
If true, this construction element does not get baked into the construction mesh, instead it has a separate game objectPath to the mesh assetName of the constructionboolean
Determines if the current element rotation should be taken into account when looking for the most suitable world pivot (in auto mode)Related item (which represents this construction element)boolean
If true, the current selector rotation will be reset after placing this elementboolean
If true, the mesh will keep its proportions when resizing it (useful for windows, for example)Determines if this element can be placed in a row (defines which axes are supported)Determines in which direction(s) the elements will be resized if the player wants to resize it along xDetermines in which direction(s) the elements will be resized if the player wants to resize it along yDetermines in which direction(s) the elements will be resized if the player wants to resize it along zConstruction shape typeInitial size of this element when first holding it in hands (relevant for selector)int[]
boolean
If true, this element supports separate surface editing (i.e.boolean
If true, this element has a separate thickness parameter that can be changed while buildingTiling modeConstruction type -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetIcon
(int texture) Gets the ingame icon of this construction element as TextureAsset.void
-
Felddetails
-
id
public byte idInternal type ID of the construction -
name
Name of the construction -
type
Construction type -
shapetype
Construction shape type -
tilingmode
Tiling mode -
meshpath
Path to the mesh asset -
basestrength
public short basestrengthBase strength of the construction element (+additional strength depending on material) -
isseparategeometry
public boolean isseparategeometryIf true, this construction element does not get baked into the construction mesh, instead it has a separate game object -
scaleaxisx
Determines in which direction(s) the elements will be resized if the player wants to resize it along x -
scaleaxisy
Determines in which direction(s) the elements will be resized if the player wants to resize it along y -
scaleaxisz
Determines in which direction(s) the elements will be resized if the player wants to resize it along z -
resizekeepproportions
public boolean resizekeepproportionsIf true, the mesh will keep its proportions when resizing it (useful for windows, for example) -
supportssurfaceedit
public boolean supportssurfaceeditIf true, this element supports separate surface editing (i.e. ability to move and scale the surface independent of the rest) -
supportsthickness
public boolean supportsthicknessIf true, this element has a separate thickness parameter that can be changed while building -
resetrotationafterplace
public boolean resetrotationafterplaceIf true, the current selector rotation will be reset after placing this element -
rowplacement
Determines if this element can be placed in a row (defines which axes are supported) -
supportedblocktypes
-
supportedtextures
public int[] supportedtextures -
startsize
Initial size of this element when first holding it in hands (relevant for selector) -
pivotaxisflip
-
pivotincluderotation
public boolean pivotincluderotationDetermines if the current element rotation should be taken into account when looking for the most suitable world pivot (in auto mode) -
pivotasset
-
debris
Optional asset path to the debris prefab
-
-
Methodendetails
-
synchronize
public void synchronize() -
getIcon
Gets the ingame icon of this construction element as TextureAsset.- Parameter:
texture
- the construction element texture.- Gibt zurück:
- the icon of this construction element.
-