EntityStatsSystems

public class EntityStatsSystems

Class EntityStatsSystems. Provides entitystatssystems functionality for the Hytale server.

java.lang.Object > EntityStatsSystems

Field Summary

ref

final Ref ref

Field ref.

map

final EntityStatMap map

Field map.

now

final Instant now

Field now.

size

final int size

Field size.

value

final EntityStatValue value

Field value.

regenerating

final RegeneratingValue[] regenerating

Field regenerating.

tempRegenerationValues

final float[] tempRegenerationValues

Field tempRegenerationValues.

n

final int n

Field n.

entity

final EntityType entity

Field entity.

armorContainer

final ItemContainer armorContainer

Field armorContainer.

itemStack

final ItemStack itemStack

Field itemStack.

item

final Item item

Field item.

value2

final EntityStatValue value2

Field value2.

regenValues

final List regenValues

Field regenValues.

tempRegenerationValues2

final float[] tempRegenerationValues2

Field tempRegenerationValues2.

n2

final int n2

Field n2.

value3

final EntityStatValue value3

Field value3.

amount

final float amount

Field amount.

invulnerable

final boolean invulnerable

Field invulnerable.

entityStatMapComponent

final EntityStatMap entityStatMapComponent

Field entityStatMapComponent.

interactionManagerComponent

final InteractionManager interactionManagerComponent

Field interactionManagerComponent.

statChanges

final Int2ObjectMap> statChanges

Field statChanges.

statValues

final Int2ObjectMap statValues

Field statValues.

updates

final List updates

Field updates.

statChangeList

final FloatList statChangeList

Field statChangeList.

entityStatValue

final EntityStatValue entityStatValue

Field entityStatValue.

entityStatType

final EntityStatType entityStatType

Field entityStatType.

update

final EntityStatUpdate update

Field update.

statPrevious

final float statPrevious

Field statPrevious.

statValue

final float statValue

Field statValue.

interactions

final String interactions

Field interactions.

context

final InteractionContext context

Field context.

chain

final InteractionChain chain

Field chain.

livingEntity

final LivingEntity livingEntity

Field livingEntity.

visible

final EntityTrackerSystems.Visible visible

Field visible.

statMap

final EntityStatMap statMap

Field statMap.

selfEntityViewer

final EntityTrackerSystems.EntityViewer selfEntityViewer

Field selfEntityViewer.

update2

final ComponentUpdate update2

Field update2.

viewerRef

final Ref viewerRef

Field viewerRef.

Method Detail

Setup

public public Setup (final ComponentType componentType)

Method Setup.

Parameters:
final ComponentType componentType

getQuery

public Query getQuery ()

Method getQuery.

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store

Regenerate

public public Regenerate (final ComponentType componentType, final ComponentType entityTypeComponent)

Method Regenerate.

Parameters:
final ComponentType componentType
final ComponentType entityTypeComponent

isParallel

public boolean isParallel (final int archetypeChunkSize, final int taskCount)

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

tick

public void tick (final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method tick.

Parameters:
final float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

if

public else if (value.get()

Method if.

Parameters:
value.get( value.get(

Changes

public public Changes (final ComponentType componentType)

Method Changes.

Parameters:
final ComponentType componentType

SystemDependency

public new SystemDependency (Order.BEFORE, (Class)

Method SystemDependency.

Parameters:
Order.BEFORE Order.BEFORE
(Class (Class

SystemTypeDependency

public new SystemTypeDependency (Order.AFTER, (SystemType ISystem>)

Method SystemTypeDependency.

Parameters:
Order.AFTER Order.AFTER
(SystemType ISystem>

getDependencies

public Set> getDependencies ()

Method getDependencies.

Damage

public new Damage (Damage.NULL_SOURCE, DamageCause.COMMAND, 0.0f)

Method Damage.

Parameters:
Damage.NULL_SOURCE Damage.NULL_SOURCE
DamageCause.COMMAND DamageCause.COMMAND
0.0f 0.0f

testMaxValue

static boolean testMaxValue (final float value, final float previousValue, @Nonnull final EntityStatValue stat, @Nullable final EntityStatType.EntityStatEffects valueEffects)

Method testMaxValue.

Parameters:
final float value
final float previousValue
@Nonnull final EntityStatValue stat
@Nullable final EntityStatType.EntityStatEffects valueEffects

testMinValue

static boolean testMinValue (final float value, final float previousValue, @Nonnull final EntityStatValue stat, @Nullable final EntityStatType.EntityStatEffects valueEffects)

Method testMinValue.

Parameters:
final float value
final float previousValue
@Nonnull final EntityStatValue stat
@Nullable final EntityStatType.EntityStatEffects valueEffects

runInteractions

static void runInteractions (@Nonnull final Ref ref, @Nonnull final InteractionManager interactionManager, @Nullable final EntityStatType.EntityStatEffects valueEffects, @Nonnull final ComponentAccessor componentAccessor)

Method runInteractions.

Parameters:
@Nonnull final Ref ref
@Nonnull final InteractionManager interactionManager
@Nullable final EntityStatType.EntityStatEffects valueEffects
@Nonnull final ComponentAccessor componentAccessor

Recalculate

public public Recalculate (@Nonnull final ComponentType entityStatMapComponentType)

Method Recalculate.

Parameters:
@Nonnull final ComponentType entityStatMapComponentType

EntityTrackerUpdate

public public EntityTrackerUpdate (final ComponentType componentType)

Method EntityTrackerUpdate.

Parameters:
final ComponentType componentType

getGroup

public SystemGroup getGroup ()

Method getGroup.

queueUpdatesForNewlyVisible

static void queueUpdatesForNewlyVisible (@Nonnull final Ref ref, @Nonnull final EntityStatMap statMap, @Nonnull final Map, EntityTrackerSystems.EntityViewer> newlyVisibleTo)

Method queueUpdatesForNewlyVisible.

Parameters:
@Nonnull final Ref ref
@Nonnull final EntityStatMap statMap
@Nonnull final Map, EntityTrackerSystems.EntityViewer> newlyVisibleTo

queueUpdateForNewlyVisibleSelf

static void queueUpdateForNewlyVisibleSelf (final Ref ref, @Nonnull final EntityStatMap statMap, @Nonnull final EntityTrackerSystems.EntityViewer viewer)

Method queueUpdateForNewlyVisibleSelf.

Parameters:
final Ref ref
@Nonnull final EntityStatMap statMap
@Nonnull final EntityTrackerSystems.EntityViewer viewer

EntityTrackerRemove

public public EntityTrackerRemove (final ComponentType componentType)

Method EntityTrackerRemove.

Parameters:
final ComponentType componentType

componentType

public EntityStatMap> componentType ()

Method componentType.

onComponentAdded

public void onComponentAdded (@Nonnull final Ref ref, @Nonnull final EntityStatMap component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final EntityStatMap component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentSet

public void onComponentSet (@Nonnull final Ref ref, final EntityStatMap oldComponent, @Nonnull final EntityStatMap newComponent, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentSet.

Parameters:
@Nonnull final Ref ref
final EntityStatMap oldComponent
@Nonnull final EntityStatMap newComponent
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentRemoved

public void onComponentRemoved (@Nonnull final Ref ref, @Nonnull final EntityStatMap component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentRemoved.

Parameters:
@Nonnull final Ref ref
@Nonnull final EntityStatMap component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

ClearChanges

public public ClearChanges (final ComponentType componentType)

Method ClearChanges.

Parameters:
final ComponentType componentType