Preparing to design container implementation idea

This commit is contained in:
Alastair 2018-01-05 01:01:08 +00:00
parent 51e426c274
commit f9041ea83f
4 changed files with 16 additions and 14 deletions

View File

@ -1,6 +1,6 @@
package com.sekwah.advancedportals.api.registry; package com.sekwah.advancedportals.core.api.registry;
import com.sekwah.advancedportals.api.warphandler.TagHandler; import com.sekwah.advancedportals.core.api.warphandler.TagHandler;
import com.sekwah.advancedportals.core.AdvancedPortalsCore; import com.sekwah.advancedportals.core.AdvancedPortalsCore;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.sekwah.advancedportals.api.warphandler; package com.sekwah.advancedportals.core.api.warphandler;
/** /**

View File

@ -1,8 +1,6 @@
package com.sekwah.advancedportals.api.warphandler; package com.sekwah.advancedportals.core.api.warphandler;
import org.bukkit.entity.Player; import com.sekwah.advancedportals.coreconnector.container.PlayerContainer;
import javax.annotation.Nullable;
/** /**
* Created by on 30/07/2016. * Created by on 30/07/2016.
@ -31,7 +29,7 @@ public class TagHandler {
* @param argData * @param argData
* @return if the portal can be created. * @return if the portal can be created.
*/ */
boolean portalCreated(@Nullable Player player, ActivationData activeData, String argData); boolean portalCreated(PlayerContainer player, ActivationData activeData, String argData);
/** /**
* Example if the player does not have access to remove the portal. * Example if the player does not have access to remove the portal.
@ -41,7 +39,7 @@ public class TagHandler {
* @param argData * @param argData
* @return if the portal can be destroyed. * @return if the portal can be destroyed.
*/ */
boolean portalDestroyed(@Nullable Player player, ActivationData activeData, String argData); boolean portalDestroyed(PlayerContainer player, ActivationData activeData, String argData);
} }
@ -54,7 +52,7 @@ public class TagHandler {
* @param activeData * @param activeData
* @param argData * @param argData
*/ */
void portalPreActivated(Player player, ActivationData activeData, String argData); void portalPreActivated(PlayerContainer player, ActivationData activeData, String argData);
/** /**
* Activates after portal activation * Activates after portal activation
@ -63,7 +61,7 @@ public class TagHandler {
* @param activeData * @param activeData
* @param argData * @param argData
*/ */
void portalPostActivated(Player player, ActivationData activeData, String argData); void portalPostActivated(PlayerContainer player, ActivationData activeData, String argData);
/** /**
* Activates if the portal is allowed from pre * Activates if the portal is allowed from pre
@ -72,7 +70,7 @@ public class TagHandler {
* @param activeData * @param activeData
* @param argData * @param argData
*/ */
void portalActivated(Player player, ActivationData activeData, String argData); void portalActivated(PlayerContainer player, ActivationData activeData, String argData);
} }
@ -86,7 +84,7 @@ public class TagHandler {
* @param argData * @param argData
* @return if the tag will be added. * @return if the tag will be added.
*/ */
boolean tagAdded(@Nullable Player player, ActivationData activeData, String argData); boolean tagAdded(PlayerContainer player, ActivationData activeData, String argData);
/** /**
* If the user has access to remove the tag * If the user has access to remove the tag
@ -96,7 +94,7 @@ public class TagHandler {
* @param argData * @param argData
* @return if the tag will be removed. * @return if the tag will be removed.
*/ */
boolean tagRemoved(@Nullable Player player, ActivationData activeData, String argData); boolean tagRemoved(PlayerContainer player, ActivationData activeData, String argData);
} }

View File

@ -0,0 +1,4 @@
package com.sekwah.advancedportals.coreconnector.container;
public class PlayerContainer {
}