Skip to content

DamageSystems

Package: com.hypixel.hytale.server.core.modules.entity.damage

Type: class

Static Fields

NameType
DEFAULT_DAMAGE_DELAYfloat
NPCS_QUERYQuery
CAUSE_DESYNCboolean
QUERYQuery
QUERYQuery
PLAYER_SPATIAL_RESOURCE_TYPEResourceType
TRANSFORM_COMPONENT_TYPEComponentType
QUERYQuery
TRANSFORM_COMPONENT_TYPEComponentType
PLAYER_COMPONENT_TYPEComponentType
QUERYQuery
DAMAGE_DATA_COMPONENT_TYPEComponentType
TIME_RESOURCE_TYPEResourceType
QUERYQuery
QUERYQuery
DEPENDENCIESSet
DAMAGE_AMOUNT_DROWNINGfloat
DAMAGE_AMOUNT_SUFFOCATIONfloat
MODEL_COMPONENT_TYPEComponentType
QUERYQuery
TRANSFORM_COMPONENT_TYPEComponentType
MIN_DAMAGEdouble
QUERYQuery
DEPENDENCIESSet
MIN_DAMAGEdouble
QUERYQuery
QUERYQuery
QUERYQuery
QUERYQuery
QUERYQuery
QUERYQuery
TRANSFORM_COMPONENT_TYPEComponentType
QUERYQuery
EVENT_ON_HIT_TAG_INDEXint
EVENT_ON_KILL_TAG_INDEXint
ON_HITReticleEvent
ON_KILLReticleEvent
TRANSFORM_COMPONENT_TYPEComponentType
QUERYQuery
TRANSFORM_COMPONENT_TYPEComponentType
QUERYQuery
TRANSFORM_COMPONENT_TYPEComponentType
QUERYQuery
QUERYQuery
PLAYER_KNOCKBACK_SCALEfloat
QUERYQuery

Fields

NameType
visibleComponentTypeComponentType
uiComponentListComponentTypeComponentType
queryQuery
flatModifierint
multiplierModifierfloat
inheritedParentIdDamageCause

Static Methods

MethodReturns
executeDamage(@Nonnull Ref ref, @Nonnull ComponentAccessor componentAccessor, @Nonnull Damage damage)void
executeDamage(int index, @Nonnull ArchetypeChunk chunk, @Nonnull CommandBuffer commandBuffer, @Nonnull Damage damage)void
executeDamage(@Nonnull Ref ref, @Nonnull CommandBuffer commandBuffer, @Nonnull Damage damage)void
queueUpdateFor(@Nonnull Ref ref, float damageAmount, @Nullable Float hitAngleDeg, @Nonnull EntityTrackerSystems.EntityViewer viewer)void
getResistanceModifiers(@Nonnull World world, @Nonnull ItemContainer inventory, boolean canApplyItemStackPenalties, @Nullable EffectControllerComponent effectControllerComponent)Map
calculateResistanceEntryModifications(@Nonnull Map.Entry entry, @Nonnull World world, @Nonnull Map result, boolean canApplyItemStackPenalties, boolean itemStackIsBroken, double flatResistance)void
addResistanceModifiersFromEntityEffects(Map resistanceModifiers, EffectControllerComponent effectControllerComponent)void

Methods

MethodReturns
getGroup()SystemGroup
getQuery()Query
handle(int index, @Nonnull ArchetypeChunk archetypeChunk, @Nonnull Store store, @Nonnull CommandBuffer commandBuffer, @Nonnull Damage damage)void
handle(int index, @NonNullDecl ArchetypeChunk archetypeChunk, @NonNullDecl Store store, @NonNullDecl CommandBuffer commandBuffer, @NonNullDecl Damage event)void
handleInternal(int index, @Nonnull ArchetypeChunk archetypeChunk, @Nonnull Store store, @Nonnull CommandBuffer commandBuffer, @Nonnull Damage damage)void
getDependencies()Set
CanBreathe()public
tick(float dt, int index, @Nonnull ArchetypeChunk archetypeChunk, @Nonnull Store store, @Nonnull CommandBuffer commandBuffer)void
isParallel(int archetypeChunkSize, int taskCount)boolean
OutOfWorldDamage()public
tick(float dt, int systemIndex, @NonNullDecl Store store)void
handle(int index, @Nonnull ArchetypeChunk archetypeChunk, @Nonnull Store store, @Nonnull CommandBuffer commandBuffer, @Nonnull Damage event)void
EntityUIEvents()public

Unofficial documentation · Any questions? Found a mistake? Have something you want documented? Join the Discord server at the top and let us know in #hytale!