public static interface NucleusRTPService.RTPOptions.Builder
Modifier and Type | Method and Description |
---|---|
NucleusRTPService.RTPOptions |
build()
Creates a
NucleusRTPService.RTPOptions from the state of this builder. |
NucleusRTPService.RTPOptions.Builder |
from(NucleusRTPService.RTPOptions options)
Sets this builder state from the specified
NucleusRTPService.RTPOptions |
NucleusRTPService.RTPOptions.Builder |
prohibitedBiome(org.spongepowered.api.world.biome.BiomeType biomeType)
Adds a
BiomeType to the prohibited biomes set. |
NucleusRTPService.RTPOptions.Builder |
reset()
Resets this builder to the default state.
|
NucleusRTPService.RTPOptions.Builder |
setMaxHeight(int min)
Sets the maximum height for the RTP.
|
NucleusRTPService.RTPOptions.Builder |
setMaxRadius(int max)
Sets the maximum radius for the RTP.
|
NucleusRTPService.RTPOptions.Builder |
setMinHeight(int max)
Sets the minimum height for the RTP.
|
NucleusRTPService.RTPOptions.Builder |
setMinRadius(int min)
Sets the minimum radius for the RTP.
|
NucleusRTPService.RTPOptions.Builder setMaxRadius(int max)
max
- the max radiusNucleusRTPService.RTPOptions.Builder setMinRadius(int min)
min
- the min radiusNucleusRTPService.RTPOptions.Builder setMinHeight(int max) throws IllegalArgumentException
max
- the minimum heightIllegalArgumentException
- if the height is not acceptableNucleusRTPService.RTPOptions.Builder setMaxHeight(int min) throws IllegalArgumentException
min
- the max heightIllegalArgumentException
- if the height to too highNucleusRTPService.RTPOptions.Builder prohibitedBiome(org.spongepowered.api.world.biome.BiomeType biomeType)
BiomeType
to the prohibited biomes set.biomeType
- The BiomeType
to add.NucleusRTPService.RTPOptions.Builder from(NucleusRTPService.RTPOptions options)
NucleusRTPService.RTPOptions
options
- The optiosnNucleusRTPService.RTPOptions build() throws IllegalStateException
NucleusRTPService.RTPOptions
from the state of this builder.NucleusRTPService.RTPOptions
IllegalStateException
- if the builder is not in the correct stateNucleusRTPService.RTPOptions.Builder reset()