Class Damage
java.lang.Object
com.hypixel.hytale.component.system.EcsEvent
com.hypixel.hytale.component.system.CancellableEcsEvent
com.hypixel.hytale.server.core.modules.entity.damage.Damage
- All Implemented Interfaces:
ICancellableEcsEvent,IMetaStore<Damage>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic classstatic classstatic classstatic classstatic classstatic classstatic interfaceNested classes/interfaces inherited from interface com.hypixel.hytale.server.core.meta.IMetaStore
IMetaStore.MetaEntryConsumer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatstatic final MetaKey<Damage.CameraEffect> private intstatic final MetaKey<Damage.Particles> static final MetaKey<Damage.SoundEffect> private final floatstatic final MetaKey<KnockbackComponent> private static final Messagestatic final MetaRegistry<Damage> private final IMetaStoreImpl<Damage> static final Damage.Sourcestatic final MetaKey<Damage.SoundEffect> private Damage.Source -
Constructor Summary
ConstructorsConstructorDescriptionDamage(Damage.Source source, int damageCauseIndex, float amount) Damage(Damage.Source source, DamageCause damageCause, float amount) -
Method Summary
Modifier and TypeMethodDescriptionfloatgetCause()Deprecated.intgetDeathMessage(Ref<EntityStore> targetRef, ComponentAccessor<EntityStore> componentAccessor) floatvoidsetAmount(float amount) voidsetDamageCauseIndex(int damageCauseIndex) voidsetSource(Damage.Source source) Methods inherited from class com.hypixel.hytale.component.system.CancellableEcsEvent
isCancelled, setCancelledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.core.meta.IMetaStore
consumeMetaStoreDirty, forEachMetaObject, getIfPresentMetaObject, getMetaObject, hasMetaObject, markMetaStoreDirty, putMetaObject, removeMetaObject, removeSerializedMetaObject
-
Field Details
-
MESSAGE_GENERAL_DAMAGE_CAUSE_UNKNOWN
-
META_REGISTRY
-
HIT_LOCATION
-
HIT_ANGLE
-
IMPACT_PARTICLES
-
IMPACT_SOUND_EFFECT
-
PLAYER_IMPACT_SOUND_EFFECT
-
CAMERA_EFFECT
-
DEATH_ICON
-
BLOCKED
-
STAMINA_DRAIN_MULTIPLIER
-
CAN_BE_PREDICTED
-
KNOCKBACK_COMPONENT
-
NULL_SOURCE
-
metaStore
-
initialAmount
private final float initialAmount -
damageCauseIndex
private int damageCauseIndex -
source
-
amount
private float amount
-
-
Constructor Details
-
Damage
-
Damage
-
-
Method Details
-
getDamageCauseIndex
public int getDamageCauseIndex() -
setDamageCauseIndex
public void setDamageCauseIndex(int damageCauseIndex) -
getCause
Deprecated. -
getSource
-
setSource
-
getAmount
public float getAmount() -
setAmount
public void setAmount(float amount) -
getInitialAmount
public float getInitialAmount() -
getDeathMessage
@Nonnull public Message getDeathMessage(@Nonnull Ref<EntityStore> targetRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
getMetaStore
- Specified by:
getMetaStorein interfaceIMetaStore<Damage>
-