SpawnMarkerEntity

public class SpawnMarkerEntity implements Component

Class SpawnMarkerEntity. Provides spawnmarkerentity functionality for the Hytale server.

java.lang.Object > SpawnMarkerEntity

Field Summary

spawnMarkerId

private String spawnMarkerId

Field spawnMarkerId.

cachedMarker

private SpawnMarker cachedMarker

Field cachedMarker.

respawnCounter

private double respawnCounter

Field respawnCounter.

gameTimeRespawn

private Duration gameTimeRespawn

Field gameTimeRespawn.

spawnAfter

private Instant spawnAfter

Field spawnAfter.

spawnCount

private int spawnCount

Field spawnCount.

suppressedBy

private Set suppressedBy

Field suppressedBy.

failedSpawns

private int failedSpawns

Field failedSpawns.

npcReferences

private InvalidatablePersistentRef[] npcReferences

Field npcReferences.

storedFlock

private StoredFlock storedFlock

Field storedFlock.

timeToDeactivation

private double timeToDeactivation

Field timeToDeactivation.

despawnStarted

private boolean despawnStarted

Field despawnStarted.

spawnLostTimeoutCounter

private double spawnLostTimeoutCounter

Field spawnLostTimeoutCounter.

ret

final Duration ret

Field ret.

spawn

final SpawnMarker.SpawnConfiguration spawn

Field spawn.

realtime

final boolean realtime

Field realtime.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

uuid

final UUID uuid

Field uuid.

roleName

final String roleName

Field roleName.

npcModule

final NPCPlugin npcModule

Field npcModule.

roleIndex

final int roleIndex

Field roleIndex.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

position

final Vector3d position

Field position.

builderInfo

final BuilderInfo builderInfo

Field builderInfo.

role

final Builder role

Field role.

results

final ObjectList> results

Field results.

hasPlayersInRange

final boolean hasPlayersInRange

Field hasPlayersInRange.

world

final World world

Field world.

testResult

final SpawnTestResult testResult

Field testResult.

spawnMarkerReference

final SpawnMarkerReference spawnMarkerReference

Field spawnMarkerReference.

worldgenIdComponent

final WorldGenId worldgenIdComponent

Field worldgenIdComponent.

worldgenId

final int worldgenId

Field worldgenId.

rotation

final Vector3f rotation

Field rotation.

npcRef

final Ref npcRef

Field npcRef.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

flockReference

final Ref flockReference

Field flockReference.

group

final EntityGroup group

Field group.

reference2

final InvalidatablePersistentRef reference2

Field reference2.

reference

final InvalidatablePersistentRef reference

Field reference.

spawnMarker

final SpawnMarkerEntity spawnMarker

Field spawnMarker.

modelName

final String modelName

Field modelName.

Method Detail

getComponentType

public SpawnMarkerEntity> getComponentType ()

Method getComponentType.

SpawnMarkerEntity

public public SpawnMarkerEntity ()

Method SpawnMarkerEntity.

getCachedMarker

public SpawnMarker getCachedMarker ()

Method getCachedMarker.

setCachedMarker

public void setCachedMarker (final SpawnMarker marker)

Method setCachedMarker.

Parameters:
final SpawnMarker marker

getSpawnCount

public int getSpawnCount ()

Method getSpawnCount.

setSpawnCount

public void setSpawnCount (final int spawnCount)

Method setSpawnCount.

Parameters:
final int spawnCount

setRespawnCounter

public void setRespawnCounter (final double respawnCounter)

Method setRespawnCounter.

Parameters:
final double respawnCounter

setSpawnAfter

public void setSpawnAfter (final Instant spawnAfter)

Method setSpawnAfter.

Parameters:
final Instant spawnAfter

getSpawnAfter

public Instant getSpawnAfter ()

Method getSpawnAfter.

setGameTimeRespawn

public void setGameTimeRespawn (final Duration gameTimeRespawn)

Method setGameTimeRespawn.

Parameters:
final Duration gameTimeRespawn

pollGameTimeRespawn

public Duration pollGameTimeRespawn ()

