Faction

class Faction(id: EntityID<Int>) : IntEntity

Created: 04.08.2023

Author

Tobias Madlberger (Tobias)

Constructors

Link copied to clipboard
constructor(id: EntityID<Int>)

Types

Link copied to clipboard
object Companion : EntityClass<Int, Faction>

Properties

Link copied to clipboard
var _readValues: ResultRow?
Link copied to clipboard
Link copied to clipboard
var db: Database
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var icon: ItemStack
Link copied to clipboard
val id: EntityID<Int>
Link copied to clipboard
var klass: EntityClass<Int, Entity<Int>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var owner: UUID
Link copied to clipboard
val readValues: ResultRow
Link copied to clipboard
val writeValues: LinkedHashMap<Column<Any?>, Any?>

Functions

Link copied to clipboard
fun Faction.acceptAllyInvite(targetFaction: Faction)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ban(user: FactionUser)
Link copied to clipboard
fun bans(): SizedIterable<FactionBan>
Link copied to clipboard
fun broadcast(key: LocalizationKey, placeholders: Map<String, String>)
Link copied to clipboard
fun claim(chunk: Chunk, announce: Boolean = true): FactionClaim
Link copied to clipboard
fun claims(): SizedIterable<FactionClaim>
Link copied to clipboard
fun claimSquare(centerChunk: Chunk, squareRadius: Int, handleError: (e: LocalizedException) -> Unit): ClaimStatistics
Link copied to clipboard
fun countActiveMembers(ticksIntoPast: Long): Int
Link copied to clipboard
fun countInactiveMembers(millisecondsIntoPast: Long): Int
Link copied to clipboard
fun Faction.declareWar(targetFaction: Faction)
Link copied to clipboard
open override fun delete()
Link copied to clipboard
Link copied to clipboard
open fun flush(batch: EntityBatchUpdate?): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Faction.getHome(): Location?
Link copied to clipboard
operator fun <Unwrapped, Wrapped> EntityFieldWithTransform<Unwrapped, Wrapped>.getValue(o: Entity<Int>, desc: KProperty<*>): Wrapped
operator fun <REF : Any, RID : Any, T : Entity<RID>> OptionalReference<REF, RID, T>.getValue(o: Entity<Int>, desc: KProperty<*>): T?
operator fun <REF : Any, RID : Any, T : Entity<RID>> Reference<REF, RID, T>.getValue(o: Entity<Int>, desc: KProperty<*>): T
operator fun <T> Column<T>.getValue(o: Entity<Int>, desc: KProperty<*>): T
operator fun <T> CompositeColumn<T>.getValue(o: Entity<Int>, desc: KProperty<*>): T
Link copied to clipboard
fun invite(inviter: UUID, invited: UUID, rankId: Int): FactionInvite
Link copied to clipboard
fun Faction.inviteToAlliance(targetFaction: Faction)
Link copied to clipboard
Link copied to clipboard
fun isInactive(toMillis: Long): Boolean
Link copied to clipboard
fun join(uuid: UUID, rankId: Int)
Link copied to clipboard
fun kick(player: UUID)
Link copied to clipboard
fun leave(player: UUID)
Link copied to clipboard
fun Faction.listRanks(): SizedIterable<FactionRank>
Link copied to clipboard
fun <T> Column<T>.lookup(): T
Link copied to clipboard
fun <T, R : Any> Column<T>.lookupInReadValues(found: (T?) -> R?, notFound: () -> R?): R?
Link copied to clipboard
fun members(): SizedIterable<FactionUser>
Link copied to clipboard
open fun refresh(flush: Boolean)
Link copied to clipboard
fun setAccumulatedPower(newAccumulatedPower: Int, reason: PowerAccumulationChangeReason)
Link copied to clipboard
fun Faction.setHome(location: Location)
Link copied to clipboard
fun setMaxPower(newMaxPower: Int)
Link copied to clipboard
operator fun <Unwrapped, Wrapped> EntityFieldWithTransform<Unwrapped, Wrapped>.setValue(o: Entity<Int>, desc: KProperty<*>, value: Wrapped)
operator fun <REF : Any, RID : Any, T : Entity<RID>> OptionalReference<REF, RID, T>.setValue(o: Entity<Int>, desc: KProperty<*>, value: T?)
operator fun <REF : Any, RID : Any, T : Entity<RID>> Reference<REF, RID, T>.setValue(o: Entity<Int>, desc: KProperty<*>, value: T)
operator fun <T> Column<T>.setValue(o: Entity<Int>, desc: KProperty<*>, value: T)
operator fun <T> CompositeColumn<T>.setValue(o: Entity<Int>, desc: KProperty<*>, value: T)
Link copied to clipboard
Link copied to clipboard
fun transferOwnership(newOwner: UUID)
Link copied to clipboard
fun unclaim(chunk: Chunk, announce: Boolean = true)
Link copied to clipboard
fun unclaimSquare(chunk: Chunk, squareRadius: Int, handleError: (e: LocalizedException) -> Unit): ClaimStatistics
Link copied to clipboard
infix fun <TID : Any, Target : Entity<TID>> EntityClass<TID, Target>.via(table: Table): InnerTableLink<Int, Entity<Int>, TID, Target>
fun <TID : Any, Target : Entity<TID>> EntityClass<TID, Target>.via(sourceColumn: Column<EntityID<Int>>, targetColumn: Column<EntityID<TID>>): InnerTableLink<Int, Entity<Int>, TID, Target>