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()voidbooleanpanda.std.Option<Instant>getBan()getBorn()panda.std.Option<Instant>getBuild()panda.std.Option<org.bukkit.Location>panda.std.Option<org.bukkit.Location>panda.std.Option<org.bukkit.Location>getHome()intgetLives()getName()getOwner()getRank()panda.std.Option<Region>getTag()getType()getUUID()booleanbooleanhasAllyPvPEnabled(Guild alliedGuild) booleanbooleaninthashCode()booleanhasHome()booleanbooleanbooleanbooleanisBanned()booleanbooleanbooleanbooleanbooleanbooleanisValid()voidremoveAlly(Guild guild) voidremoveDeputy(User user) voidremoveEnemy(Guild guild) voidremoveMember(User user) voidvoidvoidvoidvoidsetDeputies(Set<User> users) voidsetEnemies(Set<Guild> guilds) voidsetHome(@Nullable org.bukkit.Location home) voidsetLives(int lives) voidsetMembers(Set<User> members) voidvoidvoidsetProtection(Instant protection) voidsetPvP(boolean pvp) voidvoidvoidsetValidity(Instant 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
-
setBorn
-
getValidity
-
isValid
public boolean isValid() -
setValidity
-
getProtection
-
canBeAttacked
public boolean canBeAttacked() -
setProtection
-
getBuild
-
canBuild
public boolean canBuild() -
setBuild
-
getBan
-
isBanned
public boolean isBanned() -
setBan
-
hasPvPEnabled
public boolean hasPvPEnabled() -
setPvP
public void setPvP(boolean pvp) -
togglePvP
public boolean togglePvP() -
hasAllyPvPEnabled
-
toggleAllyPvP
-
getType
-
hashCode
public int hashCode() -
equals
-
toString
-