DamageSystems

public class DamageSystems

Class DamageSystems. Provides damagesystems functionality for the Hytale server.

java.lang.Object > DamageSystems

Field Summary

entityEffectControllerComponent

final EffectControllerComponent entityEffectControllerComponent

Field entityEffectControllerComponent.

archetype

final Archetype archetype

Field archetype.

dead

final boolean dead

Field dead.

invulnerable

final boolean invulnerable

Field invulnerable.

intangible

final boolean intangible

Field intangible.

world

final World world

Field world.

gameplayConfig

final GameplayConfig gameplayConfig

Field gameplayConfig.

ref

final Ref ref

Field ref.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

networkIdComponent

final NetworkId networkIdComponent

Field networkIdComponent.

targetNetworkId

final int targetNetworkId

Field targetNetworkId.

particles

final Damage.Particles particles

Field particles.

source

final Damage.Source source

Field source.

sourceEntity

final Damage.EntitySource sourceEntity

Field sourceEntity.

sourceRef

final Ref sourceRef

Field sourceRef.

hitLocation

final Vector4d hitLocation

Field hitLocation.

targetPosition

final Vector3d targetPosition

Field targetPosition.

damageCanBePredicted

final boolean damageCanBePredicted

Field damageCanBePredicted.

particlesViewDistance

final double particlesViewDistance

Field particlesViewDistance.

worldParticles

final WorldParticle[] worldParticles

Field worldParticles.

sourceTransformComponent

final TransformComponent sourceTransformComponent

Field sourceTransformComponent.

angleBetween

final float angleBetween

Field angleBetween.

results

final ObjectList> results

Field results.

particleSource

final Ref particleSource

Field particleSource.

modelParticles

final com.hypixel.hytale.server.core.asset.type.model.config.ModelParticle[] modelParticles

Field modelParticles.

modelParticlesProtocol

final ModelParticle[] modelParticlesProtocol

Field modelParticlesProtocol.

packet

final SpawnModelParticles packet

Field packet.

spatialStructure

final SpatialStructure> spatialStructure

Field spatialStructure.

results2

final ObjectList> results2

Field results2.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

playerComponent

final Player playerComponent

Field playerComponent.

soundEffect

final Damage.SoundEffect soundEffect

Field soundEffect.

playerSoundEffect

final Damage.SoundEffect playerSoundEffect

Field playerSoundEffect.

source2

final Damage.Source source2

Field source2.

filter

final Predicate> filter

Field filter.

damageDataComponent

final DamageDataComponent damageDataComponent

Field damageDataComponent.

timestamp

final Instant timestamp

Field timestamp.

sourceDamageDataComponent

final DamageDataComponent sourceDamageDataComponent

Field sourceDamageDataComponent.

entityStatMapComponent

final EntityStatMap entityStatMapComponent

Field entityStatMapComponent.

healthStat

final int healthStat

Field healthStat.

healthValue

final EntityStatValue healthValue

Field healthValue.

isDead

final boolean isDead

Field isDead.

newValue

final float newValue

Field newValue.

entity

final LivingEntity entity

Field entity.

statMapComponent

final EntityStatMap statMapComponent

Field statMapComponent.

oxygenStatValue

final EntityStatValue oxygenStatValue

Field oxygenStatValue.

packed

final long packed

Field packed.

material

final BlockMaterial material

Field material.

fluidId

final int fluidId

Field fluidId.

posY

final double posY

Field posY.

belowMinimum

final boolean belowMinimum

Field belowMinimum.

damage

final Damage damage

Field damage.

playerInputComponent

final PlayerInput playerInputComponent

Field playerInputComponent.

velocityComponent

final Velocity velocityComponent

Field velocityComponent.

worldPlayerConfig

final PlayerConfig worldPlayerConfig

Field worldPlayerConfig.

queue

final List queue

Field queue.

obj

final PlayerInput.InputUpdate obj

Field obj.

queueEntry

final PlayerInput.InputUpdate queueEntry

Field queueEntry.

setMovementStates

final PlayerInput.SetMovementStates setMovementStates

Field setMovementStates.

velocityEntry

final PlayerInput.SetClientVelocity velocityEntry

Field velocityEntry.

movementStatesEntry

final PlayerInput.SetMovementStates movementStatesEntry

Field movementStatesEntry.

movementConfigIndex

final int movementConfigIndex

Field movementConfigIndex.

movementConfig

final MovementConfig movementConfig

Field movementConfig.

minFallSpeedToEngageRoll

final float minFallSpeedToEngageRoll

Field minFallSpeedToEngageRoll.

damagePercentage

final double damagePercentage

Field damagePercentage.

healthStatValue

final EntityStatValue healthStatValue

