Klasse PlayerHitConstructionEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.world.PlayerConstructionEvent
net.risingworld.api.events.player.world.PlayerHitConstructionEvent
- Alle implementierten Schnittstellen:
Cancellable
Called when a player hits a construction element (e.g planks, beams, posters etc).
- Siehe auch:
-
Feldübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets the construction element.short
Gets the amount of damage the player causes by hitting the construction element.Gets the world coordinates where the construction element was hit exactly.void
setDamage
(short damage) Sets the amount of damage the player should inflict with this hit.Von Klasse geerbte Methoden net.risingworld.api.events.player.world.PlayerConstructionEvent
getChunkPositionX, getChunkPositionY, getChunkPositionZ, getConstructionDefinition, getGlobalID, getTexture, getTypeID, isCancelled, setCancelled
Von Klasse geerbte Methoden net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Methodendetails
-
getDamage
public short getDamage()Gets the amount of damage the player causes by hitting the construction element.- Gibt zurück:
- the amount of damage dealt with this hit.
-
setDamage
public void setDamage(short damage) Sets the amount of damage the player should inflict with this hit.- Parameter:
damage
- the new amount of damage.
-
getHitPosition
Gets the world coordinates where the construction element was hit exactly.- Gibt zurück:
- coordinates where the construction element was hit.
-
getConstructionElement
Beschreibung aus Klasse kopiert:PlayerConstructionEvent
Gets the construction element.- Setzt außer Kraft:
getConstructionElement
in KlassePlayerConstructionEvent
- Gibt zurück:
- the construction element.
-