Package team.lodestar.lodestone.helpers
Class EntityHelper
java.lang.Object
team.lodestar.lodestone.helpers.EntityHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidamplifyEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int addedAmplifier) static voidamplifyEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int addedAmplifier, int cap) static voidextendEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int addedDuration) static voidextendEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int addedDuration, int cap) static net.minecraft.world.phys.HitResultfilterHitResult(net.minecraft.world.phys.HitResult hitResult, net.minecraft.world.phys.Vec3 pos, double blockInteractionRange) static net.minecraft.world.phys.HitResultpick(net.minecraft.world.entity.Entity entity, double blockInteractionRange, double entityInteractionRange) static net.minecraft.world.phys.HitResultpick(net.minecraft.world.entity.LivingEntity entity) static voidshortenEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int removedDuration) static voidsyncEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target)
-
Constructor Details
-
EntityHelper
public EntityHelper()
-
-
Method Details
-
pick
public static net.minecraft.world.phys.HitResult pick(net.minecraft.world.entity.LivingEntity entity) -
pick
public static net.minecraft.world.phys.HitResult pick(net.minecraft.world.entity.Entity entity, double blockInteractionRange, double entityInteractionRange) -
filterHitResult
public static net.minecraft.world.phys.HitResult filterHitResult(net.minecraft.world.phys.HitResult hitResult, net.minecraft.world.phys.Vec3 pos, double blockInteractionRange) -
amplifyEffect
public static void amplifyEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int addedAmplifier, int cap) -
amplifyEffect
public static void amplifyEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int addedAmplifier) -
extendEffect
public static void extendEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int addedDuration, int cap) -
extendEffect
public static void extendEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int addedDuration) -
shortenEffect
public static void shortenEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int removedDuration) -
syncEffect
public static void syncEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target)
-