Package sawfowl.commandpack.api
Interface RandomTeleportService.RandomTeleportOptions.Builder
- All Superinterfaces:
AbstractBuilder<RandomTeleportService.RandomTeleportOptions>
,Builder<RandomTeleportService.RandomTeleportOptions,
,RandomTeleportService.RandomTeleportOptions.Builder> ResettableBuilder<RandomTeleportService.RandomTeleportOptions,
RandomTeleportService.RandomTeleportOptions.Builder>
- Enclosing interface:
- RandomTeleportService.RandomTeleportOptions
public static interface RandomTeleportService.RandomTeleportOptions.Builder
extends AbstractBuilder<RandomTeleportService.RandomTeleportOptions>, Builder<RandomTeleportService.RandomTeleportOptions,RandomTeleportService.RandomTeleportOptions.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionsetAttempts
(int value) setMaxY
(int value) Maximum height when searching for a position.setMinRadius
(int value) Minimum search radius for a random position.setMinY
(int value) Minimum height when searching for a position.setOnlySurface
(boolean value) If true, teleportation will always take place on the surface.setProhibitedBiomes
(Set<String> value) Biomes that should be excluded from the position search.setProhibitedBiomesRegistry
(Set<Biome> value) Biomes that should be excluded from the position search.Biomes that should be excluded from the position search.setProhibitedBlocks
(Set<String> prohibitedBlocks) Blocks specified in this list will not be available for teleportation by random coordinates.setProhibitedLiquids
(boolean prohibitedLiquids) If true, the search for the correct position will skip fluid blocks.setRadius
(int value) Radius of search for a random position.setStartFromWorldSpawn
(boolean value) Search for a random point around the world spawn.setWorldID
(String value) Specifies the ID of the target world.setWorldKey
(ResourceKey value) Specifies the ID of the target world.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
-
Method Details
-
setAttempts
-
setWorldKey
Specifies the ID of the target world. -
setWorldID
Specifies the ID of the target world.- Throws:
Exception
-
setStartFromWorldSpawn
Search for a random point around the world spawn. -
setMinRadius
Minimum search radius for a random position. -
setRadius
Radius of search for a random position. -
setMaxY
Maximum height when searching for a position. -
setMinY
Minimum height when searching for a position. -
setProhibitedBiomes
Biomes that should be excluded from the position search. -
setProhibitedBiomesRegistry
Biomes that should be excluded from the position search. -
setProhibitedBiomesRegistryReference
RandomTeleportService.RandomTeleportOptions.Builder setProhibitedBiomesRegistryReference(Set<RegistryReference<Biome>> value) Biomes that should be excluded from the position search. -
setOnlySurface
If true, teleportation will always take place on the surface. -
setProhibitedLiquids
If true, the search for the correct position will skip fluid blocks. -
setProhibitedBlocks
RandomTeleportService.RandomTeleportOptions.Builder setProhibitedBlocks(Set<String> prohibitedBlocks) Blocks specified in this list will not be available for teleportation by random coordinates.
-