Class EntityHelper

java.lang.Object
team.lodestar.lodestone.helpers.EntityHelper

public class EntityHelper extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    amplifyEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int addedAmplifier)
     
    static void
    amplifyEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int addedAmplifier, int cap)
     
    static void
    extendEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int addedDuration)
     
    static void
    extendEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int addedDuration, int cap)
     
    static void
    shortenEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target, int removedDuration)
     
    static void
    syncEffect(net.minecraft.world.effect.MobEffectInstance instance, net.minecraft.world.entity.LivingEntity target)
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.