Class LookControl
java.lang.Object
net.minecraft.world.entity.ai.control.LookControl
- All Implemented Interfaces:
- Control
- Direct Known Subclasses:
- Bee.BeeLookControl,- Camel.CamelLookControl,- Fox.FoxLookControl,- Frog.FrogLookControl,- Phantom.PhantomLookControl,- Shulker.ShulkerLookControl,- SmoothSwimmingLookControl
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected intprotected final Mobprotected doubleprotected doubleprotected doubleprotected floatprotected float
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddoubledoubleprivate static doublegetWantedY(Entity p_24967_) doublegetXRotD()getYRotD()booleanprotected booleanprotected floatrotateTowards(float p_24957_, float p_24958_, float p_24959_) voidsetLookAt(double p_24947_, double p_24948_, double p_24949_) voidsetLookAt(double p_24951_, double p_24952_, double p_24953_, float p_24954_, float p_24955_) voidvoidvoidvoidtick()
- 
Field Details- 
mob
- 
yMaxRotSpeedprotected float yMaxRotSpeed
- 
xMaxRotAngleprotected float xMaxRotAngle
- 
lookAtCooldownprotected int lookAtCooldown
- 
wantedXprotected double wantedX
- 
wantedYprotected double wantedY
- 
wantedZprotected double wantedZ
 
- 
- 
Constructor Details- 
LookControl
 
- 
- 
Method Details- 
setLookAt
- 
setLookAt
- 
setLookAt
- 
setLookAtpublic void setLookAt(double p_24947_, double p_24948_, double p_24949_) 
- 
setLookAtpublic void setLookAt(double p_24951_, double p_24952_, double p_24953_, float p_24954_, float p_24955_) 
- 
tickpublic void tick()
- 
clampHeadRotationToBodyprotected void clampHeadRotationToBody()
- 
resetXRotOnTickprotected boolean resetXRotOnTick()
- 
isLookingAtTargetpublic boolean isLookingAtTarget()
- 
getWantedXpublic double getWantedX()
- 
getWantedYpublic double getWantedY()
- 
getWantedZpublic double getWantedZ()
- 
getXRotD
- 
getYRotD
- 
rotateTowardsprotected float rotateTowards(float p_24957_, float p_24958_, float p_24959_) 
- 
getWantedY
 
-