Class BookMoveControl
java.lang.Object
net.minecraft.world.entity.ai.control.MoveControl
net.minecraft.world.entity.ai.control.FlyingMoveControl
johnsmith.enchantingoverhauled.entity.ai.control.BookMoveControl
- All Implemented Interfaces:
net.minecraft.world.entity.ai.control.Control
public class BookMoveControl
extends net.minecraft.world.entity.ai.control.FlyingMoveControl
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.control.MoveControl
net.minecraft.world.entity.ai.control.MoveControl.Operation -
Field Summary
FieldsFields inherited from class net.minecraft.world.entity.ai.control.MoveControl
MAX_TURN, MIN_SPEED, MIN_SPEED_SQR, mob, operation, speedModifier, strafeForwards, strafeRight, wantedX, wantedY, wantedZ -
Constructor Summary
ConstructorsConstructorDescriptionBookMoveControl(AbstractFlyingBookEntity book, int maxTurn, boolean hoversInPlace) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanAscendFromMelee(AbstractFlyingBookEntity book, net.minecraft.world.entity.LivingEntity target) static doublegetDesiredCombatAltitude(net.minecraft.world.entity.LivingEntity target) static doublegetMeleeVerticalStrikeLimit(net.minecraft.world.entity.LivingEntity target) static doublegetMinimumSafeCombatAltitude(net.minecraft.world.entity.LivingEntity target) static booleanhasHeadroom(AbstractFlyingBookEntity book, double targetY) static booleanisTargetRanged(net.minecraft.world.entity.LivingEntity target) static booleanisWithinMeleeStrikingRange(AbstractFlyingBookEntity book, net.minecraft.world.entity.LivingEntity target) static doubleresolveCombatAltitudeForIncline(AbstractFlyingBookEntity book, net.minecraft.world.entity.LivingEntity target) static doubleresolveHighestClearAltitude(AbstractFlyingBookEntity book, double desiredY) voidtick()Methods inherited from class net.minecraft.world.entity.ai.control.MoveControl
getSpeedModifier, getWantedX, getWantedY, getWantedZ, hasWanted, rotlerp, setWait, setWantedPosition, strafeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.entity.ai.control.Control
rotateTowards
-
Field Details
-
MAX_EUCLIDEAN_ATTACK_RANGE
public static final double MAX_EUCLIDEAN_ATTACK_RANGE- See Also:
-
-
Constructor Details
-
BookMoveControl
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.ai.control.FlyingMoveControl
-
getMinimumSafeCombatAltitude
public static double getMinimumSafeCombatAltitude(net.minecraft.world.entity.LivingEntity target) -
getDesiredCombatAltitude
public static double getDesiredCombatAltitude(net.minecraft.world.entity.LivingEntity target) -
resolveCombatAltitudeForIncline
public static double resolveCombatAltitudeForIncline(AbstractFlyingBookEntity book, net.minecraft.world.entity.LivingEntity target) -
getMeleeVerticalStrikeLimit
public static double getMeleeVerticalStrikeLimit(net.minecraft.world.entity.LivingEntity target) -
isWithinMeleeStrikingRange
public static boolean isWithinMeleeStrikingRange(AbstractFlyingBookEntity book, net.minecraft.world.entity.LivingEntity target) -
canAscendFromMelee
public static boolean canAscendFromMelee(AbstractFlyingBookEntity book, net.minecraft.world.entity.LivingEntity target) -
resolveHighestClearAltitude
-
hasHeadroom
-
isTargetRanged
public static boolean isTargetRanged(net.minecraft.world.entity.LivingEntity target)
-