Class MobEffectBuilder.MobEffectInstanceBuilder
java.lang.Object
com.petrolpark.core.registrate.builder.MobEffectBuilder.MobEffectInstanceBuilder
- All Implemented Interfaces:
com.tterrag.registrate.util.nullness.NonNullSupplier<net.minecraft.world.effect.MobEffectInstance>,Supplier<net.minecraft.world.effect.MobEffectInstance>
- Enclosing class:
MobEffectBuilder<T extends net.minecraft.world.effect.MobEffect,P>
public static class MobEffectBuilder.MobEffectInstanceBuilder
extends Object
implements com.tterrag.registrate.util.nullness.NonNullSupplier<net.minecraft.world.effect.MobEffectInstance>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intprotected intprotected final com.tterrag.registrate.util.nullness.NonNullSupplier<net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect>> protected booleanprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionMobEffectInstanceBuilder(com.tterrag.registrate.util.nullness.NonNullSupplier<net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect>> effect) -
Method Summary
Modifier and TypeMethodDescriptionbooleanambient()ambient(boolean ambient) intamplifier(int amplifier) net.minecraft.world.effect.MobEffectInstancebuild()copy()intduration()duration(int duration) com.tterrag.registrate.util.nullness.NonNullSupplier<net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect>> effect()final @NonnullType net.minecraft.world.effect.MobEffectInstanceget()Deprecated.hidden()booleanshowIcon()showIcon(boolean showIcon) booleanvisible()visible(boolean visible) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tterrag.registrate.util.nullness.NonNullSupplier
lazy
-
Field Details
-
effect
protected final com.tterrag.registrate.util.nullness.NonNullSupplier<net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect>> effect -
duration
protected int duration -
amplifier
protected int amplifier -
ambient
protected boolean ambient -
visible
protected boolean visible -
showIcon
protected boolean showIcon
-
-
Constructor Details
-
MobEffectInstanceBuilder
-
MobEffectInstanceBuilder
public MobEffectInstanceBuilder(com.tterrag.registrate.util.nullness.NonNullSupplier<net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect>> effect)
-
-
Method Details
-
copyFrom
public MobEffectBuilder.MobEffectInstanceBuilder copyFrom(MobEffectBuilder.MobEffectInstanceBuilder builder) -
effect
public com.tterrag.registrate.util.nullness.NonNullSupplier<net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect>> effect() -
duration
public int duration() -
duration
-
amplifier
public int amplifier() -
amplifier
-
ambient
public boolean ambient() -
ambient
-
visible
public boolean visible() -
visible
-
showIcon
public boolean showIcon() -
showIcon
-
copy
-
build
public net.minecraft.world.effect.MobEffectInstance build() -
get
@Deprecated @NonnullType public final @NonnullType net.minecraft.world.effect.MobEffectInstance get()Deprecated.
-