mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
Added redstone event
By: Tahg <tahgtahv@gmail.com>
This commit is contained in:
parent
0621fedd0b
commit
1a6e8ac5eb
1 changed files with 46 additions and 0 deletions
|
@ -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…
Reference in a new issue