Class ManyMobEffectsTest

java.lang.Object
net.neoforged.neoforge.oldtest.ManyMobEffectsTest

public class ManyMobEffectsTest extends Object
Registers 255 mob effects that log every tick on the client. Used to test the patches for saving MobEffects to NBT. To verify correct function: - Check that the Potion item and suspicious stew item provided via the creative tab function correctly - Check that the effect given by the above items can persist on an entity as well as on ItemStacks in inventories - Right click a Mushroom Cow using the above given Potion Item. Verify that it obtained the effect by right-clicking it again using an empty hand before and after reloading the world.
  • Field Details

    • MODID

      static final String MODID
      See Also:
    • ENABLED

      private static final boolean ENABLED
      See Also:
    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • MOB_EFFECTS

      private static final DeferredRegister<net.minecraft.world.effect.MobEffect> MOB_EFFECTS
    • LAST_EFFECT

      private static final DeferredHolder<net.minecraft.world.effect.MobEffect,net.minecraft.world.effect.MobEffect> LAST_EFFECT
  • Constructor Details

    • ManyMobEffectsTest

      public ManyMobEffectsTest(net.neoforged.bus.api.IEventBus modBus)
  • Method Details