net.minecraft.entity.mob

public class GhastEntity$FlyRandomlyGoal

extends Goal

net.minecraft.world.entity.monster.Ghast$RandomFloatAroundGoal
net.minecraft.class_1571$class_1575
net.minecraft.entity.mob.GhastEntity$FlyRandomlyGoal

Field summary

Modifier and TypeField
private static final int
MAX_ATTEMPTS
field_59707
field_59707
private final MobEntity
ghast
field_59708
ghast
private final int
distanceToBlocks
field_59709
blockCheckDistance

Constructor summary

ModifierConstructor
public (MobEntity ghast)
public (MobEntity ghast, int blockCheckDistance)

Method summary

Modifier and TypeMethod
public boolean
canUse()
method_6264()
canStart()
public boolean
canContinueToUse()
method_6266()
shouldContinue()
public void
start()
method_6269()
start()
public static Vec3d
getSuitableFlyToPosition(Mob mob, int distanceToBlocks)
method_70720(class_1308 arg0, int arg1)
locateTarget(MobEntity ghast, int blockCheckDistance)
private static boolean
isGoodTarget(Level level, Vec3 target, int distanceToBlocks)
method_70722(class_1937 arg0, class_243 arg1, int arg2)
isTargetValid(World world, Vec3d pos, int blockCheckDistance)
private static Vec3d
chooseRandomPosition(Vec3 center, RandomSource random)
method_70723(class_243 arg0, class_5819 arg1)
addRandom(Vec3d pos, Random random)
private static Vec3d
chooseRandomPositionWithRestriction(Mob mob, Vec3 center, RandomSource random)
method_70721(class_1308 arg0, class_243 arg1, class_5819 arg2)
getTargetPos(MobEntity ghast, Vec3d pos, Random random)