Uses of Class
net.risingworld.api.objects.world.ConstructionElement
Packages that use ConstructionElement
Package
Description
-
Uses of ConstructionElement in net.risingworld.api
Methods in net.risingworld.api that return ConstructionElementModifier and TypeMethodDescriptionstatic ConstructionElementWorld.createConstructionElement(int shape, int texture, float textureScale, int color, Vector3f worldPosition, Quaternion rotation, Vector3f scale) Spawns a new construction element (i.e a block) at a given position.static ConstructionElementWorld.createConstructionElement(int shape, int texture, float textureScale, int color, Vector3f worldPosition, Quaternion rotation, Vector3f scale, Vector3f surfaceOffset, Vector3f surfaceScale) Spawns a new construction element (i.e a block) at a given position.static ConstructionElementWorld.createConstructionElement(int shape, int texture, float textureScale, int color, Vector3i chunkPosition, Vector3i blockPosition, Quaternion rotation, Vector3f scale) Spawns a new construction element (i.e a block) at a given position.static ConstructionElementWorld.getConstructionElement(long globalID, int cx, int cy, int cz) Gets a construction element that is placed in the world. -
Uses of ConstructionElement in net.risingworld.api.events.player.world
Methods in net.risingworld.api.events.player.world that return ConstructionElementModifier and TypeMethodDescriptionPlayerChangeConstructionColorEvent.getConstructionElement()protected ConstructionElementPlayerConstructionEvent.getConstructionElement()Gets the construction element.PlayerCreativeRemoveConstructionEvent.getConstructionElement()PlayerDestroyConstructionEvent.getConstructionElement()PlayerEditConstructionEvent.getConstructionElement()PlayerHitConstructionEvent.getConstructionElement()protected ConstructionElementPlayerPlaceConstructionEvent.getConstructionElement()Note: This function returns null because the construction element had not yet been created at the time of the event!
To access information (like position, rotation etc), please check out the other functions of this eventPlayerRemoveConstructionEvent.getConstructionElement() -
Uses of ConstructionElement in net.risingworld.api.objects.world
Methods in net.risingworld.api.objects.world that return ConstructionElementModifier and TypeMethodDescriptionChunk.getAllConstructionElements()Gets all construction elements in this chunk (e.g blocks, cylinders, window frames etc).