abstract class SpawnWrapper
Class SpawnWrapper. Provides spawnwrapper functionality for the Hytale server.
java.lang.Object > SpawnWrapper
Field Summary
roles
protected
Int2ObjectMap
roles
Field roles.
spawnBlockSet
final
int
spawnBlockSet
Field spawnBlockSet.
world
final
World
world
Field world.
worldTimeResource
final
WorldTimeResource
worldTimeResource
Field worldTimeResource.
dayTimeRange
final
double[]
dayTimeRange
Field dayTimeRange.
moonPhaseRange
final
int[]
moonPhaseRange
Field moonPhaseRange.
withinTimeRange
final
boolean
withinTimeRange
Field withinTimeRange.
despawnParams
final
NPCSpawn.DespawnParameters
despawnParams
Field despawnParams.
blockChunk
final
BlockChunk
blockChunk
Field blockChunk.
store
final
Store
store
Field store.
npcModule
final
NPCPlugin
npcModule
Field npcModule.
spawningModule
final
SpawningPlugin
spawningModule
Field spawningModule.
name
final
String
name
Field name.
roleIndex
final
int
roleIndex
Field roleIndex.
Method Detail
SpawnWrapper
public
public
SpawnWrapper
(final int spawnIndex, @Nonnull final T spawn)
Method SpawnWrapper.
- Parameters:
final intspawnIndex@Nonnull final Tspawn
getSpawn
public
T
getSpawn
()
Method getSpawn.
getRoles
public
Int2ObjectMap
getRoles
()
Method getRoles.
getSpawnBlockSet
public
IntSet
getSpawnBlockSet
(final int roleIndex)
Method getSpawnBlockSet.
- Parameters:
final introleIndex
getSpawnFluidTag
public
int
getSpawnFluidTag
(final int roleIndex)
Method getSpawnFluidTag.
- Parameters:
final introleIndex
getSpawnIndex
public
int
getSpawnIndex
()
Method getSpawnIndex.
getLightRangePredicate
Method getLightRangePredicate.
hasInvalidNPC
public
boolean
hasInvalidNPC
(final String name)
Method hasInvalidNPC.
- Parameters:
final Stringname
spawnParametersMatch
Method spawnParametersMatch.
- Parameters:
@Nonnull final ComponentAccessorcomponentAccessor
shouldDespawn
public
boolean
shouldDespawn
(@Nonnull final World world, @Nonnull final WorldTimeResource timeManager)
Method shouldDespawn.
- Parameters:
@Nonnull final Worldworld@Nonnull final WorldTimeResourcetimeManager
withinLightRange
Method withinLightRange.
- Parameters:
@Nonnull final SpawningContextspawningContext
addRoles
private
void
addRoles
()
Method addRoles.