mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-06 16:51:37 +00:00
Make some listeners Functional Interfaces.
This commit is contained in:
@@ -50,7 +50,9 @@ class ProcCommandListener < CommandListener
|
|||||||
end
|
end
|
||||||
|
|
||||||
# A LoginListener that executes a Proc object with the player argument.
|
# A LoginListener that executes a Proc object with the player argument.
|
||||||
class ProcLoginListener < LoginListener
|
class ProcLoginListener
|
||||||
|
java_implements LoginListener
|
||||||
|
|
||||||
def initialize(block)
|
def initialize(block)
|
||||||
super()
|
super()
|
||||||
@block = block
|
@block = block
|
||||||
@@ -62,7 +64,9 @@ class ProcLoginListener < LoginListener
|
|||||||
end
|
end
|
||||||
|
|
||||||
# A LogoutListener that executes a Proc object with the player argument.
|
# A LogoutListener that executes a Proc object with the player argument.
|
||||||
class ProcLogoutListener < LogoutListener
|
class ProcLogoutListener
|
||||||
|
java_implements LogoutListener
|
||||||
|
|
||||||
def initialize(block)
|
def initialize(block)
|
||||||
super()
|
super()
|
||||||
@block = block
|
@block = block
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ import org.apollo.game.model.entity.Player;
|
|||||||
*
|
*
|
||||||
* @author Major
|
* @author Major
|
||||||
*/
|
*/
|
||||||
public abstract class LoginListener {
|
@FunctionalInterface
|
||||||
|
public interface LoginListener {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Executes the action for this listener.
|
* Executes the action for this listener.
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ import org.apollo.game.model.entity.Player;
|
|||||||
*
|
*
|
||||||
* @author Major
|
* @author Major
|
||||||
*/
|
*/
|
||||||
public abstract class LogoutListener {
|
@FunctionalInterface
|
||||||
|
public interface LogoutListener {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Executes the action for this listener.
|
* Executes the action for this listener.
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ import org.apollo.game.model.entity.Entity;
|
|||||||
*
|
*
|
||||||
* @author Major
|
* @author Major
|
||||||
*/
|
*/
|
||||||
public abstract class SectorListener {
|
@FunctionalInterface
|
||||||
|
public interface SectorListener {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Executes the action for this listener.
|
* Executes the action for this listener.
|
||||||
|
|||||||
Reference in New Issue
Block a user