mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Remove superfluous javadocs
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
parent
c11905550e
commit
3c852a3c8f
49 changed files with 7 additions and 659 deletions
|
@ -80,7 +80,7 @@ public interface World {
|
||||||
*
|
*
|
||||||
* @param x X-coordinate of the block
|
* @param x X-coordinate of the block
|
||||||
* @param z Z-coordinate of the block
|
* @param z Z-coordinate of the block
|
||||||
*
|
*
|
||||||
* @return Highest non-empty block
|
* @return Highest non-empty block
|
||||||
*/
|
*/
|
||||||
public Block getHighestBlockAt(int x, int z);
|
public Block getHighestBlockAt(int x, int z);
|
||||||
|
@ -89,7 +89,7 @@ public interface World {
|
||||||
* Gets the highest non-empty block at the given coordinates
|
* Gets the highest non-empty block at the given coordinates
|
||||||
*
|
*
|
||||||
* @param location Coordinates to get the highest block
|
* @param location Coordinates to get the highest block
|
||||||
*
|
*
|
||||||
* @return Highest non-empty block
|
* @return Highest non-empty block
|
||||||
*/
|
*/
|
||||||
public Block getHighestBlockAt(Location location);
|
public Block getHighestBlockAt(Location location);
|
||||||
|
|
|
@ -33,26 +33,10 @@ public class BlockBreakEvent extends BlockEvent implements Cancellable {
|
||||||
return player;
|
return player;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block Break event is cancelled, the block will not break.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block Break event is cancelled, the block will not break.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,26 +16,10 @@ public class BlockBurnEvent extends BlockEvent implements Cancellable {
|
||||||
this.cancelled = false;
|
this.cancelled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block Burn event is cancelled, the block will not be destroyed as a result of being burnt by fire.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block Burn event is cancelled, the block will not be destroyed as a result of being burnt by fire.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancelled = cancel;
|
this.cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,26 +60,10 @@ public class BlockDamageEvent extends BlockEvent implements Cancellable {
|
||||||
return itemstack;
|
return itemstack;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block Damage event is cancelled, the block will not be damaged.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block Damage event is cancelled, the block will not be damaged.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,26 +61,10 @@ public class BlockDispenseEvent extends BlockEvent implements Cancellable {
|
||||||
velocity = vel;
|
velocity = vel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block Dispense event is cancelled, the block will not dispense the item.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block Dispense event is cancelled, the block will not dispense the item.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
cancelled = cancel;
|
cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,26 +33,10 @@ public class BlockFadeEvent extends BlockEvent implements Cancellable {
|
||||||
return newState;
|
return newState;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block Fade event is cancelled, the block will not fade, melt or disappear.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block Fade event is cancelled, the block will not fade, melt or disappear.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel blocks like snow or ice from melting or fading
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancelled = cancel;
|
this.cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,26 +44,10 @@ public class BlockFormEvent extends BlockEvent implements Cancellable {
|
||||||
return newState;
|
return newState;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block Form event is cancelled, the block will not be formed or will not spread.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block Form event is cancelled, the block will not be formed or will not spread.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel the block from forming or spreading
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancelled = cancel;
|
this.cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,26 +41,10 @@ public class BlockFromToEvent extends BlockEvent implements Cancellable {
|
||||||
return to;
|
return to;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block From To event is cancelled, the block will not move.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block From To event is cancelled, the block will not move.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,26 +22,10 @@ public class BlockIgniteEvent extends BlockEvent implements Cancellable {
|
||||||
this.cancel = false;
|
this.cancel = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block Ignite event is cancelled, the block will not be ignited.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Block Ignite event is cancelled, the block will not be ignited.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,22 +34,10 @@ public class BlockPhysicsEvent extends BlockEvent implements Cancellable {
|
||||||
return Material.getMaterial(changed);
|
return Material.getMaterial(changed);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,26 +29,10 @@ public class BlockPlaceEvent extends BlockEvent implements Cancellable {
|
||||||
cancel = false;
|
cancel = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*<p />
|
|
||||||
* If a Block Place event is cancelled, the block will not be placed.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*<p />
|
|
||||||
* If a Block Place event is cancelled, the block will not be placed.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,26 +15,10 @@ public class LeavesDecayEvent extends BlockEvent implements Cancellable {
|
||||||
super(Type.LEAVES_DECAY, block);
|
super(Type.LEAVES_DECAY, block);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*<p />
|
|
||||||
* If a Leaves Decay event is cancelled, the leaves will not decay.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*<p />
|
|
||||||
* If a Leaves Decay event is cancelled, the leaves will not decay.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,26 +60,10 @@ public class SignChangeEvent extends BlockEvent implements Cancellable {
|
||||||
lines[index] = line;
|
lines[index] = line;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
* <p />
|
|
||||||
* If a Sign Change event is cancelled, the sign will not be changed.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
* <p />
|
|
||||||
* If a Sign Change event is cancelled, the sign will not be changed.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,22 +54,10 @@ public class SnowFormEvent extends BlockEvent implements Cancellable {
|
||||||
this.data = data;
|
this.data = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel snow from forming during a snowfall
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,26 +24,10 @@ public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
|
||||||
this.spawnReason = spawnReason;
|
this.spawnReason = spawnReason;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Creature Spawn event is cancelled, the creature will not spawn.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return canceled;
|
return canceled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Creature Spawn event is cancelled, the creature will not spawn.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
canceled = cancel;
|
canceled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,26 +29,10 @@ public class CreeperPowerEvent extends EntityEvent implements Cancellable {
|
||||||
this.bolt = null;
|
this.bolt = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Creeper Power event is cancelled, the Creeper will not be powered.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return canceled;
|
return canceled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If a Creeper Power event is cancelled, the Creeper will not be powered.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
canceled = cancel;
|
canceled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,26 +16,10 @@ public class EntityCombustEvent extends EntityEvent implements Cancellable {
|
||||||
this.cancel = false;
|
this.cancel = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If an Entity Combust event is cancelled, the entity will not combust.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*<p />
|
|
||||||
* If an Entity Combust event is cancelled, the entity will not combust.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,28 +25,10 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable {
|
||||||
damagee.setLastDamageCause(this);
|
damagee.setLastDamageCause(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* If a damage event is cancelled, the damage will not be deducted from the player's health.
|
|
||||||
* This will not fire an event.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* If a damage event is cancelled, the damage will not be deducted from the player's health.
|
|
||||||
* This will not fire an event.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
cancelled = cancel;
|
cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,22 +22,10 @@ public class EntityExplodeEvent extends EntityEvent implements Cancellable {
|
||||||
this.blocks = blocks;
|
this.blocks = blocks;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,22 +17,10 @@ public class EntityInteractEvent extends EntityEvent implements Cancellable {
|
||||||
this.block = block;
|
this.block = block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. Set to true if you
|
|
||||||
* want to prevent buckets from placing water and so forth
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A canceled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
cancelled = cancel;
|
cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,26 +37,10 @@ public class EntityRegainHealthEvent extends EntityEvent implements Cancellable
|
||||||
this.amount = amount;
|
this.amount = amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* If a health-regain event is cancelled, the entity won't get health.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* If a health-regain event is cancelled, the entity won't get health.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
cancelled = cancel;
|
cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,24 +16,10 @@ public class EntityTameEvent extends EntityEvent implements Cancellable {
|
||||||
this.owner = owner;
|
this.owner = owner;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. Set to true if you
|
|
||||||
* want to prevent the entity from being tamed
|
|
||||||
*
|
|
||||||
* @return boolean cancellation state
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A canceled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* Canceling this event will prevent the entity from being tamed
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
cancelled = cancel;
|
cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,22 +18,10 @@ public class EntityTargetEvent extends EntityEvent implements Cancellable {
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,22 +23,10 @@ public class ExplosionPrimeEvent extends EntityEvent implements Cancellable {
|
||||||
this(explosive, explosive.getYield(), explosive.isIncendiary());
|
this(explosive, explosive.getYield(), explosive.isIncendiary());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,22 +17,10 @@ public class ItemSpawnEvent extends EntityEvent implements Cancellable {
|
||||||
this.location = loc;
|
this.location = loc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A canceled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is canceled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return canceled;
|
return canceled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A canceled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
canceled = cancel;
|
canceled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,22 +20,10 @@ public class PigZapEvent extends EntityEvent implements Cancellable {
|
||||||
this.pigzombie = pigzombie;
|
this.pigzombie = pigzombie;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A canceled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is canceled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return canceled;
|
return canceled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A canceled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
canceled = cancel;
|
canceled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,22 +78,10 @@ public class FurnaceBurnEvent extends Event implements Cancellable {
|
||||||
this.burning = burning;
|
this.burning = burning;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancelled = cancel;
|
this.cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,22 +59,10 @@ public class FurnaceSmeltEvent extends Event implements Cancellable{
|
||||||
this.result = result;
|
this.result = result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancelled = cancel;
|
this.cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,22 +26,10 @@ public class PaintingBreakEvent extends PaintingEvent implements Cancellable {
|
||||||
return cause;
|
return cause;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancelled = cancel;
|
this.cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,22 +53,10 @@ public class PaintingPlaceEvent extends PaintingEvent implements Cancellable {
|
||||||
return blockFace;
|
return blockFace;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancelled = cancel;
|
this.cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,22 +17,10 @@ public class PlayerBedEnterEvent extends PlayerEvent implements Cancellable {
|
||||||
this.bed = bed;
|
this.bed = bed;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,22 +26,10 @@ public class PlayerChatEvent extends PlayerEvent implements Cancellable {
|
||||||
this.message = message;
|
this.message = message;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,30 +25,10 @@ public class PlayerDropItemEvent extends PlayerEvent implements Cancellable {
|
||||||
return drop;
|
return drop;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* If an item drop event is cancelled, the item will not be dropped and it
|
|
||||||
* will be added back to the players inventory.
|
|
||||||
* This will not fire an event.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* If an item drop event is cancelled, the item will not be dropped and it
|
|
||||||
* will be added back to the players inventory.
|
|
||||||
* This will not fire an event.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,22 +27,10 @@ public class PlayerFishEvent extends PlayerEvent implements Cancellable {
|
||||||
return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,22 +16,10 @@ public class PlayerInteractEntityEvent extends PlayerEvent implements Cancellabl
|
||||||
this.clickedEntity = clickedEntity;
|
this.clickedEntity = clickedEntity;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancelled = cancel;
|
this.cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,16 +18,6 @@ public class PlayerKickEvent extends PlayerEvent implements Cancellable {
|
||||||
this.cancel = false;
|
this.cancel = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. Set to true if you
|
|
||||||
* want to prevent the player from getting kicked.
|
|
||||||
*
|
|
||||||
* @return boolean cancellation state
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
|
||||||
return cancel;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the reason why the player is getting kicked
|
* Gets the reason why the player is getting kicked
|
||||||
*
|
*
|
||||||
|
@ -46,14 +36,10 @@ public class PlayerKickEvent extends PlayerEvent implements Cancellable {
|
||||||
return leaveMessage;
|
return leaveMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public boolean isCancelled() {
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
return cancel;
|
||||||
* be executed in the server, but will still pass to other plugins
|
}
|
||||||
*
|
|
||||||
* Cancelling this event will prevent the kick of the targetted player
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,28 +36,10 @@ public class PlayerPickupItemEvent extends PlayerEvent implements Cancellable {
|
||||||
return remaining;
|
return remaining;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* If an item pickup event is cancelled, the item will not be picked up.
|
|
||||||
* This will not fire an event.
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* If an item pickup event is cancelled, the item will not be picked up.
|
|
||||||
* This will not fire an event.
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,7 @@ public class PlayerTeleportEvent extends PlayerMoveEvent {
|
||||||
public PlayerTeleportEvent(Player player, Location from, Location to) {
|
public PlayerTeleportEvent(Player player, Location from, Location to) {
|
||||||
super(Type.PLAYER_TELEPORT, player, from, to);
|
super(Type.PLAYER_TELEPORT, player, from, to);
|
||||||
}
|
}
|
||||||
|
|
||||||
public PlayerTeleportEvent(final Event.Type type, Player player, Location from, Location to) {
|
public PlayerTeleportEvent(final Event.Type type, Player player, Location from, Location to) {
|
||||||
super(type, player, from, to);
|
super(type, player, from, to);
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,22 +24,10 @@ public class PlayerToggleSneakEvent extends PlayerEvent implements Cancellable {
|
||||||
return isSneaking;
|
return isSneaking;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,22 +45,10 @@ public class VehicleDamageEvent extends VehicleEvent implements Cancellable {
|
||||||
this.damage = damage;
|
this.damage = damage;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancelled = cancel;
|
this.cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,22 +25,10 @@ public class VehicleDestroyEvent extends VehicleEvent implements Cancellable {
|
||||||
return attacker;
|
return attacker;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancelled = cancel;
|
this.cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,22 +25,10 @@ public class VehicleEnterEvent extends VehicleEvent implements Cancellable {
|
||||||
return entered;
|
return entered;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancelled = cancel;
|
this.cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,22 +25,10 @@ public class VehicleExitEvent extends VehicleEvent implements Cancellable {
|
||||||
return exited;
|
return exited;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancelled = cancel;
|
this.cancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,22 +20,10 @@ public class LightningStrikeEvent extends WeatherEvent implements Cancellable {
|
||||||
this.world = world;
|
this.world = world;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A canceled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is canceled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return canceled;
|
return canceled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A canceled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
canceled = cancel;
|
canceled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,30 +10,16 @@ public class ThunderChangeEvent extends WeatherEvent implements Cancellable {
|
||||||
|
|
||||||
private boolean canceled;
|
private boolean canceled;
|
||||||
private boolean to;
|
private boolean to;
|
||||||
private World world;
|
|
||||||
|
|
||||||
public ThunderChangeEvent(World world, boolean to) {
|
public ThunderChangeEvent(World world, boolean to) {
|
||||||
super(Type.THUNDER_CHANGE, world);
|
super(Type.THUNDER_CHANGE, world);
|
||||||
this.world = world;
|
|
||||||
this.to = to;
|
this.to = to;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A canceled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is canceled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return canceled;
|
return canceled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A canceled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
canceled = cancel;
|
canceled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,30 +10,16 @@ public class WeatherChangeEvent extends WeatherEvent implements Cancellable {
|
||||||
|
|
||||||
private boolean canceled;
|
private boolean canceled;
|
||||||
private boolean to;
|
private boolean to;
|
||||||
private World world;
|
|
||||||
|
|
||||||
public WeatherChangeEvent(World world, boolean to) {
|
public WeatherChangeEvent(World world, boolean to) {
|
||||||
super(Type.WEATHER_CHANGE, world);
|
super(Type.WEATHER_CHANGE, world);
|
||||||
this.world = world;
|
|
||||||
this.to = to;
|
this.to = to;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A canceled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is canceled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return canceled;
|
return canceled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A canceled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
canceled = cancel;
|
canceled = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,22 +13,10 @@ public class ChunkUnloadEvent extends ChunkEvent implements Cancellable {
|
||||||
super(Type.CHUNK_UNLOAD, chunk);
|
super(Type.CHUNK_UNLOAD, chunk);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,22 +27,10 @@ public class PortalCreateEvent extends WorldEvent implements Cancellable {
|
||||||
return this.blocks;
|
return this.blocks;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A canceled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is canceled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancel;
|
return cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A canceled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancel = cancel;
|
this.cancel = cancel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,29 +7,16 @@ import org.bukkit.event.Cancellable;
|
||||||
* Called when a World is unloaded
|
* Called when a World is unloaded
|
||||||
*/
|
*/
|
||||||
public class WorldUnloadEvent extends WorldEvent implements Cancellable {
|
public class WorldUnloadEvent extends WorldEvent implements Cancellable {
|
||||||
|
|
||||||
private boolean isCancelled;
|
private boolean isCancelled;
|
||||||
|
|
||||||
public WorldUnloadEvent(World world) {
|
public WorldUnloadEvent(World world) {
|
||||||
super(Type.WORLD_UNLOAD, world);
|
super(Type.WORLD_UNLOAD, world);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @return true if this event is cancelled
|
|
||||||
*/
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return this.isCancelled;
|
return this.isCancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the cancellation state of this event. A cancelled event will not
|
|
||||||
* be executed in the server, but will still pass to other plugins
|
|
||||||
*
|
|
||||||
* @param cancel true if you wish to cancel this event
|
|
||||||
*/
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.isCancelled = cancel;
|
this.isCancelled = cancel;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue