Class WeavingStatusEffect

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

class WeavingStatusEffect extends StatusEffect
Mappings:
Namespace Name
named net/minecraft/entity/effect/WeavingStatusEffect
intermediary net/minecraft/class_9458
official buw
  • Field Details

    • cobwebChanceFunction

      private final ToIntFunction<Random> cobwebChanceFunction
      Mappings:
      Namespace Name Mixin selector
      named cobwebChanceFunction Lnet/minecraft/entity/effect/WeavingStatusEffect;cobwebChanceFunction:Ljava/util/function/ToIntFunction;
      intermediary field_50123 Lnet/minecraft/class_9458;field_50123:Ljava/util/function/ToIntFunction;
      official c Lbuw;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;)V
      intermediary <init> Lnet/minecraft/class_9458;<init>(Lnet/minecraft/class_4081;ILjava/util/function/ToIntFunction;)V
      official <init> Lbuw;<init>(Lbun;ILjava/util/function/ToIntFunction;)V
  • Method Details

    • onEntityRemoval

      public void onEntityRemoval(ServerWorld world, LivingEntity entity, int amplifier, Entity.RemovalReason reason)
      Overrides:
      onEntityRemoval in class StatusEffect
      Mappings:
      Namespace Name Mixin selector
      named onEntityRemoval Lnet/minecraft/entity/effect/StatusEffect;onEntityRemoval(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;ILnet/minecraft/entity/Entity$RemovalReason;)V
      intermediary method_58617 Lnet/minecraft/class_1291;method_58617(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;ILnet/minecraft/class_1297$class_5529;)V
      official a Lbum;a(Lash;Lbwf;ILbvj$d;)V
    • tryPlaceCobweb

      private void tryPlaceCobweb(ServerWorld world, Random random, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named tryPlaceCobweb Lnet/minecraft/entity/effect/WeavingStatusEffect;tryPlaceCobweb(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_58628 Lnet/minecraft/class_9458;method_58628(Lnet/minecraft/class_3218;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)V
      official a Lbuw;a(Lash;Lbam;Ljh;)V