Class MoveControl
java.lang.Object
net.minecraft.world.entity.ai.control.MoveControl
- All Implemented Interfaces:
- Control
- Direct Known Subclasses:
- AbstractFish.FishMoveControl,- Camel.CamelMoveControl,- Drowned.DrownedMoveControl,- FlyingMoveControl,- Fox.FoxMoveControl,- Ghast.GhastMoveControl,- Guardian.GuardianMoveControl,- Panda.PandaMoveControl,- Phantom.PhantomMoveControl,- Rabbit.RabbitMoveControl,- Slime.SlimeMoveControl,- SmoothSwimmingMoveControl,- Turtle.TurtleMoveControl,- Vex.VexMoveControl
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final intstatic final floatstatic final floatprotected final Mobprotected MoveControl.Operationprotected doubleprotected floatprotected floatprotected doubleprotected doubleprotected double
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoubledoubledoubledoublebooleanprivate booleanisWalkable(float p_24997_, float p_24998_) protected floatrotlerp(float p_24992_, float p_24993_, float p_24994_) voidsetWantedPosition(double p_24984_, double p_24985_, double p_24986_, double p_24987_) voidstrafe(float p_24989_, float p_24990_) voidtick()
- 
Field Details- 
MIN_SPEEDpublic static final float MIN_SPEED- See Also:
 
- 
MIN_SPEED_SQRpublic static final float MIN_SPEED_SQR- See Also:
 
- 
MAX_TURNprotected static final int MAX_TURN- See Also:
 
- 
mob
- 
wantedXprotected double wantedX
- 
wantedYprotected double wantedY
- 
wantedZprotected double wantedZ
- 
speedModifierprotected double speedModifier
- 
strafeForwardsprotected float strafeForwards
- 
strafeRightprotected float strafeRight
- 
operation
 
- 
- 
Constructor Details- 
MoveControl
 
- 
- 
Method Details- 
hasWantedpublic boolean hasWanted()
- 
getSpeedModifierpublic double getSpeedModifier()
- 
setWantedPositionpublic void setWantedPosition(double p_24984_, double p_24985_, double p_24986_, double p_24987_) 
- 
strafepublic void strafe(float p_24989_, float p_24990_) 
- 
tickpublic void tick()
- 
isWalkableprivate boolean isWalkable(float p_24997_, float p_24998_) 
- 
rotlerpprotected float rotlerp(float p_24992_, float p_24993_, float p_24994_) 
- 
getWantedXpublic double getWantedX()
- 
getWantedYpublic double getWantedY()
- 
getWantedZpublic double getWantedZ()
 
-