Package net.minecraft.entity.effect
Class WeavingStatusEffect
java.lang.Object
net.minecraft.entity.effect.StatusEffect
net.minecraft.entity.effect.WeavingStatusEffect
- All Implemented Interfaces:
ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/entity/effect/WeavingStatusEffectintermediary net/minecraft/class_9458official bsh
-
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
ConstructorsModifierConstructorDescriptionprotectedWeavingStatusEffect(StatusEffectCategory category, int color, ToIntFunction<Random> cobwebChanceFunction) -
Method Summary
Modifier and TypeMethodDescriptionvoidonEntityRemoval(LivingEntity entity, int amplifier, Entity.RemovalReason reason) private voidtryPlaceCobweb(World world, Random random, BlockPos pos) 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, onEntityDamage, 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
-
cobwebChanceFunction
- Mappings:
Namespace Name Mixin selector named cobwebChanceFunctionLnet/minecraft/entity/effect/WeavingStatusEffect;cobwebChanceFunction:Ljava/util/function/ToIntFunction;intermediary field_50123Lnet/minecraft/class_9458;field_50123:Ljava/util/function/ToIntFunction;official cLbsh;c:Ljava/util/function/ToIntFunction;
-
-
Constructor Details
-
WeavingStatusEffect
protected WeavingStatusEffect(StatusEffectCategory category, int color, ToIntFunction<Random> cobwebChanceFunction) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/effect/WeavingStatusEffect;<init>(Lnet/minecraft/entity/effect/StatusEffectCategory;ILjava/util/function/ToIntFunction;)Vintermediary <init>Lnet/minecraft/class_9458;<init>(Lnet/minecraft/class_4081;ILjava/util/function/ToIntFunction;)Vofficial <init>Lbsh;<init>(Lbry;ILjava/util/function/ToIntFunction;)V
-
-
Method Details
-
onEntityRemoval
- Overrides:
onEntityRemovalin classStatusEffect- Mappings:
Namespace Name Mixin selector named onEntityRemovalLnet/minecraft/entity/effect/StatusEffect;onEntityRemoval(Lnet/minecraft/entity/LivingEntity;ILnet/minecraft/entity/Entity$RemovalReason;)Vintermediary method_58617Lnet/minecraft/class_1291;method_58617(Lnet/minecraft/class_1309;ILnet/minecraft/class_1297$class_5529;)Vofficial aLbrx;a(Lbtn;ILbsr$c;)V
-
tryPlaceCobweb
- Mappings:
Namespace Name Mixin selector named tryPlaceCobwebLnet/minecraft/entity/effect/WeavingStatusEffect;tryPlaceCobweb(Lnet/minecraft/world/World;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_58628Lnet/minecraft/class_9458;method_58628(Lnet/minecraft/class_1937;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Vofficial aLbsh;a(Ldcw;Layw;Ljd;)V
-