public class SpawnMarker implementsJsonAssetWithMap,DefaultAssetMap,SpawnMarker>>
Class SpawnMarker. Provides spawnmarker functionality for the Hytale server.
java.lang.Object > SpawnMarker
Field Summary
data
Field data.
id
Field id.
model
Field model.
weightedConfigurations
Field weightedConfigurations.
exclusionRadius
Field exclusionRadius.
maxDropHeightSquared
Field maxDropHeightSquared.
realtimeRespawn
Field realtimeRespawn.
manualTrigger
Field manualTrigger.
deactivationDistance
Field deactivationDistance.
deactivationTime
Field deactivationTime.
npc
Field npc.
weight
Field weight.
realtimeRespawnTime
Field realtimeRespawnTime.
spawnAfterGameTime
Field spawnAfterGameTime.
flockDefinitionId
Field flockDefinitionId.
flockDefinitionIndex
Field flockDefinitionIndex.
index
Field index.
Method Detail
getAssetStore
>
getAssetStore
()
Method getAssetStore.
getAssetMap
SpawnMarker>
getAssetMap
()
Method getAssetMap.
SpawnMarker
protected
SpawnMarker
()
Method SpawnMarker.
getWeightedConfigurations
Method getWeightedConfigurations.
getId
String
getId
()
Method getId.
getModel
String
getModel
()
Method getModel.
getExclusionRadius
double
getExclusionRadius
()
Method getExclusionRadius.
getMaxDropHeightSquared
double
getMaxDropHeightSquared
()
Method getMaxDropHeightSquared.
isRealtimeRespawn
boolean
isRealtimeRespawn
()
Method isRealtimeRespawn.
isManualTrigger
boolean
isManualTrigger
()
Method isManualTrigger.
getDeactivationDistance
double
getDeactivationDistance
()
Method getDeactivationDistance.
getDeactivationTime
double
getDeactivationTime
()
Method getDeactivationTime.
mode
creative
mode
(this has a default value which can be specified using **DefaultSpawnMarkerModel** in the server config for the spawning plugin)
Method mode.
- Parameters:
this has a default value which can be specified using **DefaultSpawnMarkerModel** in the server config for the spawningplugin
SpawnConfiguration
public
SpawnConfiguration
(final String npc, final double weight, final double realtimeRespawnTime, final Duration spawnAfterGameTime, final String flockDefinitionId)
Method SpawnConfiguration.
- Parameters:
final Stringnpcfinal doubleweightfinal doublerealtimeRespawnTimefinal DurationspawnAfterGameTimefinal StringflockDefinitionId
getNpc
String
getNpc
()
Method getNpc.
getRealtimeRespawnTime
double
getRealtimeRespawnTime
()
Method getRealtimeRespawnTime.
getSpawnAfterGameTime
Duration
getSpawnAfterGameTime
()
Method getSpawnAfterGameTime.
getFlockDefinitionId
String
getFlockDefinitionId
()
Method getFlockDefinitionId.
getFlockDefinitionIndex
int
getFlockDefinitionIndex
()
Method getFlockDefinitionIndex.
getWeight
double
getWeight
()
Method getWeight.
spawn
to
spawn
(omitting this results in a no-op spawn, i.e. a weighted chance of spawning nothing)
Method spawn.
- Parameters:
omitting this results in a no-opspawni.e. a weighted chance of spawningnothing
P2DT3H4M
form
P2DT3H4M
(2 days, 3 hours, and 4 minutes)
Method P2DT3H4M.
- Parameters:
2days3hoursand 4minutes