Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getComponentType()
- getSpawnConfigId()
- getSpawnController()
- setSpawnController(BeaconSpawnController)
- getNextSpawnAfter()
- isNextSpawnAfterRealtime()
- getDespawnSelfAfter()
- setSpawnAttempts(int)
- getSpawnWrapper()
- setSpawnWrapper(BeaconSpawnWrapper)
- getSpawnAttempts()
- getLastPlayerCount()
- setLastPlayerCount(int)
- getEnvironmentIndex()
- setEnvironmentIndex(int)
- getObjectiveUUID()
- setObjectiveUUID(UUID)
- isHiddenFromLivingEntity(Ref, Ref, ComponentAccessor)
- isCollidable()
- moveTo(Ref, double, double, double, ComponentAccessor)
- notifyFailedSpawn()
- notifySpawn(Ref, Ref, Store)
- prepareNextSpawnTimer(Ref, ComponentAccessor)
- clearDespawnTimer(Ref, ComponentAccessor)
- setToDespawnAfter(Ref, Duration, ComponentAccessor)
- markNPCUnspawnable(int)
- prepareSpawnContext(Vector3d, int, int, SpawningContext, CommandBuffer)
- create(BeaconSpawnWrapper, Vector3dc, Rotation3fc, ComponentAccessor)
- createHolder(BeaconSpawnWrapper, Vector3dc, Rotation3fc)
- toString()
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 Entity
Entity.DefaultAnimations -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<LegacySpawnBeaconEntity> The codec used to parse and serializeLegacySpawnBeaconEntityinstances.Fields inherited from class Entity
DISPLAY_NAME, LOGGER, UNASSIGNED_ID, UUID, VERSIONFields inherited from interface 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, org.joml.Vector3dc position, Rotation3fc rotation, ComponentAccessor<EntityStore> componentAccessor) static Holder<EntityStore> createHolder(BeaconSpawnWrapper spawnWrapper, org.joml.Vector3dc position, Rotation3fc rotation) intintintbooleanbooleanisHiddenFromLivingEntity(Ref<EntityStore> ref, Ref<EntityStore> targetRef, ComponentAccessor<EntityStore> componentAccessor) Determines whether this entity is hidden from the given target entitybooleanvoidmarkNPCUnspawnable(int roleIndex) voidmoveTo(Ref<EntityStore> ref, double locX, double locY, double locZ, ComponentAccessor<EntityStore> componentAccessor) voidvoidnotifySpawn(Ref<EntityStore> targetRef, Ref<EntityStore> spawnedEntity, Store<EntityStore> store) static voidprepareNextSpawnTimer(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) booleanprepareSpawnContext(org.joml.Vector3d playerPosition, int spawnsThisRound, int roleIndex, SpawningContext spawningContext, CommandBuffer<EntityStore> commandBuffer) voidsetEnvironmentIndex(int environmentIndex) voidsetLastPlayerCount(int lastPlayerCount) voidsetObjectiveUUID(UUID objectiveUUID) Called to set the objective UUID of this spawn beacon.voidsetSpawnAttempts(int spawnAttempts) voidsetSpawnController(BeaconSpawnController spawnController) voidsetSpawnWrapper(BeaconSpawnWrapper spawnWrapper) static voidsetToDespawnAfter(Ref<EntityStore> ref, Duration duration, ComponentAccessor<EntityStore> componentAccessor) toString()Methods inherited from class Entity
clearReference, clone, equals, getLegacyDisplayName, getNetworkId, getReference, getUuid, getWorld, hashCode, loadIntoWorld, markNeedsSave, remove, setLegacyUUID, setReference, toHolder, unloadFromWorld, wasRemovedMethods inherited from interface Component
cloneSerializable
-
Field Details
-
CODEC
The codec used to parse and serializeLegacySpawnBeaconEntityinstances.
-
-
Constructor Details
-
LegacySpawnBeaconEntity
-
-
Method Details
-
getComponentType
- Returns:
- the component type for the
LegacySpawnBeaconEntitycomponent.
-
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) -
getEnvironmentIndex
public int getEnvironmentIndex() -
setEnvironmentIndex
public void setEnvironmentIndex(int environmentIndex) -
getObjectiveUUID
- Returns:
- the objective UUID of this spawn beacon.
-
setObjectiveUUID
Called to set the objective UUID of this spawn beacon.- Parameters:
objectiveUUID- The objective UUID to set.
-
isHiddenFromLivingEntity
public boolean isHiddenFromLivingEntity(@Nonnull Ref<EntityStore> ref, @Nonnull Ref<EntityStore> targetRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor) Description copied from class:EntityDetermines whether this entity is hidden from the given target entity- Overrides:
isHiddenFromLivingEntityin classEntity- Parameters:
ref- The entity reference of this entitytargetRef- The entity reference of the target entitycomponentAccessor- TheComponentAccessorfor component access- Returns:
trueif they are hidden from the target entity,falseotherwise
-
isCollidable
public boolean isCollidable()- Overrides:
isCollidablein classEntity- Returns:
trueif this entity is collidable,falseotherwise.
-
moveTo
public void moveTo(@Nonnull Ref<EntityStore> ref, double locX, double locY, double locZ, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Overrides:
moveToin classEntity- Parameters:
ref- The entity reference of this entity.locX- The X coordinate to move to.locY- The Y coordinate to move to.locZ- The Z coordinate to move to.componentAccessor- TheComponentAccessor<EntityStore>for component access.
-
notifyFailedSpawn
public void notifyFailedSpawn() -
notifySpawn
public void notifySpawn(@Nonnull Ref<EntityStore> targetRef, @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 org.joml.Vector3d playerPosition, int spawnsThisRound, int roleIndex, @Nonnull SpawningContext spawningContext, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
create
@Nonnull public static it.unimi.dsi.fastutil.Pair<Ref<EntityStore>, LegacySpawnBeaconEntity> create(@Nonnull BeaconSpawnWrapper spawnWrapper, @Nonnull org.joml.Vector3dc position, @Nonnull Rotation3fc rotation, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
createHolder
public static Holder<EntityStore> createHolder(@Nonnull BeaconSpawnWrapper spawnWrapper, @Nonnull org.joml.Vector3dc position, @Nonnull Rotation3fc rotation) -
toString
-