public class SpawnMarkerSystems
Class SpawnMarkerSystems. Provides spawnmarkersystems functionality for the Hytale server.
java.lang.Object > SpawnMarkerSystems
Field Summary
spawnMarker
Field spawnMarker.
modelReference
Field modelReference.
worldgenId
Field worldgenId.
marker
Field marker.
entity
Field entity.
context
Field context.
transform
Field transform.
world
Field world.
cachedMarker
Field cachedMarker.
storedFlock
Field storedFlock.
hasPlayersInRange
Field hasPlayersInRange.
npcReferences
Field npcReferences.
npcRef
Field npcRef.
npcComponent
Field npcComponent.
isDead
Field isDead.
npcRef2
Field npcRef2.
npcComponent2
Field npcComponent2.
modelComponent
Field modelComponent.
despawnAnimationTime
Field despawnAnimationTime.
refId
Field refId.
npcRef3
Field npcRef3.
spawnMarkerReference
Field spawnMarkerReference.
position
Field position.
rotation
Field rotation.
npcReferences2
Field npcReferences2.
ref4
Field ref4.
npc
Field npc.
npcTransform
Field npcTransform.
npcHeadRotation
Field npcHeadRotation.
reference3
Field reference3.
refId2
Field refId2.
ref2
Field ref2.
ref3
Field ref3.
worldTimeResource
Field worldTimeResource.
Method Detail
LegacyEntityMigration
public
LegacyEntityMigration
()
Method LegacyEntityMigration.
onEntityAdd
void
onEntityAdd
(@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)
Method onEntityAdd.
- Parameters:
@Nonnull final Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
PersistentModel
new
PersistentModel
(modelReference)
Method PersistentModel.
- Parameters:
modelReferencemodelReference
Nameplate
new
Nameplate
(Entity.DISPLAY_NAME.get(spawnMarker)
Method Nameplate.
- Parameters:
Entity.DISPLAY_NAME.get(spawnMarkerEntity.DISPLAY_NAME.get(spawnMarker
UUIDComponent
new
UUIDComponent
(Entity.UUID.get(spawnMarker)
Method UUIDComponent.
- Parameters:
Entity.UUID.get(spawnMarkerEntity.UUID.get(spawnMarker
WorldGenId
new
WorldGenId
(worldgenId)
Method WorldGenId.
- Parameters:
worldgenIdworldgenId
ExtraInfo
new
ExtraInfo
(5)
Method ExtraInfo.
- Parameters:
55
onEntityRemoved
void
onEntityRemoved
(@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)
Method onEntityRemoved.
- Parameters:
@Nonnull final Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore
getDependencies
Set>
getDependencies
()
Method getDependencies.
EnsureNetworkSendable
public
EnsureNetworkSendable
()
Method EnsureNetworkSendable.
NetworkId
new
NetworkId
(store.getExternalData()
Method NetworkId.
- Parameters:
store.getExternalData(store.getExternalData(
onEntityAdded
void
onEntityAdded
(@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityAdded.
- Parameters:
@Nonnull final Refref@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onEntityRemove
void
onEntityRemove
(@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityRemove.
- Parameters:
@Nonnull final Refref@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
SystemDependency
new
SystemDependency
(Order.AFTER, CacheMarker.class)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERCacheMarker.classCacheMarker.class
EntityAddedFromExternal
Method EntityAddedFromExternal.
- Parameters:
final ComponentTypecomponentType
StoredFlock
new
StoredFlock
()
Method StoredFlock.
AddedFromWorldGen
public
AddedFromWorldGen
()
Method AddedFromWorldGen.
Ticking
public
Ticking
(final ComponentType componentType, final ResourceType, EntityStore>> playerSpatialComponent)
Method Ticking.
- Parameters:
final ComponentTypecomponentTypefinal ResourceTypeplayerSpatialComponent, EntityStore>>
isParallel
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
tick
void
tick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
if
else
if
(entity.getSpawnAfter()
Method if.
- Parameters:
entity.getSpawnAfter(entity.getSpawnAfter(