Class JellyfishHide

java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Jellyfish>
net.frozenblock.lib.entity.api.behavior.MoveToBlockBehavior<Jellyfish>
net.frozenblock.wilderwild.entity.ai.jellyfish.JellyfishHide
All Implemented Interfaces:
net.minecraft.world.entity.ai.behavior.BehaviorControl<Jellyfish>

public class JellyfishHide extends net.frozenblock.lib.entity.api.behavior.MoveToBlockBehavior<Jellyfish>
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior

    net.minecraft.world.entity.ai.behavior.Behavior.Status
  • Field Summary

    Fields inherited from class net.frozenblock.lib.entity.api.behavior.MoveToBlockBehavior

    blockPos, DURATION, mob, speedModifier, tryTicks, verticalSearchStart

    Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior

    DEFAULT_DURATION, entryCondition
  • Constructor Summary

    Constructors
    Constructor
    Description
    JellyfishHide(@NotNull Jellyfish mob, double speedModifier, int searchRange, int verticalSearchRange)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    boolean
    checkExtraStartConditions(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull Jellyfish owner)
     
    protected @NotNull net.minecraft.core.BlockPos
     
    boolean
    isValidTarget(@NotNull net.minecraft.world.level.LevelReader level, @NotNull net.minecraft.core.BlockPos pos)
     
    protected void
     
    void
    start(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull Jellyfish entity, long gameTime)
     
    protected void
    tick(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull Jellyfish owner, long gameTime)
     

    Methods inherited from class net.frozenblock.lib.entity.api.behavior.MoveToBlockBehavior

    canStillUse, findNearestBlock, isReachedTarget, shouldRecalculatePath

    Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior

    debugString, doStop, getStatus, hasRequiredMemories, stop, tickOrStop, timedOut, tryStart

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JellyfishHide

      public JellyfishHide(@NotNull @NotNull Jellyfish mob, double speedModifier, int searchRange, int verticalSearchRange)
  • Method Details

    • start

      public void start(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull Jellyfish entity, long gameTime)
      Overrides:
      start in class net.frozenblock.lib.entity.api.behavior.MoveToBlockBehavior<Jellyfish>
    • checkExtraStartConditions

      public boolean checkExtraStartConditions(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull Jellyfish owner)
      Overrides:
      checkExtraStartConditions in class net.frozenblock.lib.entity.api.behavior.MoveToBlockBehavior<Jellyfish>
    • tick

      protected void tick(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull Jellyfish owner, long gameTime)
      Overrides:
      tick in class net.frozenblock.lib.entity.api.behavior.MoveToBlockBehavior<Jellyfish>
    • isValidTarget

      public boolean isValidTarget(@NotNull @NotNull net.minecraft.world.level.LevelReader level, @NotNull @NotNull net.minecraft.core.BlockPos pos)
      Specified by:
      isValidTarget in class net.frozenblock.lib.entity.api.behavior.MoveToBlockBehavior<Jellyfish>
    • acceptedDistance

      public double acceptedDistance()
      Overrides:
      acceptedDistance in class net.frozenblock.lib.entity.api.behavior.MoveToBlockBehavior<Jellyfish>
    • moveMobToBlock

      protected void moveMobToBlock()
      Overrides:
      moveMobToBlock in class net.frozenblock.lib.entity.api.behavior.MoveToBlockBehavior<Jellyfish>
    • getMoveToTarget

      @NotNull protected @NotNull net.minecraft.core.BlockPos getMoveToTarget()
      Overrides:
      getMoveToTarget in class net.frozenblock.lib.entity.api.behavior.MoveToBlockBehavior<Jellyfish>