SpawnMarker

public class SpawnMarker implements JsonAssetWithMap, DefaultAssetMap, SpawnMarker>>

Class SpawnMarker. Provides spawnmarker functionality for the Hytale server.

java.lang.Object > SpawnMarker

Field Summary

data

private AssetExtraInfo.Data data

Field data.

id

protected String id

Field id.

model

protected String model

Field model.

weightedConfigurations

protected IWeightedMap weightedConfigurations

Field weightedConfigurations.

exclusionRadius

protected double exclusionRadius

Field exclusionRadius.

maxDropHeightSquared

protected double maxDropHeightSquared

Field maxDropHeightSquared.

realtimeRespawn

protected boolean realtimeRespawn

Field realtimeRespawn.

manualTrigger

protected boolean manualTrigger

Field manualTrigger.

deactivationDistance

protected double deactivationDistance

Field deactivationDistance.

deactivationTime

protected double deactivationTime

Field deactivationTime.

npc

protected String npc

Field npc.

weight

protected double weight

Field weight.

realtimeRespawnTime

protected double realtimeRespawnTime

Field realtimeRespawnTime.

spawnAfterGameTime

protected Duration spawnAfterGameTime

Field spawnAfterGameTime.

flockDefinitionId

protected String flockDefinitionId

Field flockDefinitionId.

flockDefinitionIndex

protected int flockDefinitionIndex

Field flockDefinitionIndex.

index

final int index

Field index.

Method Detail

getAssetStore

public > getAssetStore ()

Method getAssetStore.

getAssetMap

public SpawnMarker> getAssetMap ()

Method getAssetMap.

SpawnMarker

public protected SpawnMarker ()

Method SpawnMarker.

getWeightedConfigurations

public IWeightedMap getWeightedConfigurations ()

Method getWeightedConfigurations.

getId

public String getId ()

Method getId.

getModel

public String getModel ()

Method getModel.

getExclusionRadius

public double getExclusionRadius ()

Method getExclusionRadius.

getMaxDropHeightSquared

public double getMaxDropHeightSquared ()

Method getMaxDropHeightSquared.

isRealtimeRespawn

public boolean isRealtimeRespawn ()

Method isRealtimeRespawn.

isManualTrigger

public boolean isManualTrigger ()

Method isManualTrigger.

getDeactivationDistance

public double getDeactivationDistance ()

Method getDeactivationDistance.

getDeactivationTime

public double getDeactivationTime ()

Method getDeactivationTime.

mode

public 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 spawning plugin

SpawnConfiguration

public public SpawnConfiguration (final String npc, final double weight, final double realtimeRespawnTime, final Duration spawnAfterGameTime, final String flockDefinitionId)

Method SpawnConfiguration.

Parameters:
final String npc
final double weight
final double realtimeRespawnTime
final Duration spawnAfterGameTime
final String flockDefinitionId

getNpc

public String getNpc ()

Method getNpc.

getRealtimeRespawnTime

public double getRealtimeRespawnTime ()

Method getRealtimeRespawnTime.

getSpawnAfterGameTime

public Duration getSpawnAfterGameTime ()

Method getSpawnAfterGameTime.

getFlockDefinitionId

public String getFlockDefinitionId ()

Method getFlockDefinitionId.

getFlockDefinitionIndex

public int getFlockDefinitionIndex ()

Method getFlockDefinitionIndex.

getFlockDefinition

public FlockAsset getFlockDefinition ()

Method getFlockDefinition.

getWeight

public double getWeight ()

Method getWeight.

spawn

public 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-op spawn
i.e. a weighted chance of spawning nothing

P2DT3H4M

public form P2DT3H4M (2 days, 3 hours, and 4 minutes)

Method P2DT3H4M.

Parameters:
2 days
3 hours
and 4 minutes