Class PiglinSpecificSensor

java.lang.Object
net.minecraft.entity.ai.brain.sensor.Sensor<LivingEntity>
net.minecraft.entity.ai.brain.sensor.PiglinSpecificSensor

public class PiglinSpecificSensor extends Sensor<LivingEntity>
Mappings:
Namespace Name
official bqb
intermediary net/minecraft/class_4834
named net/minecraft/entity/ai/brain/sensor/PiglinSpecificSensor
  • Constructor Details

    • PiglinSpecificSensor

      public PiglinSpecificSensor()
  • Method Details

    • getOutputMemoryModules

      public Set<MemoryModuleType<?>> getOutputMemoryModules()
      Specified by:
      getOutputMemoryModules in class Sensor<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbqf;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 world, LivingEntity entity)
      Specified by:
      sense in class Sensor<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbqf;a(Laif;Lbfz;)V
      intermediary method_19101 Lnet/minecraft/class_4148;method_19101(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
      named sense Lnet/minecraft/entity/ai/brain/sensor/Sensor;sense(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
    • findPiglinRepellent

      private static Optional<BlockPos> findPiglinRepellent(ServerWorld world, LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official c Lbqb;c(Laif;Lbfz;)Ljava/util/Optional;
      intermediary method_24649 Lnet/minecraft/class_4834;method_24649(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Ljava/util/Optional;
      named findPiglinRepellent Lnet/minecraft/entity/ai/brain/sensor/PiglinSpecificSensor;findPiglinRepellent(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Ljava/util/Optional;
    • isPiglinRepellent

      private static boolean isPiglinRepellent(ServerWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbqb;a(Laif;Lgu;)Z
      intermediary method_24648 Lnet/minecraft/class_4834;method_24648(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
      named isPiglinRepellent Lnet/minecraft/entity/ai/brain/sensor/PiglinSpecificSensor;isPiglinRepellent(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z