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 boolean
private int
private final Mob
private final BooleanSupplier
Fields 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 pGhast, boolean pCareful, BooleanSupplier pShouldBeStopped) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
blockTraversalPossible
(BlockGetter pLevel, Vec3 pFrom, Vec3 pTo, BlockPos pPos, boolean pIsInLava, boolean pIsInWater) private boolean
void
tick()
Methods inherited from class net.minecraft.world.entity.ai.control.MoveControl
getSpeedModifier, getWantedX, getWantedY, getWantedZ, hasWanted, rotlerp, setWait, setWantedPosition, strafe
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
tick
in classMoveControl
-
canReach
-
blockTraversalPossible
private boolean blockTraversalPossible(BlockGetter pLevel, @Nullable Vec3 pFrom, @Nullable Vec3 pTo, BlockPos pPos, boolean pIsInLava, boolean pIsInWater)
-