public class DamageSystems
Class DamageSystems. Provides damagesystems functionality for the Hytale server.
java.lang.Object > DamageSystems
Field Summary
entityEffectControllerComponent
Field entityEffectControllerComponent.
archetype
Field archetype.
dead
Field dead.
invulnerable
Field invulnerable.
intangible
Field intangible.
world
Field world.
gameplayConfig
Field gameplayConfig.
ref
Field ref.
transformComponent
Field transformComponent.
networkIdComponent
Field networkIdComponent.
targetNetworkId
Field targetNetworkId.
particles
Field particles.
source
Field source.
sourceEntity
Field sourceEntity.
sourceRef
Field sourceRef.
hitLocation
Field hitLocation.
targetPosition
Field targetPosition.
damageCanBePredicted
Field damageCanBePredicted.
particlesViewDistance
Field particlesViewDistance.
worldParticles
Field worldParticles.
sourceTransformComponent
Field sourceTransformComponent.
angleBetween
Field angleBetween.
particleSource
Field particleSource.
modelParticles
Field modelParticles.
modelParticlesProtocol
Field modelParticlesProtocol.
packet
Field packet.
playerRefComponent
Field playerRefComponent.
playerComponent
Field playerComponent.
soundEffect
Field soundEffect.
playerSoundEffect
Field playerSoundEffect.
source2
Field source2.
damageDataComponent
Field damageDataComponent.
timestamp
Field timestamp.
sourceDamageDataComponent
Field sourceDamageDataComponent.
entityStatMapComponent
Field entityStatMapComponent.
healthStat
Field healthStat.
healthValue
Field healthValue.
isDead
Field isDead.
newValue
Field newValue.
entity
Field entity.
statMapComponent
Field statMapComponent.
oxygenStatValue
Field oxygenStatValue.
packed
Field packed.
material
Field material.
fluidId
Field fluidId.
posY
Field posY.
belowMinimum
Field belowMinimum.
damage
Field damage.
playerInputComponent
Field playerInputComponent.
velocityComponent
Field velocityComponent.
worldPlayerConfig
Field worldPlayerConfig.
queue
Field queue.
obj
Field obj.
queueEntry
Field queueEntry.
setMovementStates
Field setMovementStates.
velocityEntry
Field velocityEntry.
movementStatesEntry
Field movementStatesEntry.
movementConfigIndex
Field movementConfigIndex.
movementConfig
Field movementConfig.
minFallSpeedToEngageRoll
Field minFallSpeedToEngageRoll.
damagePercentage
Field damagePercentage.
healthStatValue
Field healthStatValue.
maxHealth
Field maxHealth.
healthModifier
Field healthModifier.
handle
Field handle.
movementStatesComponent
Field movementStatesComponent.
movementStates
Field movementStates.
yVelocity
Field yVelocity.
modelComponent
Field modelComponent.
model
Field model.
animationIds
Field animationIds.
selectedAnimationId
Field selectedAnimationId.
timeResource
Field timeResource.
damageCause
Field damageCause.
armor
Field armor.
armorPartIndexes
Field armorPartIndexes.
staminaCost
Field staminaCost.
isBlocked
Field isBlocked.
multiplier
Field multiplier.
attackerRef
Field attackerRef.
attackerEntity
Field attackerEntity.
attackerInventory
Field attackerInventory.
activeHotbarSlot
Field activeHotbarSlot.
attackerTransform
Field attackerTransform.
position
Field position.
playerRef
Field playerRef.
entityViewer
Field entityViewer.
hitAngleDeg
Field hitAngleDeg.
update
Field update.
combatTextUpdate
Field combatTextUpdate.
interactionManager
Field interactionManager.
wielding
Field wielding.
angledWielding
Field angledWielding.
targetRotation
Field targetRotation.
attackerTransformComponent
Field attackerTransformComponent.
damageCauseIndex
Field damageCauseIndex.
wieldingDamageModifiers
Field wieldingDamageModifiers.
wieldingBlockedEffects
Field wieldingBlockedEffects.
wieldingBlockedInteractions
Field wieldingBlockedInteractions.
angledWieldingDamageModifiers
Field angledWieldingDamageModifiers.
attackerPosition
Field attackerPosition.
wieldingBlockedEffects2
Field wieldingBlockedEffects2.
wieldingBlockedInteractions2
Field wieldingBlockedInteractions2.
context
Field context.
contextMetaStore
Field contextMetaStore.
attackerNetworkIdComponent
Field attackerNetworkIdComponent.
networkId
Field networkId.
chain
Field chain.
knockbackModifiers
Field knockbackModifiers.
knockbackComponent
Field knockbackComponent.
wieldingModifier
Field wieldingModifier.
angledWieldingKnockbackModifiers
Field angledWieldingKnockbackModifiers.
targetPos
Field targetPos.
attackerPos
Field attackerPos.
inventory
Field inventory.
armorContainer
Field armorContainer.
itemStack
Field itemStack.
item
Field item.
itemArmor
Field itemArmor.
flatResistance
Field flatResistance.
mods
Field mods.
valueArray
Field valueArray.
entryValue
Field entryValue.
armorResistanceModifiers
Field armorResistanceModifiers.
armorResistanceModifiers2
Field armorResistanceModifiers2.
armorResistanceModifiers3
Field armorResistanceModifiers3.
brokenPenalties
Field brokenPenalties.
penalty
Field penalty.
armorResistanceModifiers4
Field armorResistanceModifiers4.
armorResistanceModifiers5
Field armorResistanceModifiers5.
entityEffectData
Field entityEffectData.
modifier
Field modifier.
flatModifier
Field flatModifier.
multiplierModifier
Field multiplierModifier.
inheritedParentId
Field inheritedParentId.
velocity
Field velocity.
vector
Field vector.
vector3d
Field vector3d.
Method Detail
executeDamage
void
executeDamage
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor, @Nonnull final Damage damage)
Method executeDamage.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor@Nonnull final Damagedamage
handle
void
handle
(final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer, @Nonnull final Damage damage)
Method handle.
- Parameters:
final intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer@Nonnull final Damagedamage
handleInternal
void
handleInternal
(final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer, @Nonnull final Damage damage)
Method handleInternal.
- Parameters:
final intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer@Nonnull final Damagedamage
getDependencies
Set>
getDependencies
()
Method getDependencies.
SystemGroupDependency
new
SystemGroupDependency
(Order.AFTER, DamageModule.get()
Method SystemGroupDependency.
- Parameters:
Order.AFTEROrder.AFTERDamageModule.get(DamageModule.get(
CanBreathe
public
CanBreathe
()
Method CanBreathe.
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
isParallel
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
OutOfWorldDamage
public
OutOfWorldDamage
()
Method OutOfWorldDamage.
if
else
if
(yVelocity <= movementConfig.getMaxFallSpeedToEngageRoll()
Method if.
- Parameters:
yVelocity <=movementConfig.getMaxFallSpeedToEngageRoll(
SystemDependency
new
SystemDependency
(Order.BEFORE, PlayerSystems.ProcessPlayerInput.class)
Method SystemDependency.
- Parameters:
Order.BEFOREOrder.BEFOREPlayerSystems.ProcessPlayerInput.classPlayerSystems.ProcessPlayerInput.class
ensureHandle
MethodHandle
ensureHandle
()
Method ensureHandle.
invoke
int
invoke
(Object p0, int p1)
Method invoke.
- Parameters:
Objectp0intp1
DamageInfo
new
DamageInfo
(new com.hypixel.hytale.protocol.Vector3d(position.getX()
Method DamageInfo.
- Parameters:
newcom.hypixel.hytale.protocol.Vector3d(position.getX(
EntityUIEvents
public
EntityUIEvents
()
Method EntityUIEvents.
queueUpdateFor
void
queueUpdateFor
(@Nonnull final Ref ref, final float damageAmount, @Nullable final Float hitAngleDeg, @Nonnull final EntityTrackerSystems.EntityViewer viewer)
Method queueUpdateFor.
- Parameters:
@Nonnull final Refreffinal floatdamageAmount@Nullable final FloathitAngleDeg@Nonnull final EntityTrackerSystems.EntityViewerviewer
getResistanceModifiers
ArmorResistanceModifiers>
getResistanceModifiers
(@Nonnull final World world, @Nonnull final ItemContainer inventory, final boolean canApplyItemStackPenalties, @Nullable final EffectControllerComponent effectControllerComponent)
Method getResistanceModifiers.
- Parameters:
@Nonnull final Worldworld@Nonnull final ItemContainerinventoryfinal booleancanApplyItemStackPenalties@Nullable final EffectControllerComponenteffectControllerComponent
calculateResistanceEntryModifications
void
calculateResistanceEntryModifications
(@Nonnull final Map.Entry entry, @Nonnull final World world, @Nonnull final Map result, final boolean canApplyItemStackPenalties, final boolean itemStackIsBroken, final double flatResistance)
Method calculateResistanceEntryModifications.
- Parameters:
@Nonnull final Map.Entryentry@Nonnull final Worldworld@Nonnull final Mapresultfinal booleancanApplyItemStackPenaltiesfinal booleanitemStackIsBrokenfinal doubleflatResistance
ArmorResistanceModifiers
new
ArmorResistanceModifiers
()
Method ArmorResistanceModifiers.
addResistanceModifiersFromEntityEffects
void
addResistanceModifiersFromEntityEffects
(final Map resistanceModifiers, final EffectControllerComponent effectControllerComponent)
Method addResistanceModifiersFromEntityEffects.
- Parameters:
final MapresistanceModifiersfinal EffectControllerComponenteffectControllerComponent