Class NearestBedSensor

java.lang.Object
net.minecraft.entity.ai.brain.sensor.Sensor<MobEntity>
net.minecraft.entity.ai.brain.sensor.NearestBedSensor

public class NearestBedSensor extends Sensor<MobEntity>
Mappings:
Namespace Name
official blp
intermediary net/minecraft/class_4256
named net/minecraft/entity/ai/brain/sensor/NearestBedSensor
  • Field Details

    • REMEMBER_TIME

      private static final int REMEMBER_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lblp;a:I
      intermediary field_30251 Lnet/minecraft/class_4256;field_30251:I
      named REMEMBER_TIME Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;REMEMBER_TIME:I
    • MAX_TRIES

      private static final int MAX_TRIES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lblp;c:I
      intermediary field_30252 Lnet/minecraft/class_4256;field_30252:I
      named MAX_TRIES Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;MAX_TRIES:I
    • MAX_EXPIRY_TIME

      private static final int MAX_EXPIRY_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lblp;d:I
      intermediary field_30253 Lnet/minecraft/class_4256;field_30253:I
      named MAX_EXPIRY_TIME Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;MAX_EXPIRY_TIME:I
    • positionToExpiryTime

      private final Long2LongMap positionToExpiryTime
      Mappings:
      Namespace Name Mixin selector
      official e Lblp;e:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
      intermediary field_20295 Lnet/minecraft/class_4256;field_20295:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
      named positionToExpiryTime Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;positionToExpiryTime:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
    • tries

      private int tries
      Mappings:
      Namespace Name Mixin selector
      official f Lblp;f:I
      intermediary field_20296 Lnet/minecraft/class_4256;field_20296:I
      named tries Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;tries:I
    • expiryTime

      private long expiryTime
      Mappings:
      Namespace Name Mixin selector
      official g Lblp;g:J
      intermediary field_20297 Lnet/minecraft/class_4256;field_20297:J
      named expiryTime Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;expiryTime:J
  • Constructor Details

    • NearestBedSensor

      public NearestBedSensor()
  • Method Details

    • getOutputMemoryModules

      public Set<MemoryModuleType<?>> getOutputMemoryModules()
      Specified by:
      getOutputMemoryModules in class Sensor<MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbly;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, MobEntity mobEntity)
      Specified by:
      sense in class Sensor<MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lblp;a(Lagg;Lbce;)V
      intermediary method_21646 Lnet/minecraft/class_4256;method_21646(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)V
      named sense Lnet/minecraft/entity/ai/brain/sensor/NearestBedSensor;sense(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)V