Package net.minecraft.entity.damage
Class DamageTracker
java.lang.Object
net.minecraft.entity.damage.DamageTracker
- Mappings:
Namespace Name official bhbintermediary net/minecraft/class_1283named net/minecraft/entity/damage/DamageTracker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate intstatic final intstatic final intprivate final LivingEntityprivate booleanprivate static final Styleprivate final List<DamageRecord>private boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate TextgetAttackedFallDeathMessage(Entity attacker, Text attackerDisplayName, String itemDeathTranslationKey, String deathTranslationKey) private @Nullable DamageRecordgetDisplayName(@Nullable Entity entity) private TextgetFallDeathMessage(DamageRecord damageRecord, @Nullable Entity attacker) intprivate static booleanisAttackerLiving(DamageSource damageSource) voidonDamage(DamageSource damageSource, float damage) voidupdate()
-
Field Details
-
DAMAGE_COOLDOWN
public static final int DAMAGE_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector official aLbhb;a:Iintermediary field_29967Lnet/minecraft/class_1283;field_29967:Inamed DAMAGE_COOLDOWNLnet/minecraft/entity/damage/DamageTracker;DAMAGE_COOLDOWN:I
-
ATTACK_DAMAGE_COOLDOWN
public static final int ATTACK_DAMAGE_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector official bLbhb;b:Iintermediary field_29968Lnet/minecraft/class_1283;field_29968:Inamed ATTACK_DAMAGE_COOLDOWNLnet/minecraft/entity/damage/DamageTracker;ATTACK_DAMAGE_COOLDOWN:I
-
INTENTIONAL_GAME_DESIGN_ISSUE_LINK_STYLE
- Mappings:
Namespace Name Mixin selector official cLbhb;c:Lua;intermediary field_42274Lnet/minecraft/class_1283;field_42274:Lnet/minecraft/class_2583;named INTENTIONAL_GAME_DESIGN_ISSUE_LINK_STYLELnet/minecraft/entity/damage/DamageTracker;INTENTIONAL_GAME_DESIGN_ISSUE_LINK_STYLE:Lnet/minecraft/text/Style;
-
recentDamage
- Mappings:
Namespace Name Mixin selector official dLbhb;d:Ljava/util/List;intermediary field_5870Lnet/minecraft/class_1283;field_5870:Ljava/util/List;named recentDamageLnet/minecraft/entity/damage/DamageTracker;recentDamage:Ljava/util/List;
-
entity
- Mappings:
Namespace Name Mixin selector official eLbhb;e:Lbiw;intermediary field_5877Lnet/minecraft/class_1283;field_5877:Lnet/minecraft/class_1309;named entityLnet/minecraft/entity/damage/DamageTracker;entity:Lnet/minecraft/entity/LivingEntity;
-
ageOnLastDamage
private int ageOnLastDamage- Mappings:
Namespace Name Mixin selector official fLbhb;f:Iintermediary field_5876Lnet/minecraft/class_1283;field_5876:Inamed ageOnLastDamageLnet/minecraft/entity/damage/DamageTracker;ageOnLastDamage:I
-
ageOnLastAttacked
private int ageOnLastAttacked- Mappings:
Namespace Name Mixin selector official gLbhb;g:Iintermediary field_5875Lnet/minecraft/class_1283;field_5875:Inamed ageOnLastAttackedLnet/minecraft/entity/damage/DamageTracker;ageOnLastAttacked:I
-
ageOnLastUpdate
private int ageOnLastUpdate- Mappings:
Namespace Name Mixin selector official hLbhb;h:Iintermediary field_5873Lnet/minecraft/class_1283;field_5873:Inamed ageOnLastUpdateLnet/minecraft/entity/damage/DamageTracker;ageOnLastUpdate:I
-
recentlyAttacked
private boolean recentlyAttacked- Mappings:
Namespace Name Mixin selector official iLbhb;i:Zintermediary field_5874Lnet/minecraft/class_1283;field_5874:Znamed recentlyAttackedLnet/minecraft/entity/damage/DamageTracker;recentlyAttacked:Z
-
hasDamage
private boolean hasDamage- Mappings:
Namespace Name Mixin selector official jLbhb;j:Zintermediary field_5872Lnet/minecraft/class_1283;field_5872:Znamed hasDamageLnet/minecraft/entity/damage/DamageTracker;hasDamage:Z
-
-
Constructor Details
-
DamageTracker
- Mappings:
Namespace Name Mixin selector official <init>Lbhb;<init>(Lbiw;)Vintermediary <init>Lnet/minecraft/class_1283;<init>(Lnet/minecraft/class_1309;)Vnamed <init>Lnet/minecraft/entity/damage/DamageTracker;<init>(Lnet/minecraft/entity/LivingEntity;)V
-
-
Method Details
-
onDamage
- Mappings:
Namespace Name Mixin selector official aLbhb;a(Lbhe;F)Vintermediary method_5547Lnet/minecraft/class_1283;method_5547(Lnet/minecraft/class_1282;F)Vnamed onDamageLnet/minecraft/entity/damage/DamageTracker;onDamage(Lnet/minecraft/entity/damage/DamageSource;F)V
-
isAttackerLiving
- Mappings:
Namespace Name Mixin selector official aLbhb;a(Lbhe;)Zintermediary method_52191Lnet/minecraft/class_1283;method_52191(Lnet/minecraft/class_1282;)Znamed isAttackerLivingLnet/minecraft/entity/damage/DamageTracker;isAttackerLiving(Lnet/minecraft/entity/damage/DamageSource;)Z
-
getAttackedFallDeathMessage
private Text getAttackedFallDeathMessage(Entity attacker, Text attackerDisplayName, String itemDeathTranslationKey, String deathTranslationKey) - Mappings:
Namespace Name Mixin selector official aLbhb;a(Lbig;Lte;Ljava/lang/String;Ljava/lang/String;)Lte;intermediary method_52193Lnet/minecraft/class_1283;method_52193(Lnet/minecraft/class_1297;Lnet/minecraft/class_2561;Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_2561;named getAttackedFallDeathMessageLnet/minecraft/entity/damage/DamageTracker;getAttackedFallDeathMessage(Lnet/minecraft/entity/Entity;Lnet/minecraft/text/Text;Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/text/Text;
-
getFallDeathMessage
- Mappings:
Namespace Name Mixin selector official aLbhb;a(Lbgz;Lbig;)Lte;intermediary method_52190Lnet/minecraft/class_1283;method_52190(Lnet/minecraft/class_1281;Lnet/minecraft/class_1297;)Lnet/minecraft/class_2561;named getFallDeathMessageLnet/minecraft/entity/damage/DamageTracker;getFallDeathMessage(Lnet/minecraft/entity/damage/DamageRecord;Lnet/minecraft/entity/Entity;)Lnet/minecraft/text/Text;
-
getDisplayName
- Mappings:
Namespace Name Mixin selector official aLbhb;a(Lbig;)Lte;intermediary method_52192Lnet/minecraft/class_1283;method_52192(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2561;named getDisplayNameLnet/minecraft/entity/damage/DamageTracker;getDisplayName(Lnet/minecraft/entity/Entity;)Lnet/minecraft/text/Text;
-
getDeathMessage
- Mappings:
Namespace Name Mixin selector official aLbhb;a()Lte;intermediary method_5548Lnet/minecraft/class_1283;method_5548()Lnet/minecraft/class_2561;named getDeathMessageLnet/minecraft/entity/damage/DamageTracker;getDeathMessage()Lnet/minecraft/text/Text;
-
getBiggestFall
- Mappings:
Namespace Name Mixin selector official dLbhb;d()Lbgz;intermediary method_5544Lnet/minecraft/class_1283;method_5544()Lnet/minecraft/class_1281;named getBiggestFallLnet/minecraft/entity/damage/DamageTracker;getBiggestFall()Lnet/minecraft/entity/damage/DamageRecord;
-
getTimeSinceLastAttack
public int getTimeSinceLastAttack()- Mappings:
Namespace Name Mixin selector official bLbhb;b()Iintermediary method_5546Lnet/minecraft/class_1283;method_5546()Inamed getTimeSinceLastAttackLnet/minecraft/entity/damage/DamageTracker;getTimeSinceLastAttack()I
-
update
public void update()- Mappings:
Namespace Name Mixin selector official cLbhb;c()Vintermediary method_5539Lnet/minecraft/class_1283;method_5539()Vnamed updateLnet/minecraft/entity/damage/DamageTracker;update()V
-