Class GameplayHooks.DeathmatchDestinationRequest
java.lang.Object
dev.itsharshxd.zentrix.api.scenario.hook.GameplayHooks.DeathmatchDestinationRequest
- Enclosing class:
GameplayHooks
The deathmatch Zentrix is about to start, described as it would run it on its own.
Everything here is the configured deathmatch as it stands, which is what a scenario needs
in order to reproduce it somewhere else: remap the bounds and the spawns into its own world,
hand back a DeathmatchDestination, and the rest
of the deathmatch runs unchanged.
- Since:
- 1.6.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeathmatchDestinationRequest(@NotNull String templateWorldName, @NotNull String spawnType, @Nullable org.bukkit.Location borderCorner1, @Nullable org.bukkit.Location borderCorner2, @NotNull Collection<org.bukkit.Location> configuredSpawns, int participantCount) -
Method Summary
Modifier and TypeMethodDescription@NotNull Optional<org.bukkit.Location> One configured corner of the deathmatch border, in template-world coordinates.@NotNull Optional<org.bukkit.Location> The opposite configured corner, in template-world coordinates.@NotNull List<org.bukkit.Location> The configured custom spawns, in template-world coordinates; empty for random spawns.intHow many players are about to be moved into the deathmatch.@NotNull StringHow the configuration places players:RANDOMorCUSTOM.@NotNull StringThe template world Zentrix would copy.
-
Constructor Details
-
DeathmatchDestinationRequest
public DeathmatchDestinationRequest(@NotNull @NotNull String templateWorldName, @NotNull @NotNull String spawnType, @Nullable @Nullable org.bukkit.Location borderCorner1, @Nullable @Nullable org.bukkit.Location borderCorner2, @NotNull @NotNull Collection<org.bukkit.Location> configuredSpawns, int participantCount)
-
-
Method Details
-
templateWorldName
The template world Zentrix would copy. -
spawnType
How the configuration places players:RANDOMorCUSTOM. -
borderCorner1
One configured corner of the deathmatch border, in template-world coordinates.Empty when the deathmatch is configured without bounds, in which case a destination that wants a border has to decide on one itself.
-
borderCorner2
The opposite configured corner, in template-world coordinates. -
configuredSpawns
The configured custom spawns, in template-world coordinates; empty for random spawns. -
participantCount
public int participantCount()How many players are about to be moved into the deathmatch.
-