Class NearbyPlantSensor<E extends net.minecraft.world.entity.LivingEntity>

java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<E>
net.tslat.smartbrainlib.api.core.sensor.ExtendedSensor<E>
net.tslat.smartbrainlib.api.core.sensor.PredicateSensor<net.minecraft.world.entity.player.Player,E>
nokunami.floral_warfare.common.entity.ai.brain.sensor.NearbyPlantSensor<E>

public class NearbyPlantSensor<E extends net.minecraft.world.entity.LivingEntity> extends net.tslat.smartbrainlib.api.core.sensor.PredicateSensor<net.minecraft.world.entity.player.Player,E>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected @Nullable net.tslat.smartbrainlib.object.SquareRadius
     

    Fields inherited from class net.tslat.smartbrainlib.api.core.sensor.ExtendedSensor

    nextTickTime, scanCallback, scanRate

    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 void
    doTick(net.minecraft.server.level.ServerLevel level, E entity)
     
    List<net.minecraft.world.entity.ai.memory.MemoryModuleType<?>>
     
    setRadius(double radius)
     
    setRadius(double xz, double y)
     
    net.minecraft.world.entity.ai.sensing.SensorType<? extends net.tslat.smartbrainlib.api.core.sensor.ExtendedSensor<?>>
     

    Methods inherited from class net.tslat.smartbrainlib.api.core.sensor.PredicateSensor

    predicate, setPredicate

    Methods inherited from class net.tslat.smartbrainlib.api.core.sensor.ExtendedSensor

    afterScanning, requires, setScanRate, tick

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

    isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable

    Methods inherited from class java.lang.Object

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

    • radius

      @Nullable protected @Nullable net.tslat.smartbrainlib.object.SquareRadius radius
  • Constructor Details

    • NearbyPlantSensor

      public NearbyPlantSensor()
  • Method Details

    • setRadius

      public NearbyPlantSensor<E> setRadius(double radius)
    • setRadius

      public NearbyPlantSensor<E> setRadius(double xz, double y)
    • memoriesUsed

      public List<net.minecraft.world.entity.ai.memory.MemoryModuleType<?>> memoriesUsed()
      Specified by:
      memoriesUsed in class net.tslat.smartbrainlib.api.core.sensor.ExtendedSensor<E extends net.minecraft.world.entity.LivingEntity>
    • type

      public net.minecraft.world.entity.ai.sensing.SensorType<? extends net.tslat.smartbrainlib.api.core.sensor.ExtendedSensor<?>> type()
      Specified by:
      type in class net.tslat.smartbrainlib.api.core.sensor.ExtendedSensor<E extends net.minecraft.world.entity.LivingEntity>
    • doTick

      protected void doTick(net.minecraft.server.level.ServerLevel level, E entity)
      Overrides:
      doTick in class net.tslat.smartbrainlib.api.core.sensor.ExtendedSensor<E extends net.minecraft.world.entity.LivingEntity>