Class PlayerPlaceWaterEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.world.PlayerWorldEditEvent
net.risingworld.api.events.player.world.PlayerPlaceWaterEvent
- All Implemented Interfaces:
Cancellable
Called when a player places water in the world.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionintGets the id of the water block the player wants to place.voidsetWaterID(int waterID) Changes the water block id to another id.Methods inherited from class net.risingworld.api.events.player.world.PlayerWorldEditEvent
getBlockPositionX, getBlockPositionY, getBlockPositionZ, getChunkPositionX, getChunkPositionY, getChunkPositionZ, isCancelled, setCancelledMethods inherited from class net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Method Details
-
getWaterID
public int getWaterID()Gets the id of the water block the player wants to place.- Returns:
- the water block id.
-
setWaterID
public void setWaterID(int waterID) Changes the water block id to another id.- Parameters:
waterID- the new water block id.
-