Class LegacySpawnBeaconEntity
java.lang.Object
com.hypixel.hytale.server.core.entity.Entity
com.hypixel.hytale.server.spawning.beacons.LegacySpawnBeaconEntity
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.server.core.entity.Entity
Entity.DefaultAnimations -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<LegacySpawnBeaconEntity> private Instantprivate intprivate Instantprivate booleanprotected UUIDprivate intprivate Stringprivate BeaconSpawnControllerprivate BeaconSpawnWrapperFields inherited from class com.hypixel.hytale.server.core.entity.Entity
DISPLAY_NAME, legacyDisplayName, legacyUuid, LOGGER, MODEL, networkId, reference, removedBy, UNASSIGNED_ID, UUID, VERSION, wasRemoved, worldFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclearDespawnTimer(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) static it.unimi.dsi.fastutil.Pair<Ref<EntityStore>, LegacySpawnBeaconEntity> create(BeaconSpawnWrapper spawnWrapper, Vector3d position, Vector3f rotation, ComponentAccessor<EntityStore> componentAccessor) static Holder<EntityStore> createHolder(BeaconSpawnWrapper spawnWrapper, Vector3d position, Vector3f rotation) intintbooleanbooleanisHiddenFromLivingEntity(Ref<EntityStore> ref, Ref<EntityStore> targetRef, ComponentAccessor<EntityStore> componentAccessor) booleanvoidmarkNPCUnspawnable(int roleIndex) voidmoveTo(Ref<EntityStore> ref, double locX, double locY, double locZ, ComponentAccessor<EntityStore> componentAccessor) voidvoidnotifySpawn(Player target, Ref<EntityStore> spawnedEntity, Store<EntityStore> store) static voidprepareNextSpawnTimer(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) booleanprepareSpawnContext(Vector3d playerPosition, int spawnsThisRound, int roleIndex, SpawningContext spawningContext, CommandBuffer<EntityStore> commandBuffer) private voidprocessSpawn(Ref<EntityStore> ref, Player target, Store<EntityStore> store) voidsetLastPlayerCount(int lastPlayerCount) voidsetObjectiveUUID(UUID objectiveUUID) voidsetSpawnAttempts(int spawnAttempts) private voidsetSpawnConfigId(String spawnConfigId) private voidvoidsetSpawnController(BeaconSpawnController spawnController) voidsetSpawnWrapper(BeaconSpawnWrapper spawnWrapper) static voidsetToDespawnAfter(Ref<EntityStore> ref, Duration duration, ComponentAccessor<EntityStore> componentAccessor) toString()Methods inherited from class com.hypixel.hytale.server.core.entity.Entity
clearReference, clone, equals, getLegacyDisplayName, getNetworkId, getReference, getTransformComponent, getUuid, getWorld, hashCode, loadIntoWorld, markNeedsSave, remove, setLegacyUUID, setReference, setTransformComponent, toHolder, unloadFromWorld, wasRemovedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
CODEC
-
spawnController
-
objectiveUUID
-
spawnWrapper
-
spawnConfigId
-
nextSpawnAfter
-
nextSpawnAfterRealtime
private boolean nextSpawnAfterRealtime -
despawnSelfAfter
-
spawnAttempts
private int spawnAttempts -
lastPlayerCount
private int lastPlayerCount
-
-
Constructor Details
-
LegacySpawnBeaconEntity
-
LegacySpawnBeaconEntity
private LegacySpawnBeaconEntity()
-
-
Method Details
-
getComponentType
-
getSpawnConfigId
-
getSpawnController
-
setSpawnController
-
getNextSpawnAfter
-
isNextSpawnAfterRealtime
public boolean isNextSpawnAfterRealtime() -
getDespawnSelfAfter
-
setSpawnAttempts
public void setSpawnAttempts(int spawnAttempts) -
getSpawnWrapper
-
setSpawnWrapper
-
getSpawnAttempts
public int getSpawnAttempts() -
getLastPlayerCount
public int getLastPlayerCount() -
setLastPlayerCount
public void setLastPlayerCount(int lastPlayerCount) -
setSpawnConfiguration
-
setSpawnConfigId
-
getObjectiveUUID
-
setObjectiveUUID
-
isHiddenFromLivingEntity
public boolean isHiddenFromLivingEntity(@Nonnull Ref<EntityStore> ref, @Nonnull Ref<EntityStore> targetRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Overrides:
isHiddenFromLivingEntityin classEntity
-
isCollidable
public boolean isCollidable()- Overrides:
isCollidablein classEntity
-
moveTo
public void moveTo(@Nonnull Ref<EntityStore> ref, double locX, double locY, double locZ, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
notifyFailedSpawn
public void notifyFailedSpawn() -
notifySpawn
public void notifySpawn(@Nonnull Player target, @Nonnull Ref<EntityStore> spawnedEntity, @Nonnull Store<EntityStore> store) -
prepareNextSpawnTimer
public static void prepareNextSpawnTimer(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
clearDespawnTimer
public static void clearDespawnTimer(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
setToDespawnAfter
public static void setToDespawnAfter(@Nonnull Ref<EntityStore> ref, @Nullable Duration duration, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
markNPCUnspawnable
public void markNPCUnspawnable(int roleIndex) -
prepareSpawnContext
public boolean prepareSpawnContext(@Nonnull Vector3d playerPosition, int spawnsThisRound, int roleIndex, @Nonnull SpawningContext spawningContext, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
processSpawn
private void processSpawn(@Nonnull Ref<EntityStore> ref, @Nonnull Player target, @Nonnull Store<EntityStore> store) -
create
@Nonnull public static it.unimi.dsi.fastutil.Pair<Ref<EntityStore>,LegacySpawnBeaconEntity> create(@Nonnull BeaconSpawnWrapper spawnWrapper, @Nonnull Vector3d position, @Nonnull Vector3f rotation, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
createHolder
public static Holder<EntityStore> createHolder(@Nonnull BeaconSpawnWrapper spawnWrapper, @Nonnull Vector3d position, @Nonnull Vector3f rotation) -
toString
-