Class MoveToSkySeeingSpot
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<LivingEntity>
net.minecraft.world.entity.ai.behavior.MoveToSkySeeingSpot
- Direct Known Subclasses:
GoOutsideToCelebrate
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions(ServerLevel p_23552_, LivingEntity p_23553_)
private Vec3
getOutdoorPosition(ServerLevel p_23565_, LivingEntity p_23566_)
static boolean
hasNoBlocksAbove(ServerLevel p_23559_, LivingEntity p_23560_, BlockPos p_23561_)
protected void
start(ServerLevel p_23555_, LivingEntity p_23556_, long p_23557_)
Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
speedModifier
private final float speedModifier
-
-
Constructor Details
-
MoveToSkySeeingSpot
public MoveToSkySeeingSpot(float p_23550_)
-
-
Method Details
-
start
- Overrides:
start
in classBehavior<LivingEntity>
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<LivingEntity>
-
getOutdoorPosition
-
hasNoBlocksAbove
public static boolean hasNoBlocksAbove(ServerLevel p_23559_, LivingEntity p_23560_, BlockPos p_23561_)
-