Added Registerable interface.
This commit is contained in:
parent
45009a7f59
commit
8b45d2b71e
2
pom.xml
2
pom.xml
@ -11,7 +11,7 @@
|
|||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>clean install</defaultGoal>
|
<defaultGoal>install</defaultGoal>
|
||||||
<finalName>MassiveCore</finalName>
|
<finalName>MassiveCore</finalName>
|
||||||
<sourceDirectory>${basedir}/src/main/java/</sourceDirectory>
|
<sourceDirectory>${basedir}/src/main/java/</sourceDirectory>
|
||||||
<resources>
|
<resources>
|
||||||
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.massivecraft.massivecore;
|
||||||
|
|
||||||
|
public class PredictateIsRegistered implements Predictate<Registerable>
|
||||||
|
{
|
||||||
|
// -------------------------------------------- //
|
||||||
|
// INSTANCE & CONSTRUCT
|
||||||
|
// -------------------------------------------- //
|
||||||
|
|
||||||
|
private static PredictateIsRegistered i = new PredictateIsRegistered();
|
||||||
|
public static PredictateIsRegistered get() { return i; }
|
||||||
|
|
||||||
|
// -------------------------------------------- //
|
||||||
|
// OVERRIDE
|
||||||
|
// -------------------------------------------- //
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean apply(Registerable registerable)
|
||||||
|
{
|
||||||
|
return registerable.isRegistered();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
package com.massivecraft.massivecore;
|
||||||
|
|
||||||
|
public interface Registerable
|
||||||
|
{
|
||||||
|
public boolean isRegistered();
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user