Package net.glowstone.entity.ai
Class TransportHelper
java.lang.Object
net.glowstone.entity.ai.TransportHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
moveTowards
(GlowLivingEntity entity, org.bukkit.Location direction) static void
moveTowards
(GlowLivingEntity entity, org.bukkit.Location direction, double speed) Starts an entity moving horizontally toward a location (may overshoot).
-
Constructor Details
-
TransportHelper
public TransportHelper()
-
-
Method Details
-
moveTowards
-
moveTowards
public static void moveTowards(GlowLivingEntity entity, org.bukkit.Location direction, double speed) Starts an entity moving horizontally toward a location (may overshoot).- Parameters:
entity
- the entity to movedirection
- the destination to move towardspeed
- the speed to move
-