Class Ghast.GhastMoveControl
java.lang.Object
net.minecraft.world.entity.ai.control.MoveControl
net.minecraft.world.entity.monster.Ghast.GhastMoveControl
- All Implemented Interfaces:
Control
- Enclosing class:
Ghast
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.control.MoveControl
MoveControl.Operation -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate intprivate final Mobprivate final BooleanSupplierFields 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
ConstructorsConstructorDescriptionGhastMoveControl(Mob ghast, boolean careful, BooleanSupplier shouldBeStopped) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanblockTraversalPossible(BlockGetter level, Vec3 from, Vec3 to, BlockPos pos, boolean isInLava, boolean isInWater) private booleanvoidtick()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
-
ghast
-
floatDuration
private int floatDuration -
careful
private final boolean careful -
shouldBeStopped
-
-
Constructor Details
-
GhastMoveControl
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classMoveControl
-
canReach
-
blockTraversalPossible
private boolean blockTraversalPossible(BlockGetter level, @Nullable Vec3 from, @Nullable Vec3 to, BlockPos pos, boolean isInLava, boolean isInWater)
-