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 MoveControl
MoveControl.Operation -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate intprivate final Mobprivate final BooleanSupplierFields inherited from class 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, @Nullable Vec3 start, @Nullable Vec3 end, BlockPos pos, boolean canPathThroughWater, boolean canPathThroughLava) private booleanvoidtick()Methods inherited from class MoveControl
getSpeedModifier, getWantedX, getWantedY, getWantedZ, hasWanted, rotlerp, setWait, setWantedPosition, strafeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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 start, @Nullable Vec3 end, BlockPos pos, boolean canPathThroughWater, boolean canPathThroughLava)
-