public class EntityStatsSystems
Class EntityStatsSystems. Provides entitystatssystems functionality for the Hytale server.
java.lang.Object > EntityStatsSystems
Field Summary
ref
Field ref.
map
Field map.
now
Field now.
size
Field size.
value
Field value.
regenerating
Field regenerating.
tempRegenerationValues
Field tempRegenerationValues.
n
Field n.
entity
Field entity.
armorContainer
Field armorContainer.
itemStack
Field itemStack.
item
Field item.
value2
Field value2.
regenValues
Field regenValues.
tempRegenerationValues2
Field tempRegenerationValues2.
n2
Field n2.
value3
Field value3.
amount
Field amount.
invulnerable
Field invulnerable.
entityStatMapComponent
Field entityStatMapComponent.
interactionManagerComponent
Field interactionManagerComponent.
statChanges
- >
Field statChanges.
statValues
Field statValues.
updates
Field updates.
statChangeList
Field statChangeList.
entityStatValue
Field entityStatValue.
entityStatType
Field entityStatType.
update
Field update.
statPrevious
Field statPrevious.
statValue
Field statValue.
interactions
Field interactions.
context
Field context.
chain
Field chain.
livingEntity
Field livingEntity.
visible
Field visible.
statMap
Field statMap.
selfEntityViewer
Field selfEntityViewer.
update2
Field update2.
viewerRef
Field viewerRef.
Method Detail
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
Regenerate
public
Regenerate
(final ComponentType componentType, final ComponentType entityTypeComponent)
Method Regenerate.
- Parameters:
final ComponentTypecomponentTypefinal ComponentTypeentityTypeComponent
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
(value.get()
Method if.
- Parameters:
value.get(value.get(
SystemDependency
new
SystemDependency
(Order.BEFORE, (ClassMethod SystemDependency.
- Parameters:
Order.BEFOREOrder.BEFORE(Class(Class
SystemTypeDependency
new
SystemTypeDependency
(Order.AFTER, (SystemType)
Method SystemTypeDependency.
- Parameters:
Order.AFTEROrder.AFTER(SystemType
getDependencies
Set>
getDependencies
()
Method getDependencies.
Damage
new
Damage
(Damage.NULL_SOURCE, DamageCause.COMMAND, 0.0f)
Method Damage.
- Parameters:
Damage.NULL_SOURCEDamage.NULL_SOURCEDamageCause.COMMANDDamageCause.COMMAND0.0f0.0f
testMaxValue
boolean
testMaxValue
(final float value, final float previousValue, @Nonnull final EntityStatValue stat, @Nullable final EntityStatType.EntityStatEffects valueEffects)
Method testMaxValue.
- Parameters:
final floatvaluefinal floatpreviousValue@Nonnull final EntityStatValuestat@Nullable final EntityStatType.EntityStatEffectsvalueEffects
testMinValue
boolean
testMinValue
(final float value, final float previousValue, @Nonnull final EntityStatValue stat, @Nullable final EntityStatType.EntityStatEffects valueEffects)
Method testMinValue.
- Parameters:
final floatvaluefinal floatpreviousValue@Nonnull final EntityStatValuestat@Nullable final EntityStatType.EntityStatEffectsvalueEffects
runInteractions
void
runInteractions
(@Nonnull final Ref ref, @Nonnull final InteractionManager interactionManager, @Nullable final EntityStatType.EntityStatEffects valueEffects, @Nonnull final ComponentAccessor componentAccessor)
Method runInteractions.
- Parameters:
@Nonnull final Refref@Nonnull final InteractionManagerinteractionManager@Nullable final EntityStatType.EntityStatEffectsvalueEffects@Nonnull final ComponentAccessorcomponentAccessor
queueUpdatesForNewlyVisible
void
queueUpdatesForNewlyVisible
(@Nonnull final Ref ref, @Nonnull final EntityStatMap statMap, @Nonnull final Map, EntityTrackerSystems.EntityViewer> newlyVisibleTo)
Method queueUpdatesForNewlyVisible.
- Parameters:
@Nonnull final Refref@Nonnull final EntityStatMapstatMap@Nonnull final Map, EntityTrackerSystems.EntityViewer>newlyVisibleTo
queueUpdateForNewlyVisibleSelf
void
queueUpdateForNewlyVisibleSelf
(final Ref ref, @Nonnull final EntityStatMap statMap, @Nonnull final EntityTrackerSystems.EntityViewer viewer)
Method queueUpdateForNewlyVisibleSelf.
- Parameters:
final Refref@Nonnull final EntityStatMapstatMap@Nonnull final EntityTrackerSystems.EntityViewerviewer
componentType
EntityStatMap>
componentType
()
Method componentType.
onComponentAdded
void
onComponentAdded
(@Nonnull final Ref ref, @Nonnull final EntityStatMap component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentAdded.
- Parameters:
@Nonnull final Refref@Nonnull final EntityStatMapcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentSet
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 Refreffinal EntityStatMapoldComponent@Nonnull final EntityStatMapnewComponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentRemoved
void
onComponentRemoved
(@Nonnull final Ref ref, @Nonnull final EntityStatMap component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentRemoved.
- Parameters:
@Nonnull final Refref@Nonnull final EntityStatMapcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer