Package net.risingworld.api.definitions
Class Constructions.ConstructionDefinition
java.lang.Object
net.risingworld.api.definitions.Constructions.ConstructionDefinition
- Enclosing class:
Constructions
-
Field Summary
Modifier and TypeFieldDescriptionshort
Base strength of the construction element (+additional strength depending on material)Construction categoryOptional asset path to the debris prefabEra/age this clothing piece belongs tobyte
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)Optional offset rotation when rendering the construction icon (default rotation will be multiplied with this optional rotation)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 -
Method Summary
Modifier and TypeMethodDescriptiongetIcon
(int texture) Gets the ingame icon of this construction element as TextureAsset.void
-
Field Details
-
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) -
era
Era/age this clothing piece belongs to -
category
Construction category -
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 -
renderrotation
Optional offset rotation when rendering the construction icon (default rotation will be multiplied with this optional rotation)
-
-
Method Details
-
synchronize
public void synchronize() -
getIcon
Gets the ingame icon of this construction element as TextureAsset.- Parameters:
texture
- the construction element texture.- Returns:
- the icon of this construction element.
-