mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
Added Block.getPistonMoveReaction, BlockPistonExtend and BlockPistonRetractEvent
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
@@ -527,6 +527,20 @@ public final class JavaPluginLoader implements PluginLoader {
|
||||
}
|
||||
};
|
||||
|
||||
case BLOCK_PISTON_RETRACT:
|
||||
return new EventExecutor() {
|
||||
public void execute(Listener listener, Event event) {
|
||||
((BlockListener) listener).onBlockPistonRetract((BlockPistonRetractEvent) event);
|
||||
}
|
||||
};
|
||||
|
||||
case BLOCK_PISTON_EXTEND:
|
||||
return new EventExecutor() {
|
||||
public void execute(Listener listener, Event event) {
|
||||
((BlockListener) listener).onBlockPistonExtend((BlockPistonExtendEvent) event);
|
||||
}
|
||||
};
|
||||
|
||||
// Server Events
|
||||
case PLUGIN_ENABLE:
|
||||
return new EventExecutor() {
|
||||
|
Reference in New Issue
Block a user