Uses of Class
net.risingworld.api.objects.WorldItem
Package
Description
-
Uses of WorldItem in net.risingworld.api
Modifier and TypeMethodDescriptionstatic WorldItem
World.findNearestItem
(short itemID, Vector3f position) static WorldItem
World.findNearestItem
(Vector3f position) Gets the world item which has the shortest distance to a position.static WorldItem[]
World.getAllItems()
Gets all world items (i.e items that were either spawned through thespawnItem()
method or items that have been dropped by players).static WorldItem[]
World.getAllItemsInArea
(Area area) static WorldItem[]
World.getAllItemsInRange
(Vector3f position, float range) Gets all world items (i.e items that were either spawned through thespawnItem()
method or items that have been dropped by players) which are in range to a specific world position.static WorldItem
World.getItem
(long globalID) static WorldItem
World.spawnClothingItem
(short clothingID, int variant, int stack, int color, long infoID, Vector3f position, Quaternion rotation, boolean physical) Spawns a global clothing item in the world, i.e an item which represents a garment.static WorldItem
World.spawnConstructionItem
(byte constructionID, int texture, int stack, int color, Vector3f position, Quaternion rotation, boolean physical) static WorldItem
World.spawnItem
(short itemID, int texture, int stack, Vector3f position, Quaternion rotation, boolean physical) Spawns an item in the world.static WorldItem
World.spawnObjectItem
(short objectID, int variant, int stack, Vector3f position, Quaternion rotation, boolean physical) Spawns an object item in the world, i.e an item which represents an object. -
Uses of WorldItem in net.risingworld.api.events.player
Modifier and TypeMethodDescriptionPlayerHitItemEvent.getItem()
Gets the world item that was hit by the player.PlayerPickupItemEvent.getItem()
Gets the item the player wants to pick up.PlayerDropItemEvent.getWorldItem()
Gets the newly created world item representation of the item that is about to be dropped.PlayerDropItemFromStorageEvent.getWorldItem()
Gets the newly created world item representation of the item that is about to be dropped. -
Uses of WorldItem in net.risingworld.api.events.world
Modifier and TypeMethodDescriptionItemTransformEvent.getItem()
Gets the world item that's about to transform.ExplosionEvent.getRelatedItem()
Gets the related item which caused this explosion (e.g tnt). -
Uses of WorldItem in net.risingworld.api.objects
Modifier and TypeMethodDescriptionMetaObject.getItems()
Gets an array containing all items which are currently associated with this meta object (usually these are the items which are placed in this object, e.g ores in a furnace etc).