Class ExpandMobEffect
java.lang.Object
com.blamejared.crafttweaker.natives.entity.effect.ExpandMobEffect
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.effect.MobEffectaddAttributeModifier(net.minecraft.world.effect.MobEffect internal, net.minecraft.world.entity.ai.attributes.Attribute attribute, String name, double value, net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation operation) static voidapplyEffectTick(net.minecraft.world.effect.MobEffect internal, net.minecraft.world.entity.LivingEntity entity, int amplifier) static voidapplyInstantenousEffect(net.minecraft.world.effect.MobEffect internal, net.minecraft.world.entity.Entity source, net.minecraft.world.entity.Entity indirectSource, net.minecraft.world.entity.LivingEntity target, int amplifier, double effectiveness) static Map<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier> getAttributeModifiers(net.minecraft.world.effect.MobEffect internal) static doublegetAttributeModifierValue(net.minecraft.world.effect.MobEffect internal, int amplifier, net.minecraft.world.entity.ai.attributes.AttributeModifier modifier) static net.minecraft.world.effect.MobEffectCategorygetCategory(net.minecraft.world.effect.MobEffect internal) static intgetColor(net.minecraft.world.effect.MobEffect internal) static StringgetCommandString(net.minecraft.world.effect.MobEffect internal) static StringgetDescriptionId(net.minecraft.world.effect.MobEffect internal) static net.minecraft.network.chat.ComponentgetDisplayName(net.minecraft.world.effect.MobEffect internal) static net.minecraft.resources.ResourceLocationgetRegistryName(net.minecraft.world.effect.MobEffect internal) static booleanisBeneficial(net.minecraft.world.effect.MobEffect internal) static booleanisDurationEffectTick(net.minecraft.world.effect.MobEffect internal, int duration, int amplifier) static booleanisInstantenous(net.minecraft.world.effect.MobEffect internal)
-
Constructor Details
-
ExpandMobEffect
public ExpandMobEffect()
-
-
Method Details
-
applyEffectTick
public static void applyEffectTick(net.minecraft.world.effect.MobEffect internal, net.minecraft.world.entity.LivingEntity entity, int amplifier) -
applyInstantenousEffect
public static void applyInstantenousEffect(net.minecraft.world.effect.MobEffect internal, @Nullable net.minecraft.world.entity.Entity source, @Nullable net.minecraft.world.entity.Entity indirectSource, net.minecraft.world.entity.LivingEntity target, int amplifier, double effectiveness) -
isDurationEffectTick
public static boolean isDurationEffectTick(net.minecraft.world.effect.MobEffect internal, int duration, int amplifier) -
isInstantenous
public static boolean isInstantenous(net.minecraft.world.effect.MobEffect internal) -
getDescriptionId
-
getDisplayName
public static net.minecraft.network.chat.Component getDisplayName(net.minecraft.world.effect.MobEffect internal) -
getCategory
public static net.minecraft.world.effect.MobEffectCategory getCategory(net.minecraft.world.effect.MobEffect internal) -
getColor
public static int getColor(net.minecraft.world.effect.MobEffect internal) -
addAttributeModifier
public static net.minecraft.world.effect.MobEffect addAttributeModifier(net.minecraft.world.effect.MobEffect internal, net.minecraft.world.entity.ai.attributes.Attribute attribute, String name, double value, net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation operation) -
getAttributeModifiers
public static Map<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier> getAttributeModifiers(net.minecraft.world.effect.MobEffect internal) -
getAttributeModifierValue
public static double getAttributeModifierValue(net.minecraft.world.effect.MobEffect internal, int amplifier, net.minecraft.world.entity.ai.attributes.AttributeModifier modifier) -
isBeneficial
public static boolean isBeneficial(net.minecraft.world.effect.MobEffect internal) -
getRegistryName
public static net.minecraft.resources.ResourceLocation getRegistryName(net.minecraft.world.effect.MobEffect internal) -
getCommandString
-