Package net.dzikoysk.funnyguilds.guild
Class Guild
java.lang.Object
net.dzikoysk.funnyguilds.data.AbstractMutableEntity
net.dzikoysk.funnyguilds.guild.Guild
- All Implemented Interfaces:
MutableEntity,Entity
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dzikoysk.funnyguilds.Entity
Entity.EntityType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidbooleanbooleancanBuild()voidbooleanlonggetBan()longgetBorn()longgetBuild()panda.std.Option<org.bukkit.Location>panda.std.Option<org.bukkit.Location>panda.std.Option<org.bukkit.Location>getHome()intgetLives()getName()getOwner()longgetRank()panda.std.Option<Region>getTag()getType()getUUID()longDeprecated.booleanbooleanhasAllyPvPEnabled(Guild alliedGuild) booleanbooleaninthashCode()booleanhasHome()booleanbooleanbooleanbooleanisBanned()booleanbooleanbooleanbooleanbooleanbooleanisValid()voidremoveAlly(Guild guild) voidremoveDeputy(User user) voidremoveEnemy(Guild guild) voidremoveMember(User user) voidvoidsetBan(long time) voidsetBorn(long time) voidsetBuild(long time) voidsetDeputies(Set<User> users) voidsetEnemies(Set<Guild> guilds) voidsetHome(@Nullable org.bukkit.Location home) voidsetLives(int lives) voidsetMembers(Set<User> members) voidvoidvoidsetProtection(long protection) voidsetPvP(boolean pvp) voidvoidvoidsetValidity(long time) voidteleportHome(org.bukkit.entity.Player player) booleantoggleAllyPvP(Guild alliedGuild) booleantoString()voidupdateLives(IntFunction<Integer> update) Methods inherited from class net.dzikoysk.funnyguilds.data.AbstractMutableEntity
markChanged, markUnchanged, wasChanged
-
Constructor Details
-
Guild
-
Guild
-
-
Method Details
-
broadcast
-
deserializationUpdate
public void deserializationUpdate() -
getUUID
-
getName
-
setName
-
getTag
-
setTag
-
getRank
-
getLives
public int getLives() -
setLives
public void setLives(int lives) -
updateLives
-
getRegion
- Returns:
- region of the guild.
-
hasRegion
public boolean hasRegion() -
setRegion
-
getCenter
public panda.std.Option<org.bukkit.Location> getCenter() -
getEnderCrystal
public panda.std.Option<org.bukkit.Location> getEnderCrystal() -
getHome
public panda.std.Option<org.bukkit.Location> getHome()- Returns:
- home location of the guild
-
hasHome
public boolean hasHome() -
setHome
public void setHome(@Nullable @Nullable org.bukkit.Location home) -
teleportHome
public void teleportHome(org.bukkit.entity.Player player) -
getOwner
-
isOwner
-
setOwner
-
getMembers
-
getOnlineMembers
-
isMember
-
setMembers
-
addMember
-
removeMember
-
getDeputies
-
hasDeputies
public boolean hasDeputies() -
isDeputy
-
setDeputies
-
addDeputy
-
removeDeputy
-
getAllies
-
hasAllies
public boolean hasAllies() -
isAlly
-
setAllies
-
addAlly
-
removeAlly
-
getEnemies
-
hasEnemies
public boolean hasEnemies() -
isEnemy
-
setEnemies
-
addEnemy
-
removeEnemy
-
isNeutral
-
getBorn
public long getBorn() -
setBorn
public void setBorn(long time) -
getValidity
public long getValidity() -
getValidityDate
Deprecated. -
isValid
public boolean isValid() -
setValidity
public void setValidity(long time) -
getProtection
public long getProtection() -
canBeAttacked
public boolean canBeAttacked() -
setProtection
public void setProtection(long protection) -
getBuild
public long getBuild() -
canBuild
public boolean canBuild() -
setBuild
public void setBuild(long time) -
getBan
public long getBan() -
isBanned
public boolean isBanned() -
setBan
public void setBan(long time) -
hasPvPEnabled
public boolean hasPvPEnabled() -
setPvP
public void setPvP(boolean pvp) -
togglePvP
public boolean togglePvP() -
hasAllyPvPEnabled
-
toggleAllyPvP
-
getType
-
hashCode
public int hashCode() -
equals
-
toString
-