Package team.lodestar.lodestone.helpers
Class EntityHelper
java.lang.Object
team.lodestar.lodestone.helpers.EntityHelper
-
Nested Class Summary
Nested Classes -
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 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) static voidtrackPastPositions(ArrayList<EntityHelper.PastPosition> pastPositions, net.minecraft.world.phys.Vec3 currentPosition, float distanceThreshold) Tracks the travel path of an entity or other object
-
Constructor Details
-
EntityHelper
public EntityHelper()
-
-
Method Details
-
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) -
trackPastPositions
public static void trackPastPositions(ArrayList<EntityHelper.PastPosition> pastPositions, net.minecraft.world.phys.Vec3 currentPosition, float distanceThreshold) Tracks the travel path of an entity or other object- Parameters:
pastPositions- An ArrayList that houses all the past positions.currentPosition- The current position to be added to the list.distanceThreshold- the minimum distance from the latest PastPos before a new position is added.
-