Class AllayAi
java.lang.Object
net.minecraft.world.entity.animal.allay.AllayAi
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final float
private static final float
private static final float
private static final float
private static final int
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static Optional
<PositionTracker> getItemDepositPosition
(LivingEntity p_218424_) static Optional
<ServerPlayer> getLikedPlayer
(LivingEntity p_218411_) private static Optional
<PositionTracker> getLikedPlayerPositionTracker
(LivingEntity p_218430_) private static boolean
hasWantedItem
(LivingEntity p_273346_) static void
hearNoteblock
(LivingEntity p_218417_, BlockPos p_218418_) private static void
initCoreActivity
(Brain<Allay> p_218426_) private static void
initIdleActivity
(Brain<Allay> p_218432_) protected static Brain
<?> private static boolean
shouldDepositItemsAtLikedNoteblock
(LivingEntity p_218413_, Brain<?> p_218414_, GlobalPos p_218415_) static void
updateActivity
(Allay p_218422_)
-
Field Details
-
SPEED_MULTIPLIER_WHEN_IDLING
private static final float SPEED_MULTIPLIER_WHEN_IDLING- See Also:
-
SPEED_MULTIPLIER_WHEN_FOLLOWING_DEPOSIT_TARGET
private static final float SPEED_MULTIPLIER_WHEN_FOLLOWING_DEPOSIT_TARGET- See Also:
-
SPEED_MULTIPLIER_WHEN_RETRIEVING_ITEM
private static final float SPEED_MULTIPLIER_WHEN_RETRIEVING_ITEM- See Also:
-
SPEED_MULTIPLIER_WHEN_PANICKING
private static final float SPEED_MULTIPLIER_WHEN_PANICKING- See Also:
-
CLOSE_ENOUGH_TO_TARGET
private static final int CLOSE_ENOUGH_TO_TARGET- See Also:
-
TOO_FAR_FROM_TARGET
private static final int TOO_FAR_FROM_TARGET- See Also:
-
MAX_LOOK_DISTANCE
private static final int MAX_LOOK_DISTANCE- See Also:
-
MIN_WAIT_DURATION
private static final int MIN_WAIT_DURATION- See Also:
-
MAX_WAIT_DURATION
private static final int MAX_WAIT_DURATION- See Also:
-
TIME_TO_FORGET_NOTEBLOCK
private static final int TIME_TO_FORGET_NOTEBLOCK- See Also:
-
DISTANCE_TO_WANTED_ITEM
private static final int DISTANCE_TO_WANTED_ITEM- See Also:
-
GIVE_ITEM_TIMEOUT_DURATION
private static final int GIVE_ITEM_TIMEOUT_DURATION- See Also:
-
-
Constructor Details
-
AllayAi
public AllayAi()
-
-
Method Details
-
makeBrain
-
initCoreActivity
-
initIdleActivity
-
updateActivity
-
hearNoteblock
-
getItemDepositPosition
-
hasWantedItem
-
shouldDepositItemsAtLikedNoteblock
private static boolean shouldDepositItemsAtLikedNoteblock(LivingEntity p_218413_, Brain<?> p_218414_, GlobalPos p_218415_) -
getLikedPlayerPositionTracker
-
getLikedPlayer
-