Field healthStatValue.

maxHealth

final float maxHealth

Field maxHealth.

healthModifier

final double healthModifier

Field healthModifier.

handle

final MethodHandle handle

Field handle.

movementStatesComponent

final MovementStatesComponent movementStatesComponent

Field movementStatesComponent.

movementStates

final MovementStates movementStates

Field movementStates.

yVelocity

final double yVelocity

Field yVelocity.

modelComponent

final ModelComponent modelComponent

Field modelComponent.

model

final Model model

Field model.

animationIds

final String[] animationIds

Field animationIds.

selectedAnimationId

final String selectedAnimationId

Field selectedAnimationId.

timeResource

final TimeResource timeResource

Field timeResource.

damageCause

final DamageCause damageCause

Field damageCause.

armor

final ItemContainer armor

Field armor.

armorPartIndexes

final ShortArrayList armorPartIndexes

Field armorPartIndexes.

staminaCost

final WieldingInteraction.StaminaCost staminaCost

Field staminaCost.

isBlocked

final Boolean isBlocked

Field isBlocked.

multiplier

final Float multiplier

Field multiplier.

attackerRef

final Ref attackerRef

Field attackerRef.

attackerEntity

final Entity attackerEntity

Field attackerEntity.

attackerInventory

final Inventory attackerInventory

Field attackerInventory.

activeHotbarSlot

final byte activeHotbarSlot

Field activeHotbarSlot.

attackerTransform

final TransformComponent attackerTransform

Field attackerTransform.

position

final Vector3d position

Field position.

playerRef

final PlayerRef playerRef

Field playerRef.

entityViewer

final EntityTrackerSystems.EntityViewer entityViewer

Field entityViewer.

hitAngleDeg

final Float hitAngleDeg

Field hitAngleDeg.

update

final ComponentUpdate update

Field update.

combatTextUpdate

final CombatTextUpdate combatTextUpdate

Field combatTextUpdate.

interactionManager

final InteractionManager interactionManager

Field interactionManager.

wielding

final WieldingInteraction wielding

Field wielding.

angledWielding

final WieldingInteraction.AngledWielding angledWielding

Field angledWielding.

targetRotation

final Vector3f targetRotation

Field targetRotation.

attackerTransformComponent

final TransformComponent attackerTransformComponent

Field attackerTransformComponent.

damageCauseIndex

final int damageCauseIndex

Field damageCauseIndex.

wieldingDamageModifiers

final Int2FloatMap wieldingDamageModifiers

Field wieldingDamageModifiers.

wieldingBlockedEffects

final DamageEffects wieldingBlockedEffects

Field wieldingBlockedEffects.

wieldingBlockedInteractions

final String wieldingBlockedInteractions

Field wieldingBlockedInteractions.

angledWieldingDamageModifiers

final Int2FloatMap angledWieldingDamageModifiers

Field angledWieldingDamageModifiers.

attackerPosition

final Vector3d attackerPosition

Field attackerPosition.

wieldingBlockedEffects2

final DamageEffects wieldingBlockedEffects2

Field wieldingBlockedEffects2.

wieldingBlockedInteractions2

final String wieldingBlockedInteractions2

Field wieldingBlockedInteractions2.

context

final InteractionContext context

Field context.

contextMetaStore

final DynamicMetaStore contextMetaStore

Field contextMetaStore.

attackerNetworkIdComponent

final NetworkId attackerNetworkIdComponent

Field attackerNetworkIdComponent.

networkId

final int networkId

Field networkId.

chain

final InteractionChain chain

Field chain.

knockbackModifiers

final Int2DoubleMap knockbackModifiers

Field knockbackModifiers.

knockbackComponent

final KnockbackComponent knockbackComponent

Field knockbackComponent.

wieldingModifier

final double wieldingModifier

Field wieldingModifier.

angledWieldingKnockbackModifiers

final Int2DoubleMap angledWieldingKnockbackModifiers

Field angledWieldingKnockbackModifiers.

targetPos

final Vector3d targetPos

Field targetPos.

attackerPos

final Vector3d attackerPos

Field attackerPos.

inventory

final Inventory inventory

Field inventory.

armorContainer

final ItemContainer armorContainer

Field armorContainer.

itemStack

final ItemStack itemStack

Field itemStack.

item

final Item item

Field item.

itemArmor

final ItemArmor itemArmor

Field itemArmor.

flatResistance

final double flatResistance

Field flatResistance.

mods

final ArmorResistanceModifiers mods

Field mods.

valueArray

final StaticModifier[] valueArray

Field valueArray.

entryValue

final StaticModifier entryValue

Field entryValue.

armorResistanceModifiers

final ArmorResistanceModifiers armorResistanceModifiers

