public class InteractionSystems
Class InteractionSystems. Provides interactionsystems functionality for the Hytale server.
java.lang.Object > InteractionSystems
Field Summary
ref
Field ref.
interactionManager
Field interactionManager.
playerRef
Field playerRef.
syncPackets
Field syncPackets.
playerComponent
Field playerComponent.
playerRefComponent
Field playerRefComponent.
visibleComponentType
Field visibleComponentType.
interactionsComponent
Field interactionsComponent.
componentUpdate
Field componentUpdate.
interactions
Field interactions.
visible
Field visible.
Method Detail
TickInteractionManagerSystem
public
TickInteractionManagerSystem
()
Method TickInteractionManagerSystem.
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
SyncInteractionChains
new
SyncInteractionChains
(syncPackets.toArray(SyncInteractionChain[]::new)
Method SyncInteractionChains.
- Parameters:
syncPackets.toArray(SyncInteractionChain[]::newsyncPackets.toArray(SyncInteractionChain[]::new
PlayerAddManagerSystem
public
PlayerAddManagerSystem
()
Method PlayerAddManagerSystem.
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
InteractionManager
new
InteractionManager
(playerComponent, playerRefComponent, new InteractionSimulationHandler()
Method InteractionManager.
- Parameters:
playerComponentplayerComponentplayerRefComponentplayerRefComponentnewInteractionSimulationHandler(
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
CleanUpSystem
public
CleanUpSystem
()
Method CleanUpSystem.
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
TrackerTickSystem
public
TrackerTickSystem
()
Method TrackerTickSystem.
isParallel
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
if
else
if
(!visibleComponentType.newlyVisibleTo.isEmpty()
Method if.
- Parameters:
!visibleComponentType.newlyVisibleTo.isEmpty(!visibleComponentType.newlyVisibleTo.isEmpty(
queueUpdatesFor
void
queueUpdatesFor
(@Nonnull final Ref ref, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo, @Nonnull final Interactions component)
Method queueUpdatesFor.
- Parameters:
@Nonnull final Refref@Nonnull final Map, EntityTrackerSystems.EntityViewer>visibleTo@Nonnull final Interactionscomponent
EntityTrackerRemove
Method EntityTrackerRemove.
- Parameters:
final ComponentTypevisibleComponentType
componentType
Interactions>
componentType
()
Method componentType.
onComponentAdded
void
onComponentAdded
(@Nonnull final Ref ref, @Nonnull final Interactions component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentAdded.
- Parameters:
@Nonnull final Refref@Nonnull final Interactionscomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentSet
void
onComponentSet
(@Nonnull final Ref ref, final Interactions oldComponent, @Nonnull final Interactions newComponent, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentSet.
- Parameters:
@Nonnull final Refreffinal InteractionsoldComponent@Nonnull final InteractionsnewComponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentRemoved
void
onComponentRemoved
(@Nonnull final Ref ref, @Nonnull final Interactions component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentRemoved.
- Parameters:
@Nonnull final Refref@Nonnull final Interactionscomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer