Class WardenAttackablesSensor


public class WardenAttackablesSensor extends NearestLivingEntitiesSensor<WardenEntity>
Mappings:
Namespace Name
official btq
intermediary net/minecraft/class_7252
named net/minecraft/entity/ai/brain/sensor/WardenAttackablesSensor
  • Constructor Details

    • WardenAttackablesSensor

      public WardenAttackablesSensor()
  • Method Details

    • getOutputMemoryModules

      public Set<MemoryModuleType<?>> getOutputMemoryModules()
      Overrides:
      getOutputMemoryModules in class NearestLivingEntitiesSensor<WardenEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbtl;a()Ljava/util/Set;
      intermediary method_19099 Lnet/minecraft/class_4148;method_19099()Ljava/util/Set;
      named getOutputMemoryModules Lnet/minecraft/entity/ai/brain/sensor/Sensor;getOutputMemoryModules()Ljava/util/Set;
    • sense

      protected void sense(ServerWorld serverWorld, WardenEntity wardenEntity)
      Description copied from class: NearestLivingEntitiesSensor
      Overrides:
      sense in class NearestLivingEntitiesSensor<WardenEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbtq;a(Lakq;Lcay;)V
      intermediary method_43083 Lnet/minecraft/class_7252;method_43083(Lnet/minecraft/class_3218;Lnet/minecraft/class_7260;)V
      named sense Lnet/minecraft/entity/ai/brain/sensor/WardenAttackablesSensor;sense(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/WardenEntity;)V
    • findNearestTarget

      private static Optional<LivingEntity> findNearestTarget(WardenEntity warden, Predicate<LivingEntity> targetPredicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lbtq;a(Lcay;Ljava/util/function/Predicate;)Ljava/util/Optional;
      intermediary method_43086 Lnet/minecraft/class_7252;method_43086(Lnet/minecraft/class_7260;Ljava/util/function/Predicate;)Ljava/util/Optional;
      named findNearestTarget Lnet/minecraft/entity/ai/brain/sensor/WardenAttackablesSensor;findNearestTarget(Lnet/minecraft/entity/mob/WardenEntity;Ljava/util/function/Predicate;)Ljava/util/Optional;
    • getHorizontalExpansion

      protected int getHorizontalExpansion()
      Overrides:
      getHorizontalExpansion in class NearestLivingEntitiesSensor<WardenEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Lbte;b()I
      intermediary method_43081 Lnet/minecraft/class_4146;method_43081()I
      named getHorizontalExpansion Lnet/minecraft/entity/ai/brain/sensor/NearestLivingEntitiesSensor;getHorizontalExpansion()I
    • getHeightExpansion

      protected int getHeightExpansion()
      Overrides:
      getHeightExpansion in class NearestLivingEntitiesSensor<WardenEntity>
      Mappings:
      Namespace Name Mixin selector
      official c Lbte;c()I
      intermediary method_43082 Lnet/minecraft/class_4146;method_43082()I
      named getHeightExpansion Lnet/minecraft/entity/ai/brain/sensor/NearestLivingEntitiesSensor;getHeightExpansion()I