Interface CornucopiaService
public interface CornucopiaService
Schematic validation, podium assignment, cage overrides, and release lifecycle. Placement and
player operations must run on the Bukkit main thread.
- Since:
- 1.6.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclearPlayerCageMaterial(@NotNull UUID playerId) @NotNull Optional<org.bukkit.Material> @NotNull Optional<org.bukkit.Material> getPlayerCageMaterial(@NotNull UUID playerId) getPodiumAssignments(@NotNull ZentrixGame game) @NotNull CornucopiaPreparationgetPreparation(@NotNull ZentrixGame game) voidprepare(@NotNull ZentrixGame game) Starts preparation if the game does not already own preparation state.voidremoveFromReleaseCountdown(@NotNull ZentrixGame game, @NotNull org.bukkit.entity.Player player) voidsetGlobalCageMaterial(@NotNull org.bukkit.Material material) Runtime override used for every subsequently created cage until cleared.voidsetPlayerCageMaterial(@NotNull UUID playerId, @NotNull org.bukkit.Material material) Runtime override for the cage assigned to one player.booleanshouldUse(@NotNull ZentrixGame game) booleanstartReleaseCountdown(@NotNull ZentrixGame game, @NotNull Runnable onRelease) Starts the configured physical release countdown and invokes the callback on release.booleanteleportPlayersToPodiums(@NotNull ZentrixGame game) @NotNull CornucopiaSchematicStatusvalidateSchematic(@NotNull String schematic, @NotNull org.bukkit.Material podiumBlock)
-
Method Details
-
validateSchematic
@NotNull @NotNull CornucopiaSchematicStatus validateSchematic(@NotNull @NotNull String schematic, @NotNull @NotNull org.bukkit.Material podiumBlock) -
prepare
Starts preparation if the game does not already own preparation state. -
getPreparation
-
shouldUse
-
teleportPlayersToPodiums
-
getPodiumAssignments
@NotNull @NotNull Map<UUID,org.bukkit.Location> getPodiumAssignments(@NotNull @NotNull ZentrixGame game) -
setGlobalCageMaterial
void setGlobalCageMaterial(@NotNull @NotNull org.bukkit.Material material) Runtime override used for every subsequently created cage until cleared. Cages that already stand are repainted immediately, and clearing the override repaints them back to each game's configured material. Per-player overrides always win over the global one. -
clearGlobalCageMaterial
void clearGlobalCageMaterial() -
getGlobalCageMaterial
-
setPlayerCageMaterial
void setPlayerCageMaterial(@NotNull @NotNull UUID playerId, @NotNull @NotNull org.bukkit.Material material) Runtime override for the cage assigned to one player. -
clearPlayerCageMaterial
-
getPlayerCageMaterial
-
startReleaseCountdown
boolean startReleaseCountdown(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull Runnable onRelease) Starts the configured physical release countdown and invokes the callback on release. -
removeFromReleaseCountdown
void removeFromReleaseCountdown(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull org.bukkit.entity.Player player)
-