Class SpawnMarkerEntity
java.lang.Object
com.hypixel.hytale.server.spawning.spawnmarkers.SpawnMarkerEntity
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SpawnMarkerstatic final BuilderCodec<SpawnMarkerEntity> private final SpawningContextprivate booleanprivate intprivate Durationprivate static final intstatic final ArrayCodec<InvalidatablePersistentRef> private InvalidatablePersistentRef[]private doubleprivate static final doubleprivate Instantprivate intprivate doubleprivate Stringprivate final Vector3dprivate StoredFlockprivate List<it.unimi.dsi.fastutil.Pair<Ref<EntityStore>, NPCEntity>> private doubleFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclone()intprivate voidfail(Ref<EntityStore> self, UUID uuid, String npc, Vector3d position, Store<EntityStore> store, SpawnMarkerEntity.FailReason reason) static ModelgetModel(SpawnMarker marker) intList<it.unimi.dsi.fastutil.Pair<Ref<EntityStore>, NPCEntity>> doublebooleanbooleanvoidvoidreleaseSuppression(UUID suppressor) voidsetCachedMarker(SpawnMarker marker) voidsetDespawnStarted(boolean despawnStarted) voidsetGameTimeRespawn(Duration gameTimeRespawn) voidsetNpcReferences(InvalidatablePersistentRef[] npcReferences) voidsetRespawnCounter(double respawnCounter) voidsetSpawnAfter(Instant spawnAfter) voidsetSpawnCount(int spawnCount) voidsetSpawnMarker(SpawnMarker marker) voidsetStoredFlock(StoredFlock storedFlock) voidsetTempStorageList(List<it.unimi.dsi.fastutil.Pair<Ref<EntityStore>, NPCEntity>> tempStorageList) voidsetTimeToDeactivation(double timeToDeactivation) booleanspawnNPC(Ref<EntityStore> ref, SpawnMarker marker, Store<EntityStore> store) voidbooleantickRespawnTimer(float dt) booleantickSpawnLostTimeout(float dt) booleantickTimeToDeactivation(float dt) toString()booleantrigger(Ref<EntityStore> markerRef, Store<EntityStore> store) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
SPAWN_LOST_TIMEOUT
private static final double SPAWN_LOST_TIMEOUT- See Also:
-
NPC_REFERENCES_CODEC
-
CODEC
-
MAX_FAILED_SPAWNS
private static final int MAX_FAILED_SPAWNS- See Also:
-
spawnMarkerId
-
cachedMarker
-
respawnCounter
private double respawnCounter -
gameTimeRespawn
-
spawnAfter
-
spawnCount
private int spawnCount -
suppressedBy
-
failedSpawns
private int failedSpawns -
context
-
spawnPosition
-
npcReferences
-
storedFlock
-
tempStorageList
-
timeToDeactivation
private double timeToDeactivation -
despawnStarted
private boolean despawnStarted -
spawnLostTimeoutCounter
private double spawnLostTimeoutCounter
-
-
Constructor Details
-
SpawnMarkerEntity
public SpawnMarkerEntity()
-
-
Method Details
-
getComponentType
-
getCachedMarker
-
setCachedMarker
-
getSpawnCount
public int getSpawnCount() -
setSpawnCount
public void setSpawnCount(int spawnCount) -
setRespawnCounter
public void setRespawnCounter(double respawnCounter) -
setSpawnAfter
-
getSpawnAfter
-
setGameTimeRespawn
-
pollGameTimeRespawn
-
tickRespawnTimer
public boolean tickRespawnTimer(float dt) -
getSuppressedBy
-
setStoredFlock
-
getStoredFlock
-
getTimeToDeactivation
public double getTimeToDeactivation() -
setTimeToDeactivation
public void setTimeToDeactivation(double timeToDeactivation) -
tickTimeToDeactivation
public boolean tickTimeToDeactivation(float dt) -
tickSpawnLostTimeout
public boolean tickSpawnLostTimeout(float dt) -
getSpawnPosition
-
getNpcReferences
-
setNpcReferences
-
getTempStorageList
-
setTempStorageList
public void setTempStorageList(List<it.unimi.dsi.fastutil.Pair<Ref<EntityStore>, NPCEntity>> tempStorageList) -
isDespawnStarted
public boolean isDespawnStarted() -
setDespawnStarted
public void setDespawnStarted(boolean despawnStarted) -
refreshTimeout
public void refreshTimeout() -
spawnNPC
public boolean spawnNPC(@Nonnull Ref<EntityStore> ref, @Nonnull SpawnMarker marker, @Nonnull Store<EntityStore> store) -
fail
private void fail(@Nonnull Ref<EntityStore> self, UUID uuid, String npc, Vector3d position, @Nonnull Store<EntityStore> store, SpawnMarkerEntity.FailReason reason) -
setSpawnMarker
-
decrementAndGetSpawnCount
public int decrementAndGetSpawnCount() -
getSpawnMarkerId
-
isManualTrigger
public boolean isManualTrigger() -
trigger
-
suppress
-
releaseSuppression
-
clearAllSuppressions
public void clearAllSuppressions() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-
toString
-
getModel
-