Class PlayerRemoveObjectEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.world.PlayerObjectEvent
net.risingworld.api.events.player.world.PlayerRemoveObjectEvent
- All Implemented Interfaces:
Cancellable
Called when a player removes an object (furniture, doors, lamps etc) without
destroying it (usually this is called when a player deconstructs an object, i.e.
when he picks it up by holding his interaction key or by using a sledgehammer).
Example: Check if object is a door
-
Field Summary
-
Method Summary
Methods inherited from class net.risingworld.api.events.player.world.PlayerObjectEvent
getChunkPositionX, getChunkPositionY, getChunkPositionZ, getGlobalID, getObjectDefinition, getTypeID, isCancelled, setCancelled
Methods inherited from class net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Method Details
-
getObject
Description copied from class:PlayerObjectEvent
Gets the object element.- Overrides:
getObject
in classPlayerObjectEvent
- Returns:
- the object element.
-