RoleSpawnParameters

public class RoleSpawnParameters implements IWeightedElement

Class RoleSpawnParameters. Provides rolespawnparameters functionality for the Hytale server.

java.lang.Object > RoleSpawnParameters

Field Summary

id

protected String id

Field id.

weight

protected double weight

Field weight.

spawnBlockSet

protected String spawnBlockSet

Field spawnBlockSet.

spawnBlockSetIndex

protected int spawnBlockSetIndex

Field spawnBlockSetIndex.

spawnFluidTag

protected String spawnFluidTag

Field spawnFluidTag.

spawnFluidTagIndex

protected int spawnFluidTagIndex

Field spawnFluidTagIndex.

flockDefinitionId

protected String flockDefinitionId

Field flockDefinitionId.

flockDefinitionIndex

protected int flockDefinitionIndex

Field flockDefinitionIndex.

index

final int index

Field index.

Method Detail

RoleSpawnParameters

public public RoleSpawnParameters (final String id, final double weight, final String spawnBlockSet, final String flockDefinitionId)

Method RoleSpawnParameters.

Parameters:
final String id
final double weight
final String spawnBlockSet
final String flockDefinitionId

getId

public String getId ()

Method getId.

getWeight

public double getWeight ()

Method getWeight.

getSpawnBlockSet

public String getSpawnBlockSet ()

Method getSpawnBlockSet.

getSpawnBlockSetIndex

public int getSpawnBlockSetIndex ()

Method getSpawnBlockSetIndex.

getSpawnFluidTagIndex

public int getSpawnFluidTagIndex ()

Method getSpawnFluidTagIndex.

getFlockDefinitionId

public String getFlockDefinitionId ()

Method getFlockDefinitionId.

getFlockDefinitionIndex

public int getFlockDefinitionIndex ()

Method getFlockDefinitionIndex.

getFlockDefinition

public FlockAsset getFlockDefinition ()

Method getFlockDefinition.

toString

public String toString ()

Method toString.

NPC

public this NPC (chance of being spawned is this value relative to the sum of all weights)

Method NPC.

Parameters:
chance of being spawned is this value relative to the sum of all weights