Class WalkTarget
java.lang.Object
net.minecraft.world.entity.ai.memory.WalkTarget
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final float
private final PositionTracker
-
Constructor Summary
ConstructorsConstructorDescriptionWalkTarget
(BlockPos pPos, float pSpeedModifier, int pCloseEnoughDist) Constructs a walk target that tracks a positionWalkTarget
(PositionTracker pTarget, float pSpeedModifier, int pCloseEnoughDist) WalkTarget
(Entity pTargetEntity, float pSpeedModifier, int pCloseEnoughDist) Constructs a walk target that tracks an entity's positionWalkTarget
(Vec3 pVectorPos, float pSpeedModifier, int pCloseEnoughDist) Constructs a walk target using a vector that's directly converted to a BlockPos. -
Method Summary
Modifier and TypeMethodDescriptionint
float
-
Field Details
-
target
-
speedModifier
private final float speedModifier -
closeEnoughDist
private final int closeEnoughDist
-
-
Constructor Details
-
WalkTarget
Constructs a walk target that tracks a position -
WalkTarget
Constructs a walk target using a vector that's directly converted to a BlockPos. -
WalkTarget
Constructs a walk target that tracks an entity's position -
WalkTarget
-
-
Method Details
-
getTarget
-
getSpeedModifier
public float getSpeedModifier() -
getCloseEnoughDist
public int getCloseEnoughDist()
-