Class CrabAi
java.lang.Object
net.frozenblock.wilderwild.entity.ai.crab.CrabAi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbroadcastAngerTarget(@NotNull Crab crab, net.minecraft.world.entity.LivingEntity target) static voidclearDigCooldown(@NotNull Crab crab) static Optional<net.minecraft.world.entity.player.Player> getNearestVisibleTargetablePlayer(@NotNull Crab crab) static intgetRandomDigCooldown(@NotNull net.minecraft.world.entity.LivingEntity entity) static intgetRandomEmergeCooldown(@NotNull net.minecraft.world.entity.LivingEntity entity) static @NotNull net.minecraft.world.item.crafting.Ingredientstatic booleanstatic booleanisUnderground(@NotNull Crab crab) static @NotNull net.minecraft.world.entity.ai.Brain<Crab> static voidsetAngerTarget(@NotNull Crab crab, net.minecraft.world.entity.LivingEntity target) static voidsetDigCooldown(@NotNull Crab crab) static voidstopWalking(@NotNull Crab crab) static voidupdateActivity(@NotNull Crab crab) static void
-
Field Details
-
UNDERGROUND_PLAYER_RANGE
public static final double UNDERGROUND_PLAYER_RANGE- See Also:
-
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
-
makeBrain
-
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
-
setDigCooldown
-
clearDigCooldown
-
isUnderground
-
isIdle
-
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
-