Class Sensor<E extends LivingEntity>

    • Field Detail

      • RANDOM

        private static final java.util.Random RANDOM
      • TARGET_CONDITIONS

        private static final EntityPredicate TARGET_CONDITIONS
      • TARGET_CONDITIONS_IGNORE_INVISIBILITY_TESTING

        private static final EntityPredicate TARGET_CONDITIONS_IGNORE_INVISIBILITY_TESTING
      • scanRate

        private final int scanRate
      • timeToTick

        private long timeToTick
    • Constructor Detail

      • Sensor

        public Sensor​(int p_i50301_1_)
      • Sensor

        public Sensor()
    • Method Detail

      • tick

        public final void tick​(ServerWorld p_220973_1_,
                               E p_220973_2_)
      • doTick

        protected abstract void doTick​(ServerWorld p_212872_1_,
                                       E p_212872_2_)
      • isEntityTargetable

        protected static boolean isEntityTargetable​(LivingEntity p_242316_0_,
                                                    LivingEntity p_242316_1_)