TF-Marriage/src/main/java/com/lenis0012/bukkit/marriage2/MData.java

56 lines
1.1 KiB
Java
Raw Normal View History

2014-11-13 07:36:28 +00:00
package com.lenis0012.bukkit.marriage2;
2016-04-21 07:39:59 +00:00
import org.bukkit.Location;
2014-11-13 07:36:28 +00:00
2016-04-21 07:39:59 +00:00
import java.util.UUID;
2014-11-13 07:36:28 +00:00
public interface MData {
UUID getPlayer1Id();
UUID getPllayer2Id();
2015-01-08 21:19:17 +00:00
/**
* Get player 1 or 2 depending in the current player's UUID.
*
* @param me The current player
* @return The other player
*/
UUID getOtherPlayer(UUID me);
2014-11-13 07:36:28 +00:00
/**
* Get the home of the married people.
*
2014-11-13 16:45:41 +00:00
* @return Marriage home, NULL if not set.
2014-11-13 07:36:28 +00:00
*/
Location getHome();
/**
* Set the home of the married people.
2015-07-07 23:51:50 +00:00
*
* @param home The new home location
2014-11-13 07:36:28 +00:00
*/
2014-11-13 16:45:41 +00:00
void setHome(Location home);
2014-11-13 07:36:28 +00:00
/**
* Check if the married players have a home set.
*
* @return Whether or not a home is set for the married players.
*/
boolean isHomeSet();
/**
* Check if PVP is enabled between the married players.
*
* @return Whether or not pvp is enabled between the married players.
*/
boolean isPVPEnabled();
/**
* Set if pvp is enabled between the married players.
*
* @param pvpEnabled Whether or not pvp is enabled between the married players.
*/
void setPVPEnabled(boolean pvpEnabled);
}