Interface CorpseService
public interface CorpseService
Corpse spawning, persistent inventory, lookup, drop, death, and removal operations. @since 1.6.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleandropStoredItems(@NotNull ZentrixCorpse corpse) booleandropStoredItems(@NotNull ZentrixCorpse corpse, @NotNull org.bukkit.Location location) @NotNull Optional<ZentrixCorpse> get(@NotNull org.bukkit.entity.Entity entity) @NotNull Optional<ZentrixCorpse> getByEntityId(@NotNull UUID entityId) @NotNull List<ZentrixCorpse> getCorpses(@NotNull ZentrixGame game) @NotNull Optional<CorpseDropPolicy> @NotNull CorpseSettingsSnapshotintvoidhandleDeath(@NotNull ZentrixCorpse corpse, @NotNull org.bukkit.Location location) booleanisCorpse(@NotNull org.bukkit.entity.Entity entity) voidremove(@NotNull ZentrixCorpse corpse, @NotNull CorpseRemovalReason reason, boolean removeEntity) voidsetDropPolicyOverride(@NotNull CorpseDropPolicy policy) @NotNull CompletableFuture<ZentrixCorpse> spawn(@NotNull ZentrixGame game, @NotNull org.bukkit.entity.Player player, @NotNull CorpseSpawnRequest request) @NotNull CompletableFuture<Optional<ZentrixCorpse>> spawnIfEligible(@NotNull ZentrixGame game, @NotNull org.bukkit.entity.Player player, @NotNull CorpseLeaveReason reason)
-
Method Details
-
getSettings
-
getDropPolicyOverride
-
setDropPolicyOverride
-
clearDropPolicyOverride
void clearDropPolicyOverride() -
spawnIfEligible
@NotNull @NotNull CompletableFuture<Optional<ZentrixCorpse>> spawnIfEligible(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull CorpseLeaveReason reason) -
spawn
@NotNull @NotNull CompletableFuture<ZentrixCorpse> spawn(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull CorpseSpawnRequest request) -
getByEntityId
-
get
-
getCorpses
-
isCorpse
boolean isCorpse(@NotNull @NotNull org.bukkit.entity.Entity entity) -
getTotalCorpseCount
int getTotalCorpseCount() -
dropStoredItems
-
dropStoredItems
boolean dropStoredItems(@NotNull @NotNull ZentrixCorpse corpse, @NotNull @NotNull org.bukkit.Location location) -
handleDeath
void handleDeath(@NotNull @NotNull ZentrixCorpse corpse, @NotNull @NotNull org.bukkit.Location location) -
remove
void remove(@NotNull @NotNull ZentrixCorpse corpse, @NotNull @NotNull CorpseRemovalReason reason, boolean removeEntity)
-