java.lang.Object
net.frozenblock.wilderwild.entity.ai.crab.CrabAi

public final class CrabAi extends Object
  • Field Details

    • UNDERGROUND_PLAYER_RANGE

      public static final double UNDERGROUND_PLAYER_RANGE
      See Also:
    • SENSORS

      public static final List<net.minecraft.world.entity.ai.sensing.SensorType<? extends net.minecraft.world.entity.ai.sensing.Sensor<? super Crab>>> SENSORS
    • MEMORY_MODULES

      public static final List<? extends net.minecraft.world.entity.ai.memory.MemoryModuleType<?>> MEMORY_MODULES
  • Constructor Details

    • CrabAi

      public CrabAi()
  • Method Details

    • updateActivity

      public static void updateActivity(@NotNull @NotNull Crab crab)
    • makeBrain

      @NotNull public static @NotNull net.minecraft.world.entity.ai.Brain<Crab> makeBrain(@NotNull @NotNull Crab crab, @NotNull @NotNull net.minecraft.world.entity.ai.Brain<Crab> brain)
    • wasHurtBy

      public static void wasHurtBy(@NotNull @NotNull Crab crab, net.minecraft.world.entity.LivingEntity target)
    • setAngerTarget

      public static void setAngerTarget(@NotNull @NotNull Crab crab, net.minecraft.world.entity.LivingEntity target)
    • broadcastAngerTarget

      public static void broadcastAngerTarget(@NotNull @NotNull Crab crab, net.minecraft.world.entity.LivingEntity target)
    • getNearestVisibleTargetablePlayer

      public static Optional<net.minecraft.world.entity.player.Player> getNearestVisibleTargetablePlayer(@NotNull @NotNull Crab crab)
    • setDigCooldown

      public static void setDigCooldown(@NotNull @NotNull Crab crab)
    • clearDigCooldown

      public static void clearDigCooldown(@NotNull @NotNull Crab crab)
    • isUnderground

      public static boolean isUnderground(@NotNull @NotNull Crab crab)
    • isIdle

      public static boolean isIdle(@NotNull @NotNull Crab crab)
    • getTemptations

      @NotNull public static @NotNull net.minecraft.world.item.crafting.Ingredient getTemptations()
    • getRandomDigCooldown

      public static int getRandomDigCooldown(@NotNull @NotNull net.minecraft.world.entity.LivingEntity entity)
    • getRandomEmergeCooldown

      public static int getRandomEmergeCooldown(@NotNull @NotNull net.minecraft.world.entity.LivingEntity entity)
    • stopWalking

      public static void stopWalking(@NotNull @NotNull Crab crab)