classpublicPriority 3
SpawnMarkerEntity
com.hypixel.hytale.server.spawning.spawnmarkers.SpawnMarkerEntity
implements Component
38
Methods
38
Public Methods
15
Fields
1
Constructors
Constants
BuilderCodec<SpawnMarkerEntity>CODEC= BuilderCodec.builder(SpawnMarkerEntity.class, SpawnMarkerEntity::new)
.addField(
n...
intMAX_FAILED_SPAWNS= 5
ArrayCodec<InvalidatablePersistentRef>NPC_REFERENCES_CODEC= new ArrayCodec<>(
InvalidatablePersistentRef.CODEC, InvalidatablePersistentRef[]::new
)
doubleSPAWN_LOST_TIMEOUT= 35.0
Constructors
public
SpawnMarkerEntity()Methods
Public Methods (38)
public
void clearAllSuppressions()public
Component<EntityStore> clone()@Nonnull@Override
public
int decrementAndGetSpawnCount()public
SpawnMarker getCachedMarker()publicstatic
ComponentType<EntityStore, SpawnMarkerEntity> getComponentType()publicstatic
Model getModel(SpawnMarker marker)public
InvalidatablePersistentRef[] getNpcReferences()public
Instant getSpawnAfter()@Nullable
public
int getSpawnCount()public
String getSpawnMarkerId()public
Vector3d getSpawnPosition()@Nonnull
public
StoredFlock getStoredFlock()@Nullable
public
Set<UUID> getSuppressedBy()@Nullable
public
List<Pair<Ref<EntityStore>, NPCEntity>> getTempStorageList()@Nullable
public
double getTimeToDeactivation()public
boolean isDespawnStarted()public
boolean isManualTrigger()public
Duration pollGameTimeRespawn()@Nullable
public
void refreshTimeout()public
void releaseSuppression(UUID suppressor)public
void setCachedMarker(SpawnMarker marker)public
void setDespawnStarted(boolean despawnStarted)public
void setGameTimeRespawn(Duration gameTimeRespawn)public
void setNpcReferences(InvalidatablePersistentRef[] npcReferences)public
void setRespawnCounter(double respawnCounter)public
void setSpawnAfter(Instant spawnAfter)public
void setSpawnCount(int spawnCount)public
void setSpawnMarker(SpawnMarker marker)public
void setStoredFlock(StoredFlock storedFlock)public
void setTempStorageList(List<Pair<Ref<EntityStore>, NPCEntity>> tempStorageList)public
void setTimeToDeactivation(double timeToDeactivation)public
boolean spawnNPC(Ref<EntityStore> ref, SpawnMarker marker, Store<EntityStore> store)public
void suppress(UUID suppressor)public
boolean tickRespawnTimer(float dt)public
boolean tickSpawnLostTimeout(float dt)public
boolean tickTimeToDeactivation(float dt)public
String toString()@Nonnull@Override
public
boolean trigger(Ref<EntityStore> markerRef, Store<EntityStore> store)Fields
Private/Package Fields (15)
private
SpawnMarker cachedMarkerprivate
SpawningContext contextprivate
boolean despawnStartedprivate
int failedSpawnsprivate
Duration gameTimeRespawnprivate
InvalidatablePersistentRef[] npcReferencesprivate
double respawnCounterprivate
Instant spawnAfterprivate
int spawnCountprivate
double spawnLostTimeoutCounterprivate
String spawnMarkerIdprivate
StoredFlock storedFlockprivate
Set<UUID> suppressedByprivate
List<Pair<Ref<EntityStore>, NPCEntity>> tempStorageListprivate
double timeToDeactivation