@@ -16,8 +16,18 @@ import org.bukkit.event.HandlerList;
|
||||
public class BlockCanBuildEvent extends BlockEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
protected boolean buildable;
|
||||
/**
|
||||
*
|
||||
* @deprecated Magic value
|
||||
*/
|
||||
@Deprecated
|
||||
protected int material;
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated Magic value
|
||||
*/
|
||||
@Deprecated
|
||||
public BlockCanBuildEvent(final Block block, final int id, final boolean canBuild) {
|
||||
super(block);
|
||||
buildable = canBuild;
|
||||
@@ -56,7 +66,9 @@ public class BlockCanBuildEvent extends BlockEvent {
|
||||
* Gets the Material ID for the Material that we are trying to place.
|
||||
*
|
||||
* @return The Material ID for the Material that we are trying to place
|
||||
* @deprecated Magic value
|
||||
*/
|
||||
@Deprecated
|
||||
public int getMaterialId() {
|
||||
return material;
|
||||
}
|
||||
|
||||
@@ -13,6 +13,11 @@ public class BlockPhysicsEvent extends BlockEvent implements Cancellable {
|
||||
private final int changed;
|
||||
private boolean cancel = false;
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated Magic value
|
||||
*/
|
||||
@Deprecated
|
||||
public BlockPhysicsEvent(final Block block, final int changed) {
|
||||
super(block);
|
||||
this.changed = changed;
|
||||
@@ -22,7 +27,9 @@ public class BlockPhysicsEvent extends BlockEvent implements Cancellable {
|
||||
* Gets the type of block that changed, causing this event
|
||||
*
|
||||
* @return Changed block's type id
|
||||
* @deprecated Magic value
|
||||
*/
|
||||
@Deprecated
|
||||
public int getChangedTypeId() {
|
||||
return changed;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,9 @@ public class EntityChangeBlockEvent extends EntityEvent implements Cancellable {
|
||||
* @param block the block (before the change)
|
||||
* @param to the future material being changed to
|
||||
* @param data the future block data
|
||||
* @deprecated Magic value
|
||||
*/
|
||||
@Deprecated
|
||||
public EntityChangeBlockEvent(final Entity what, final Block block, final Material to, final byte data) {
|
||||
super(what);
|
||||
this.block = block;
|
||||
@@ -74,7 +76,9 @@ public class EntityChangeBlockEvent extends EntityEvent implements Cancellable {
|
||||
* Gets the data for the block that would be changed into
|
||||
*
|
||||
* @return the data for the block that would be changed into
|
||||
* @deprecated Magic value
|
||||
*/
|
||||
@Deprecated
|
||||
public byte getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user