Package net.minecraft.entity.effect
Class InfestedStatusEffect
java.lang.Object
net.minecraft.entity.effect.StatusEffect
net.minecraft.entity.effect.InfestedStatusEffect
- All Implemented Interfaces:
ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/entity/effect/InfestedStatusEffectintermediary net/minecraft/class_9455official btm
-
Field Summary
FieldsFields inherited from class net.minecraft.entity.effect.StatusEffect
ENTRY_CODEC, ENTRY_PACKET_CODECFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInfestedStatusEffect(StatusEffectCategory category, int color, float silverfishChance, ToIntFunction<Random> silverfishCountFunction) -
Method Summary
Modifier and TypeMethodDescriptionvoidonEntityDamage(ServerWorld serverWorld, LivingEntity livingEntity, int int2, DamageSource damageSource, float float2) private voidspawnSilverfish(ServerWorld serverWorld, LivingEntity entity, double x, double y, double z) Methods inherited from class net.minecraft.entity.effect.StatusEffect
addAttributeModifier, applyInstantEffect, applySound, applyUpdateEffect, canApplyUpdateEffect, createParticle, fadeTicks, forEachAttributeModifier, getCategory, getColor, getFadeTicks, getName, getRequiredFeatures, getTranslationKey, isBeneficial, isInstant, loadTranslationKey, onApplied, onApplied, onEntityRemoval, onRemoved, playApplySound, requiresMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
silverfishChance
private final float silverfishChance- Mappings:
Namespace Name Mixin selector named silverfishChanceLnet/minecraft/entity/effect/InfestedStatusEffect;silverfishChance:Fintermediary field_50112Lnet/minecraft/class_9455;field_50112:Fofficial cLbtm;c:F
-
silverfishCountFunction
- Mappings:
Namespace Name Mixin selector named silverfishCountFunctionLnet/minecraft/entity/effect/InfestedStatusEffect;silverfishCountFunction:Ljava/util/function/ToIntFunction;intermediary field_50113Lnet/minecraft/class_9455;field_50113:Ljava/util/function/ToIntFunction;official dLbtm;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;)Vintermediary <init>Lnet/minecraft/class_9455;<init>(Lnet/minecraft/class_4081;IFLjava/util/function/ToIntFunction;)Vofficial <init>Lbtm;<init>(Lbtp;IFLjava/util/function/ToIntFunction;)V
-
-
Method Details
-
onEntityDamage
public void onEntityDamage(ServerWorld serverWorld, LivingEntity livingEntity, int int2, DamageSource damageSource, float float2) - Overrides:
onEntityDamagein classStatusEffect- Mappings:
Namespace Name Mixin selector named onEntityDamageLnet/minecraft/entity/effect/StatusEffect;onEntityDamage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;ILnet/minecraft/entity/damage/DamageSource;F)Vintermediary method_58614Lnet/minecraft/class_1291;method_58614(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;ILnet/minecraft/class_1282;F)Vofficial aLbto;a(Larp;Lbvh;ILbtb;F)V
-
spawnSilverfish
private void spawnSilverfish(ServerWorld serverWorld, LivingEntity entity, double x, double y, double z) - Mappings:
Namespace Name Mixin selector named spawnSilverfishLnet/minecraft/entity/effect/InfestedStatusEffect;spawnSilverfish(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;DDD)Vintermediary method_58615Lnet/minecraft/class_9455;method_58615(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;DDD)Vofficial aLbtm;a(Larp;Lbvh;DDD)V
-