typesforbukkit
Version:
Types For Bukkit
57 lines (41 loc) • 1.81 kB
text/typescript
// API Link: https://tfb.neocities.org/1.16.5/org/bukkit/Raid
namespace org.bukkit {
/** @description Represents a raid event */
export interface Raid {
/** @description Gets the amount of ticks this raid has existed */
getActiveTicks() : long;
/** @description Gets the Bad Omen level of this raid */
getBadOmenLevel() : int;
/** @description Get the UUID of all heroes in this raid */
getHeroes() : java.util.Set<java.util.UUID>;
/** @description Gets the center location where the raid occurs */
getLocation() : org.bukkit.Location;
/** @description Gets all remaining Raider in the present wave */
getRaiders() : java.util.List<org.bukkit.entity.Raider>;
/** @description Gets the number of raider groups which have spawned */
getSpawnedGroups() : int;
/** @description Gets the current status of the raid */
getStatus() : org.bukkit.Raid_$_RaidStatus;
/** @description Gets the number of raider groups which would spawn */
getTotalGroups() : int;
/** @description Gets the sum of all raider's health */
getTotalHealth() : float;
/** @description Gets the number of waves in this raid (exclude the additional wave) */
getTotalWaves() : int;
/** @description Get whether this raid started */
isStarted() : boolean;
/** @description Sets the Bad Omen level */
setBadOmenLevel(badOmenLevel: int) : void;
}
/** @description Represents the status of a Raid */
export enum Raid_$_RaidStatus {
/** @description The village has fallen (ie */
LOSS,
/** @description The raid is in progress */
ONGOING,
/** @description The raid was terminated */
STOPPED,
/** @description The raid was beaten by heroes */
VICTORY
}
}