Field armorResistanceModifiers.

armorResistanceModifiers2

final ArmorResistanceModifiers armorResistanceModifiers2

Field armorResistanceModifiers2.

armorResistanceModifiers3

final ArmorResistanceModifiers armorResistanceModifiers3

Field armorResistanceModifiers3.

brokenPenalties

final BrokenPenalties brokenPenalties

Field brokenPenalties.

penalty

final double penalty

Field penalty.

armorResistanceModifiers4

final ArmorResistanceModifiers armorResistanceModifiers4

Field armorResistanceModifiers4.

armorResistanceModifiers5

final ArmorResistanceModifiers armorResistanceModifiers5

Field armorResistanceModifiers5.

entityEffectData

final EntityEffect entityEffectData

Field entityEffectData.

modifier

final ArmorResistanceModifiers modifier

Field modifier.

flatModifier

public int flatModifier

Field flatModifier.

multiplierModifier

public float multiplierModifier

Field multiplierModifier.

inheritedParentId

public DamageCause inheritedParentId

Field inheritedParentId.

velocity

final Vector3d velocity

Field velocity.

vector

final Vector3d vector

Field vector.

vector3d

final Vector3d vector3d

Field vector3d.

Method Detail

executeDamage

static void executeDamage (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor, @Nonnull final Damage damage)

Method executeDamage.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor
@Nonnull final Damage damage

getGroup

public SystemGroup getGroup ()

Method getGroup.

getQuery

public Query getQuery ()

Method getQuery.

handle

public 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 int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer
@Nonnull final Damage damage

handleInternal

public 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 int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer
@Nonnull final Damage damage

getDependencies

public Set> getDependencies ()

Method getDependencies.

SystemGroupDependency

public new SystemGroupDependency (Order.AFTER, DamageModule.get()

Method SystemGroupDependency.

Parameters:
Order.AFTER Order.AFTER
DamageModule.get( DamageModule.get(

CanBreathe

public public CanBreathe ()

Method CanBreathe.

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

isParallel

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

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

OutOfWorldDamage

public public OutOfWorldDamage ()

Method OutOfWorldDamage.

if

public else if (yVelocity <= movementConfig.getMaxFallSpeedToEngageRoll()

Method if.

Parameters:
yVelocity <= movementConfig.getMaxFallSpeedToEngageRoll(

SystemDependency

public new SystemDependency (Order.BEFORE, PlayerSystems.ProcessPlayerInput.class)

Method SystemDependency.

Parameters:
Order.BEFORE Order.BEFORE
PlayerSystems.ProcessPlayerInput.class PlayerSystems.ProcessPlayerInput.class

ensureHandle

static MethodHandle ensureHandle ()

Method ensureHandle.

invoke

static int invoke (Object p0, int p1)

Method invoke.

Parameters:
Object p0
int p1

DamageInfo

public new DamageInfo (new com.hypixel.hytale.protocol.Vector3d(position.getX()

Method DamageInfo.

Parameters:
new com.hypixel.hytale.protocol.Vector3d(position.getX(

EntityUIEvents

public public EntityUIEvents ()

Method EntityUIEvents.

queueUpdateFor

static void queueUpdateFor (@Nonnull final Ref ref, final float damageAmount, @Nullable final Float hitAngleDeg, @Nonnull final EntityTrackerSystems.EntityViewer viewer)

Method queueUpdateFor.

Parameters:
@Nonnull final Ref ref
final float damageAmount
@Nullable final Float hitAngleDeg
@Nonnull final EntityTrackerSystems.EntityViewer viewer

getResistanceModifiers

public ArmorResistanceModifiers> getResistanceModifiers (@Nonnull final World world, @Nonnull final ItemContainer inventory, final boolean canApplyItemStackPenalties, @Nullable final EffectControllerComponent effectControllerComponent)

Method getResistanceModifiers.

Parameters:
@Nonnull final World world
@Nonnull final ItemContainer inventory
final boolean canApplyItemStackPenalties
@Nullable final EffectControllerComponent effectControllerComponent

calculateResistanceEntryModifications

static 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.Entry entry
@Nonnull final World world
@Nonnull final Map result
final boolean canApplyItemStackPenalties
final boolean itemStackIsBroken
final double flatResistance

ArmorResistanceModifiers

public new ArmorResistanceModifiers ()

Method ArmorResistanceModifiers.

addResistanceModifiersFromEntityEffects

static void addResistanceModifiersFromEntityEffects (final Map resistanceModifiers, final EffectControllerComponent effectControllerComponent)

Method addResistanceModifiersFromEntityEffects.

Parameters:
final Map resistanceModifiers
final EffectControllerComponent effectControllerComponent