Removed deprecated methods.

getNote() that returns a byte has been replaced by getRawNote().
teleportTo(Location) has been replaced by teleport(location).
teleportTo(Entity) has been replaced by teleport(Entity).
SnowForm event has been replaced by BlockForm event.
This commit is contained in:
EvilSeph
2011-07-27 21:09:07 -04:00
parent 8fccc8ffca
commit 1f5c90052a
6 changed files with 0 additions and 120 deletions

View File

@@ -118,15 +118,6 @@ public class BlockListener implements Listener {
*/
public void onBlockBreak(BlockBreakEvent event) {}
/**
* Called when a world is attempting to place a block during a snowfall.
*
* @param event Relevant event details
* @deprecated Be prepared to use onBlockForm instead as it will be replacing this event after the RB
*/
@Deprecated
public void onSnowForm(SnowFormEvent event) {}
/**
* Called when a block is formed or spreads based on world conditions.
* Use {@link BlockSpreadEvent} to catch blocks that actually spread and don't just "randomly" form.

View File

@@ -1,64 +0,0 @@
package org.bukkit.event.block;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.event.Cancellable;
/**
* Called on snow formed by weather
*/
public class SnowFormEvent extends BlockEvent implements Cancellable {
private Material material;
private byte data;
private boolean cancel;
public SnowFormEvent(Block block) {
super(Type.SNOW_FORM, block);
this.material = Material.SNOW;
this.cancel = false;
}
/**
* Gets the material being placed on a block during snowfall
*
* @return the material being placed by a snowfall
*/
public Material getMaterial() {
return material;
}
/**
* Sets the material to be placed on a block during a snowfall
*
* @param material the material to be placed during a snowfall
*/
public void setMaterial(Material material) {
this.material = material;
}
/**
* Gets the block data of a block involved in a snowfall
*
* @return the data of the block being placed by a snowfall
*/
public byte getData() {
return data;
}
/**
* Sets the block data of a block involved in a snowfall
*
* @param data
*/
public void setData(byte data) {
this.data = data;
}
public boolean isCancelled() {
return cancel;
}
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}
}