mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-09-19 11:01:13 +02:00
Preparing to design container implementation idea
This commit is contained in:
parent
51e426c274
commit
f9041ea83f
@ -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;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.sekwah.advancedportals.api.warphandler;
|
package com.sekwah.advancedportals.core.api.warphandler;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.sekwah.advancedportals.coreconnector.container;
|
||||||
|
|
||||||
|
public class PlayerContainer {
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user