Deprecate magic values
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user