Class HideInHomeTask

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.HideInHomeTask
Direct Known Subclasses:
HideInHomeDuringRaidTask

public class HideInHomeTask extends Task<LivingEntity>
Mappings:
Namespace Name
official bds
intermediary net/minecraft/class_4246
named net/minecraft/entity/ai/brain/task/HideInHomeTask
  • Field Details

    • walkSpeed

      private final float walkSpeed
      Mappings:
      Namespace Name Mixin selector
      official a Lbds;a:F
      intermediary field_18993 Lnet/minecraft/class_4246;field_18993:F
      named walkSpeed Lnet/minecraft/entity/ai/brain/task/HideInHomeTask;walkSpeed:F
    • maxDistance

      private final int maxDistance
      Mappings:
      Namespace Name Mixin selector
      official d Lbds;d:I
      intermediary field_18994 Lnet/minecraft/class_4246;field_18994:I
      named maxDistance Lnet/minecraft/entity/ai/brain/task/HideInHomeTask;maxDistance:I
    • preferredDistance

      private final int preferredDistance
      Mappings:
      Namespace Name Mixin selector
      official e Lbds;e:I
      intermediary field_18995 Lnet/minecraft/class_4246;field_18995:I
      named preferredDistance Lnet/minecraft/entity/ai/brain/task/HideInHomeTask;preferredDistance:I
    • homePosition

      private Optional<BlockPos> homePosition
      Mappings:
      Namespace Name Mixin selector
      official f Lbds;f:Ljava/util/Optional;
      intermediary field_18998 Lnet/minecraft/class_4246;field_18998:Ljava/util/Optional;
      named homePosition Lnet/minecraft/entity/ai/brain/task/HideInHomeTask;homePosition:Ljava/util/Optional;
  • Constructor Details

    • HideInHomeTask

      public HideInHomeTask(int maxDistance, float walkSpeed, int preferredDistance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbds;<init>(IFI)V
      intermediary <init> Lnet/minecraft/class_4246;<init>(IFI)V
      named <init> Lnet/minecraft/entity/ai/brain/task/HideInHomeTask;<init>(IFI)V
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld world, LivingEntity entity)
      Overrides:
      shouldRun in class Task<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbcr;a(Lafo;Lbbf;)Z
      intermediary method_18919 Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
    • run

      protected void run(ServerWorld world, LivingEntity entity, long time)
      Overrides:
      run in class Task<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbcr;a(Lafo;Lbbf;J)V
      intermediary method_18920 Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      named run Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V