Added redstone event
This commit is contained in:
parent
c5e31fd6f3
commit
5fc5b4c1a3
46
src/main/java/org/bukkit/event/block/BlockRedstoneEvent.java
Normal file
46
src/main/java/org/bukkit/event/block/BlockRedstoneEvent.java
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.bukkit.event.block;
|
||||||
|
|
||||||
|
import org.bukkit.Block;
|
||||||
|
import org.bukkit.BlockFace;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Nathan
|
||||||
|
*/
|
||||||
|
public class BlockRedstoneEvent extends BlockFromToEvent {
|
||||||
|
private int oldCurrent;
|
||||||
|
private int newCurrent;
|
||||||
|
|
||||||
|
public BlockRedstoneEvent(Block block, BlockFace face, int oldCurrent, int newCurrent) {
|
||||||
|
super(Type.REDSTONE_CHANGE, block, face);
|
||||||
|
this.oldCurrent = oldCurrent;
|
||||||
|
this.newCurrent = newCurrent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the oldCurrent
|
||||||
|
*/
|
||||||
|
public int getOldCurrent() {
|
||||||
|
return oldCurrent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the newCurrent
|
||||||
|
*/
|
||||||
|
public int getNewCurrent() {
|
||||||
|
return newCurrent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param newCurrent the newCurrent to set
|
||||||
|
*/
|
||||||
|
public void setNewCurrent(int newCurrent) {
|
||||||
|
this.newCurrent = newCurrent;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user