public class LegacySpawnBeaconEntity extends Entity
Class LegacySpawnBeaconEntity. Provides legacyspawnbeaconentity functionality for the Hytale server.
java.lang.Object > Entity > LegacySpawnBeaconEntity
Field Summary
spawnController
Field spawnController.
objectiveUUID
Field objectiveUUID.
spawnWrapper
Field spawnWrapper.
spawnConfigId
Field spawnConfigId.
nextSpawnAfter
Field nextSpawnAfter.
nextSpawnAfterRealtime
Field nextSpawnAfterRealtime.
despawnSelfAfter
Field despawnSelfAfter.
spawnAttempts
Field spawnAttempts.
lastPlayerCount
Field lastPlayerCount.
targetPlayerComponent
Field targetPlayerComponent.
floodFillPositionSelectorComponent
Field floodFillPositionSelectorComponent.
flockMembershipComponent
Field flockMembershipComponent.
flockReference
Field flockReference.
entityGroup
Field entityGroup.
legacySpawnBeaconComponent
Field legacySpawnBeaconComponent.
beaconSpawn
Field beaconSpawn.
realtime
Field realtime.
spawnAfterRange
Field spawnAfterRange.
nextValue
Field nextValue.
worldTimeResource
Field worldTimeResource.
spawnAfterRange2
Field spawnAfterRange2.
nextValue2
Field nextValue2.
transformComponent
Field transformComponent.
spawnBeaconReference
Field spawnBeaconReference.
npcComponent
Field npcComponent.
role
Field role.
spawn
Field spawn.
spawnState
Field spawnState.
holder
Field holder.
ref
Field ref.
entity
Field entity.
modelName
Field modelName.
displayNameComponent
Field displayNameComponent.
initialSpawnDelay
Field initialSpawnDelay.
delay
Field delay.
suppression
Field suppression.
Method Detail
getComponentType
LegacySpawnBeaconEntity>
getComponentType
()
Method getComponentType.
LegacySpawnBeaconEntity
public
LegacySpawnBeaconEntity
(@Nullable final World world)
Method LegacySpawnBeaconEntity.
- Parameters:
@Nullable final Worldworld
getSpawnConfigId
String
getSpawnConfigId
()
Method getSpawnConfigId.
setSpawnController
Method setSpawnController.
- Parameters:
@Nonnull final BeaconSpawnControllerspawnController
getNextSpawnAfter
Instant
getNextSpawnAfter
()
Method getNextSpawnAfter.
isNextSpawnAfterRealtime
boolean
isNextSpawnAfterRealtime
()
Method isNextSpawnAfterRealtime.
getDespawnSelfAfter
Instant
getDespawnSelfAfter
()
Method getDespawnSelfAfter.
setSpawnAttempts
void
setSpawnAttempts
(final int spawnAttempts)
Method setSpawnAttempts.
- Parameters:
final intspawnAttempts
getSpawnAttempts
int
getSpawnAttempts
()
Method getSpawnAttempts.
getLastPlayerCount
int
getLastPlayerCount
()
Method getLastPlayerCount.
setLastPlayerCount
void
setLastPlayerCount
(final int lastPlayerCount)
Method setLastPlayerCount.
- Parameters:
final intlastPlayerCount
setSpawnConfigId
void
setSpawnConfigId
(final String spawnConfigId)
Method setSpawnConfigId.
- Parameters:
final StringspawnConfigId
getObjectiveUUID
UUID
getObjectiveUUID
()
Method getObjectiveUUID.
setObjectiveUUID
void
setObjectiveUUID
(@Nullable final UUID objectiveUUID)
Method setObjectiveUUID.
- Parameters:
@Nullable final UUIDobjectiveUUID
isHiddenFromLivingEntity
boolean
isHiddenFromLivingEntity
(@Nonnull final Ref ref, @Nonnull final Ref targetRef, @Nonnull final ComponentAccessor componentAccessor)
Method isHiddenFromLivingEntity.
- Parameters:
@Nonnull final Refref@Nonnull final ReftargetRef@Nonnull final ComponentAccessorcomponentAccessor
isCollidable
boolean
isCollidable
()
Method isCollidable.
moveTo
void
moveTo
(@Nonnull final Ref ref, final double locX, final double locY, final double locZ, @Nonnull final ComponentAccessor componentAccessor)
Method moveTo.
- Parameters:
@Nonnull final Refreffinal doublelocXfinal doublelocYfinal doublelocZ@Nonnull final ComponentAccessorcomponentAccessor
notifyFailedSpawn
void
notifyFailedSpawn
()
Method notifyFailedSpawn.
notifySpawn
void
notifySpawn
(@Nonnull final Player target, @Nonnull final Ref spawnedEntity, @Nonnull final Store store)
Method notifySpawn.
- Parameters:
@Nonnull final Playertarget@Nonnull final RefspawnedEntity@Nonnull final Storestore
prepareNextSpawnTimer
void
prepareNextSpawnTimer
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method prepareNextSpawnTimer.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor
clearDespawnTimer
void
clearDespawnTimer
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method clearDespawnTimer.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor
setToDespawnAfter
void
setToDespawnAfter
(@Nonnull final Ref ref, @Nullable final Duration duration, @Nonnull final ComponentAccessor componentAccessor)
Method setToDespawnAfter.
- Parameters:
@Nonnull final Refref@Nullable final Durationduration@Nonnull final ComponentAccessorcomponentAccessor
markNPCUnspawnable
void
markNPCUnspawnable
(final int roleIndex)
Method markNPCUnspawnable.
- Parameters:
final introleIndex
prepareSpawnContext
boolean
prepareSpawnContext
(@Nonnull final Vector3d playerPosition, final int spawnsThisRound, final int roleIndex, @Nonnull final SpawningContext spawningContext, @Nonnull final CommandBuffer commandBuffer)
Method prepareSpawnContext.
- Parameters:
@Nonnull final Vector3dplayerPositionfinal intspawnsThisRoundfinal introleIndex@Nonnull final SpawningContextspawningContext@Nonnull final CommandBuffercommandBuffer
processSpawn
void
processSpawn
(@Nonnull final Ref ref, @Nonnull final Player target, @Nonnull final Store store)
Method processSpawn.
- Parameters:
@Nonnull final Refref@Nonnull final Playertarget@Nonnull final Storestore
create
LegacySpawnBeaconEntity>
create
(@Nonnull final BeaconSpawnWrapper spawnWrapper, @Nonnull final Vector3d position, @Nonnull final Vector3f rotation, @Nonnull final ComponentAccessor componentAccessor)
Method create.
- Parameters:
@Nonnull final BeaconSpawnWrapperspawnWrapper@Nonnull final Vector3dposition@Nonnull final Vector3frotation@Nonnull final ComponentAccessorcomponentAccessor
createHolder
Holder
createHolder
(@Nonnull final BeaconSpawnWrapper spawnWrapper, @Nonnull final Vector3d position, @Nonnull final Vector3f rotation)
Method createHolder.
- Parameters:
@Nonnull final BeaconSpawnWrapperspawnWrapper@Nonnull final Vector3dposition@Nonnull final Vector3frotation
TransformComponent
new
TransformComponent
(position, rotation)
Method TransformComponent.
- Parameters:
positionpositionrotationrotation
ModelComponent
new
ModelComponent
(model)
Method ModelComponent.
- Parameters:
modelmodel
PersistentModel
new
PersistentModel
(model.toReference()
Method PersistentModel.
- Parameters:
model.toReference(model.toReference(
DisplayNameComponent
new
DisplayNameComponent
(Message.raw(spawnConfigId)
Method DisplayNameComponent.
- Parameters:
Message.raw(spawnConfigIdMessage.raw(spawnConfigId
Nameplate
new
Nameplate
(spawnConfigId)
Method Nameplate.
- Parameters:
spawnConfigIdspawnConfigId
SpawnSuppressionComponent
new
SpawnSuppressionComponent
(suppression)
Method SpawnSuppressionComponent.
- Parameters:
suppressionsuppression
toString
String
toString
()
Method toString.