public class PositionCacheSystems
Class PositionCacheSystems. Provides positioncachesystems functionality for the Hytale server.
java.lang.Object > PositionCacheSystems
Field Summary
positionCache
Field positionCache.
collisionProbeDistance
Field collisionProbeDistance.
separationDistance
Field separationDistance.
instruction
Field instruction.
interactionInstruction
Field interactionInstruction.
deathInstruction
Field deathInstruction.
stateTransitions
Field stateTransitions.
externalRegistrations
Field externalRegistrations.
npcComponent
Field npcComponent.
role
Field role.
stateEvaluator
Field stateEvaluator.
ref
Field ref.
packed
Field packed.
material
Field material.
fluidId
Field fluidId.
transformComponent
Field transformComponent.
position
Field position.
players
Field players.
startTime
Field startTime.
getTime
Field getTime.
npcEntities
Field npcEntities.
startTime2
Field startTime2.
getTime2
Field getTime2.
maxDroppedItemDistance
Field maxDroppedItemDistance.
maxSpawnMarkerDistance
Field maxSpawnMarkerDistance.
maxSpawnBeaconDistance
Field maxSpawnBeaconDistance.
Method Detail
initialisePositionCache
void
initialisePositionCache
(@Nonnull final Role role, @Nullable final StateEvaluator stateEvaluator, final double flockInfluenceRange)
Method initialisePositionCache.
- Parameters:
@Nonnull final Rolerole@Nullable final StateEvaluatorstateEvaluatorfinal doubleflockInfluenceRange
OnFlockJoinSystem
public
OnFlockJoinSystem
(@Nonnull final ComponentType npcComponentType, @Nonnull final ComponentType flockMembershipComponentType)
Method OnFlockJoinSystem.
- Parameters:
@Nonnull final ComponentTypenpcComponentType@Nonnull final ComponentTypeflockMembershipComponentType
componentType
FlockMembership>
componentType
()
Method componentType.
onComponentAdded
void
onComponentAdded
(@Nonnull final Ref ref, @Nonnull final FlockMembership component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentAdded.
- Parameters:
@Nonnull final Refref@Nonnull final FlockMembershipcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentSet
void
onComponentSet
(@Nonnull final Ref ref, final FlockMembership oldComponent, @Nonnull final FlockMembership newComponent, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentSet.
- Parameters:
@Nonnull final Refreffinal FlockMembershipoldComponent@Nonnull final FlockMembershipnewComponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentRemoved
void
onComponentRemoved
(@Nonnull final Ref ref, @Nonnull final FlockMembership component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentRemoved.
- Parameters:
@Nonnull final Refref@Nonnull final FlockMembershipcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
RoleActivateSystem
public
RoleActivateSystem
(@Nonnull final ComponentType npcComponentType, @Nonnull final ComponentType stateEvaluatorComponentType)
Method RoleActivateSystem.
- Parameters:
@Nonnull final ComponentTypenpcComponentType@Nonnull final ComponentTypestateEvaluatorComponentType
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
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
UpdateSystem
public
UpdateSystem
(@Nonnull final ComponentType npcComponentType, @Nonnull final ResourceType, EntityStore>> npcSpatialResource)
Method UpdateSystem.
- Parameters:
@Nonnull final ComponentTypenpcComponentType@Nonnull final ResourceTypenpcSpatialResource, EntityStore>>
SystemDependency
new
SystemDependency
(Order.AFTER, PlayerSpatialSystem.class, OrderPriority.CLOSEST)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERPlayerSpatialSystem.classPlayerSpatialSystem.classOrderPriority.CLOSESTOrderPriority.CLOSEST
getDependencies
Set>
getDependencies
()
Method getDependencies.
isParallel
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
steppedTick
void
steppedTick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method steppedTick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
addEntities
void
addEntities
(@Nonnull final Ref self, @Nonnull final Vector3d position, @Nonnull final EntityList entityList, @Nonnull final SpatialResource, EntityStore> spatialResource, @Nonnull final CommandBuffer commandBuffer)
Method addEntities.
- Parameters:
@Nonnull final Refself@Nonnull final Vector3dposition@Nonnull final EntityListentityList@Nonnull final SpatialResource, EntityStore>spatialResource@Nonnull final CommandBuffercommandBuffer