public class PlayerBlockLocationEvent
extends org.spongepowered.api.event.impl.AbstractEvent
implements org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent, org.spongepowered.api.event.Cancellable
| Constructor and Description |
|---|
PlayerBlockLocationEvent(org.spongepowered.api.event.cause.Cause cause,
org.spongepowered.api.entity.living.player.Player player,
SimpleLocation from,
SimpleLocation to) |
PlayerBlockLocationEvent(org.spongepowered.api.entity.living.player.Player player,
SimpleLocation from,
SimpleLocation to) |
| Modifier and Type | Method and Description |
|---|---|
org.spongepowered.api.event.cause.Cause |
getCause() |
SimpleLocation |
getFrom() |
org.spongepowered.api.entity.living.player.Player |
getTargetEntity() |
SimpleLocation |
getTo() |
boolean |
isCancelled() |
void |
setCancelled(boolean cancel) |
public PlayerBlockLocationEvent(org.spongepowered.api.event.cause.Cause cause,
org.spongepowered.api.entity.living.player.Player player,
SimpleLocation from,
SimpleLocation to)
public PlayerBlockLocationEvent(org.spongepowered.api.entity.living.player.Player player,
SimpleLocation from,
SimpleLocation to)
public SimpleLocation getFrom()
public SimpleLocation getTo()
public org.spongepowered.api.event.cause.Cause getCause()
getCause in interface org.spongepowered.api.event.Eventpublic boolean isCancelled()
isCancelled in interface org.spongepowered.api.event.Cancellablepublic void setCancelled(boolean cancel)
setCancelled in interface org.spongepowered.api.event.Cancellablepublic org.spongepowered.api.entity.living.player.Player getTargetEntity()
getTargetEntity in interface org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEventgetTargetEntity in interface org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEventgetTargetEntity in interface org.spongepowered.api.event.entity.living.TargetLivingEventgetTargetEntity in interface org.spongepowered.api.event.entity.TargetEntityEvent