Method pollGameTimeRespawn.

tickRespawnTimer

public boolean tickRespawnTimer (final float dt)

Method tickRespawnTimer.

Parameters:
final float dt

getSuppressedBy

public Set getSuppressedBy ()

Method getSuppressedBy.

setStoredFlock

public void setStoredFlock (final StoredFlock storedFlock)

Method setStoredFlock.

Parameters:
final StoredFlock storedFlock

getStoredFlock

public StoredFlock getStoredFlock ()

Method getStoredFlock.

getTimeToDeactivation

public double getTimeToDeactivation ()

Method getTimeToDeactivation.

setTimeToDeactivation

public void setTimeToDeactivation (final double timeToDeactivation)

Method setTimeToDeactivation.

Parameters:
final double timeToDeactivation

tickTimeToDeactivation

public boolean tickTimeToDeactivation (final float dt)

Method tickTimeToDeactivation.

Parameters:
final float dt

tickSpawnLostTimeout

public boolean tickSpawnLostTimeout (final float dt)

Method tickSpawnLostTimeout.

Parameters:
final float dt

getSpawnPosition

public Vector3d getSpawnPosition ()

Method getSpawnPosition.

getNpcReferences

public InvalidatablePersistentRef[] getNpcReferences ()

Method getNpcReferences.

setNpcReferences

public void setNpcReferences (final InvalidatablePersistentRef[] npcReferences)

Method setNpcReferences.

Parameters:
final InvalidatablePersistentRef[] npcReferences

getTempStorageList

public NPCEntity>> getTempStorageList ()

Method getTempStorageList.

setTempStorageList

public void setTempStorageList (final List, NPCEntity>> tempStorageList)

Method setTempStorageList.

Parameters:
final List, NPCEntity>> tempStorageList

isDespawnStarted

public boolean isDespawnStarted ()

Method isDespawnStarted.

setDespawnStarted

public void setDespawnStarted (final boolean despawnStarted)

Method setDespawnStarted.

Parameters:
final boolean despawnStarted

refreshTimeout

public void refreshTimeout ()

Method refreshTimeout.

spawnNPC

public boolean spawnNPC (@Nonnull final Ref ref, @Nonnull final SpawnMarker marker, @Nonnull final Store store)

Method spawnNPC.

Parameters:
@Nonnull final Ref ref
@Nonnull final SpawnMarker marker
@Nonnull final Store store

WorldGenId

public new WorldGenId (worldgenId)

Method WorldGenId.

Parameters:
worldgenId worldgenId

fail

private void fail (@Nonnull final Ref self, final UUID uuid, final String npc, final Vector3d position, @Nonnull final Store store, final FailReason reason)

Method fail.

Parameters:
@Nonnull final Ref self
final UUID uuid
final String npc
final Vector3d position
@Nonnull final Store store
final FailReason reason

setSpawnMarker

public void setSpawnMarker (@Nonnull final SpawnMarker marker)

Method setSpawnMarker.

Parameters:
@Nonnull final SpawnMarker marker

decrementAndGetSpawnCount

public int decrementAndGetSpawnCount ()

Method decrementAndGetSpawnCount.

getSpawnMarkerId

public String getSpawnMarkerId ()

Method getSpawnMarkerId.

isManualTrigger

public boolean isManualTrigger ()

Method isManualTrigger.

trigger

public boolean trigger (@Nonnull final Ref markerRef, @Nonnull final Store store)

Method trigger.

Parameters:
@Nonnull final Ref markerRef
@Nonnull final Store store

suppress

public void suppress (final UUID suppressor)

Method suppress.

Parameters:
final UUID suppressor

releaseSuppression

public void releaseSuppression (final UUID suppressor)

Method releaseSuppression.

Parameters:
final UUID suppressor

clearAllSuppressions

public void clearAllSuppressions ()

Method clearAllSuppressions.

clone

public Component clone ()

Method clone.

toString

public String toString ()

Method toString.

getModel

static Model getModel (@Nonnull final SpawnMarker marker)

Method getModel.

Parameters:
@Nonnull final SpawnMarker marker