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;
|
||||
|
||||
public class ActuallMixinDefault extends ActuallMixinAbstract
|
||||
public class ActualMixinDefault extends ActualMixinAbstract
|
||||
{
|
||||
// -------------------------------------------- //
|
||||
// INSTANCE & CONSTRUCT
|
||||
// -------------------------------------------- //
|
||||
|
||||
private static ActuallMixinDefault i = new ActuallMixinDefault();
|
||||
public static ActuallMixinDefault get() { return i; }
|
||||
private static ActualMixinDefault i = new ActualMixinDefault();
|
||||
public static ActualMixinDefault get() { return i; }
|
||||
|
||||
// -------------------------------------------- //
|
||||
// OVERRIDE
|
||||
// -------------------------------------------- //
|
||||
|
||||
@Override
|
||||
public boolean isActuallJoin(PlayerJoinEvent event)
|
||||
public boolean isActualJoin(PlayerJoinEvent event)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isActuallLeave(MCorePlayerLeaveEvent event)
|
||||
public boolean isActualLeave(MCorePlayerLeaveEvent event)
|
||||
{
|
||||
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 void setKickMixin(KickMixin val) { kickMixin = val; }
|
||||
|
||||
private static ActuallMixin actuallMixin = ActuallMixinDefault.get();
|
||||
public static ActuallMixin getActuallMixin() { return actuallMixin; }
|
||||
public static void setActuallMixin(ActuallMixin val) { actuallMixin = val; }
|
||||
private static ActualMixin actualMixin = ActualMixinDefault.get();
|
||||
public static ActualMixin getActualMixin() { return actualMixin; }
|
||||
public static void setActualMixin(ActualMixin val) { actualMixin = val; }
|
||||
|
||||
// -------------------------------------------- //
|
||||
// STATIC EXPOSE: WORLD
|
||||
@ -466,14 +466,14 @@ public class Mixin
|
||||
// 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