rename
This commit is contained in:
parent
9fe7a9c489
commit
1982709181
11
src/com/massivecraft/mcore/mixin/ActualMixin.java
Normal file
11
src/com/massivecraft/mcore/mixin/ActualMixin.java
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package com.massivecraft.mcore.mixin;
|
||||||
|
|
||||||
|
import org.bukkit.event.player.PlayerJoinEvent;
|
||||||
|
|
||||||
|
import com.massivecraft.mcore.event.MCorePlayerLeaveEvent;
|
||||||
|
|
||||||
|
public interface ActualMixin
|
||||||
|
{
|
||||||
|
public boolean isActualJoin(PlayerJoinEvent event);
|
||||||
|
public boolean isActualLeave(MCorePlayerLeaveEvent event);
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
package com.massivecraft.mcore.mixin;
|
||||||
|
|
||||||
|
public abstract class ActualMixinAbstract implements ActualMixin
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
@ -4,27 +4,27 @@ import org.bukkit.event.player.PlayerJoinEvent;
|
|||||||
|
|
||||||
import com.massivecraft.mcore.event.MCorePlayerLeaveEvent;
|
import com.massivecraft.mcore.event.MCorePlayerLeaveEvent;
|
||||||
|
|
||||||
public class ActuallMixinDefault extends ActuallMixinAbstract
|
public class ActualMixinDefault extends ActualMixinAbstract
|
||||||
{
|
{
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
// INSTANCE & CONSTRUCT
|
// INSTANCE & CONSTRUCT
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
|
||||||
private static ActuallMixinDefault i = new ActuallMixinDefault();
|
private static ActualMixinDefault i = new ActualMixinDefault();
|
||||||
public static ActuallMixinDefault get() { return i; }
|
public static ActualMixinDefault get() { return i; }
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
// OVERRIDE
|
// OVERRIDE
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isActuallJoin(PlayerJoinEvent event)
|
public boolean isActualJoin(PlayerJoinEvent event)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isActuallLeave(MCorePlayerLeaveEvent event)
|
public boolean isActualLeave(MCorePlayerLeaveEvent event)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
@ -1,11 +0,0 @@
|
|||||||
package com.massivecraft.mcore.mixin;
|
|
||||||
|
|
||||||
import org.bukkit.event.player.PlayerJoinEvent;
|
|
||||||
|
|
||||||
import com.massivecraft.mcore.event.MCorePlayerLeaveEvent;
|
|
||||||
|
|
||||||
public interface ActuallMixin
|
|
||||||
{
|
|
||||||
public boolean isActuallJoin(PlayerJoinEvent event);
|
|
||||||
public boolean isActuallLeave(MCorePlayerLeaveEvent event);
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
package com.massivecraft.mcore.mixin;
|
|
||||||
|
|
||||||
public abstract class ActuallMixinAbstract implements ActuallMixin
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
@ -60,9 +60,9 @@ public class Mixin
|
|||||||
public static KickMixin getKickMixin() { return kickMixin; }
|
public static KickMixin getKickMixin() { return kickMixin; }
|
||||||
public static void setKickMixin(KickMixin val) { kickMixin = val; }
|
public static void setKickMixin(KickMixin val) { kickMixin = val; }
|
||||||
|
|
||||||
private static ActuallMixin actuallMixin = ActuallMixinDefault.get();
|
private static ActualMixin actualMixin = ActualMixinDefault.get();
|
||||||
public static ActuallMixin getActuallMixin() { return actuallMixin; }
|
public static ActualMixin getActualMixin() { return actualMixin; }
|
||||||
public static void setActuallMixin(ActuallMixin val) { actuallMixin = val; }
|
public static void setActualMixin(ActualMixin val) { actualMixin = val; }
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
// STATIC EXPOSE: WORLD
|
// STATIC EXPOSE: WORLD
|
||||||
@ -466,14 +466,14 @@ public class Mixin
|
|||||||
// STATIC EXPOSE: ACTUALL
|
// STATIC EXPOSE: ACTUALL
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
|
||||||
public static boolean isActuallJoin(PlayerJoinEvent event)
|
public static boolean isActualJoin(PlayerJoinEvent event)
|
||||||
{
|
{
|
||||||
return getActuallMixin().isActuallJoin(event);
|
return getActualMixin().isActualJoin(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isActuallLeave(MCorePlayerLeaveEvent event)
|
public static boolean isActualLeave(MCorePlayerLeaveEvent event)
|
||||||
{
|
{
|
||||||
return getActuallMixin().isActuallLeave(event);
|
return getActualMixin().isActualLeave(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user