Package com.petrolpark.core.registrate
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
ConstructorsConstructorDescriptionMobEffectEntry(com.tterrag.registrate.AbstractRegistrate<?> owner, net.neoforged.neoforge.registries.DeferredHolder<net.minecraft.world.effect.MobEffect, T> key) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.effect.MobEffectInstanceasInstance(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, isMethods 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, valueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.core.Holder
getRegisteredNameMethods inherited from interface net.neoforged.neoforge.common.extensions.IHolderExtension
unwrapLookupMethods 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)
-