Class MobEffectEntry<T extends net.minecraft.world.effect.MobEffect>

java.lang.Object
net.neoforged.neoforge.registries.DeferredHolder<net.minecraft.world.effect.MobEffect,T>
com.tterrag.registrate.util.entry.RegistryEntry<net.minecraft.world.effect.MobEffect,T>
com.petrolpark.core.registrate.MobEffectEntry<T>
All Implemented Interfaces:
com.tterrag.registrate.util.nullness.NonNullSupplier<T>, Supplier<T>, net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect>, net.neoforged.neoforge.common.extensions.IHolderExtension<net.minecraft.world.effect.MobEffect>, net.neoforged.neoforge.registries.datamaps.IWithData<net.minecraft.world.effect.MobEffect>

public class MobEffectEntry<T extends net.minecraft.world.effect.MobEffect> extends com.tterrag.registrate.util.entry.RegistryEntry<net.minecraft.world.effect.MobEffect,T>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.core.Holder

    net.minecraft.core.Holder.Direct<T>, net.minecraft.core.Holder.Kind, net.minecraft.core.Holder.Reference<T>
  • Field Summary

    Fields inherited from class net.neoforged.neoforge.registries.DeferredHolder

    key
  • Constructor Summary

    Constructors
    Constructor
    Description
    MobEffectEntry(com.tterrag.registrate.AbstractRegistrate<?> owner, net.neoforged.neoforge.registries.DeferredHolder<net.minecraft.world.effect.MobEffect,T> key)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    net.minecraft.world.effect.MobEffectInstance
    asInstance(int duration, int amplifier)
     
    Supplier<net.minecraft.world.effect.MobEffectInstance>
    asInstanceSupplier(int duration, int amplifier)
     

    Methods inherited from class com.tterrag.registrate.util.entry.RegistryEntry

    cast, filter, getSibling, getSibling, is

    Methods inherited from class net.neoforged.neoforge.registries.DeferredHolder

    asOptional, bind, canSerializeIn, create, create, create, equals, get, getData, getDelegate, getId, getKey, getRegistry, hashCode, is, is, is, is, is, isBound, kind, tags, toString, unwrap, unwrapKey, value

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.core.Holder

    getRegisteredName

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IHolderExtension

    unwrapLookup

    Methods inherited from interface com.tterrag.registrate.util.nullness.NonNullSupplier

    get, lazy
  • Constructor Details

    • MobEffectEntry

      public MobEffectEntry(com.tterrag.registrate.AbstractRegistrate<?> owner, net.neoforged.neoforge.registries.DeferredHolder<net.minecraft.world.effect.MobEffect,T> key)
  • Method Details

    • asInstance

    • asInstance

      public net.minecraft.world.effect.MobEffectInstance asInstance(int duration, int amplifier)
    • asInstanceSupplier

      public Supplier<net.minecraft.world.effect.MobEffectInstance> asInstanceSupplier(int duration, int amplifier)