Class CrabAttackablesSensor

java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<net.minecraft.world.entity.LivingEntity>
net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
net.frozenblock.wilderwild.entity.ai.crab.CrabAttackablesSensor

public class CrabAttackablesSensor extends net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
  • Field Summary

    Fields inherited from class net.minecraft.world.entity.ai.sensing.Sensor

    TARGETING_RANGE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected @NotNull net.minecraft.world.entity.ai.memory.MemoryModuleType<net.minecraft.world.entity.LivingEntity>
     
    protected boolean
    isMatchingEntity(@NotNull net.minecraft.world.entity.LivingEntity attacker, @NotNull net.minecraft.world.entity.LivingEntity target)
     

    Methods inherited from class net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor

    doTick, getVisibleEntities, requires

    Methods inherited from class net.minecraft.world.entity.ai.sensing.Sensor

    isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, tick

    Methods inherited from class java.lang.Object

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

    • CrabAttackablesSensor

      public CrabAttackablesSensor()
  • Method Details

    • isMatchingEntity

      protected boolean isMatchingEntity(@NotNull @NotNull net.minecraft.world.entity.LivingEntity attacker, @NotNull @NotNull net.minecraft.world.entity.LivingEntity target)
      Specified by:
      isMatchingEntity in class net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
    • getMemory

      @NotNull protected @NotNull net.minecraft.world.entity.ai.memory.MemoryModuleType<net.minecraft.world.entity.LivingEntity> getMemory()
      Specified by:
      getMemory in class net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor