Class InfestedStatusEffect

java.lang.Object
net.minecraft.entity.effect.StatusEffect
net.minecraft.entity.effect.InfestedStatusEffect
All Implemented Interfaces:
ToggleableFeature

class InfestedStatusEffect extends StatusEffect
Mappings:
Namespace Name
named net/minecraft/entity/effect/InfestedStatusEffect
intermediary net/minecraft/class_9455
official buk
  • Field Details

    • silverfishChance

      private final float silverfishChance
      Mappings:
      Namespace Name Mixin selector
      named silverfishChance Lnet/minecraft/entity/effect/InfestedStatusEffect;silverfishChance:F
      intermediary field_50112 Lnet/minecraft/class_9455;field_50112:F
      official c Lbuk;c:F
    • silverfishCountFunction

      private final ToIntFunction<Random> silverfishCountFunction
      Mappings:
      Namespace Name Mixin selector
      named silverfishCountFunction Lnet/minecraft/entity/effect/InfestedStatusEffect;silverfishCountFunction:Ljava/util/function/ToIntFunction;
      intermediary field_50113 Lnet/minecraft/class_9455;field_50113:Ljava/util/function/ToIntFunction;
      official d Lbuk;d:Ljava/util/function/ToIntFunction;
  • Constructor Details

    • InfestedStatusEffect

      protected InfestedStatusEffect(StatusEffectCategory category, int color, float silverfishChance, ToIntFunction<Random> silverfishCountFunction)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/effect/InfestedStatusEffect;<init>(Lnet/minecraft/entity/effect/StatusEffectCategory;IFLjava/util/function/ToIntFunction;)V
      intermediary <init> Lnet/minecraft/class_9455;<init>(Lnet/minecraft/class_4081;IFLjava/util/function/ToIntFunction;)V
      official <init> Lbuk;<init>(Lbun;IFLjava/util/function/ToIntFunction;)V
  • Method Details

    • onEntityDamage

      public void onEntityDamage(ServerWorld world, LivingEntity entity, int amplifier, DamageSource source, float amount)
      Overrides:
      onEntityDamage in class StatusEffect
      Mappings:
      Namespace Name Mixin selector
      named onEntityDamage Lnet/minecraft/entity/effect/StatusEffect;onEntityDamage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;ILnet/minecraft/entity/damage/DamageSource;F)V
      intermediary method_58614 Lnet/minecraft/class_1291;method_58614(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;ILnet/minecraft/class_1282;F)V
      official a Lbum;a(Lash;Lbwf;ILbtz;F)V
    • spawnSilverfish

      private void spawnSilverfish(ServerWorld world, LivingEntity entity, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      named spawnSilverfish Lnet/minecraft/entity/effect/InfestedStatusEffect;spawnSilverfish(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;DDD)V
      intermediary method_58615 Lnet/minecraft/class_9455;method_58615(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;DDD)V
      official a Lbuk;a(Lash;Lbwf;DDD)V