Class BoneMealTask

java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<VillagerEntity>
net.minecraft.entity.ai.brain.task.BoneMealTask
All Implemented Interfaces:
Task<VillagerEntity>

public class BoneMealTask extends MultiTickTask<VillagerEntity>
Mappings:
Namespace Name
official bks
intermediary net/minecraft/class_4982
named net/minecraft/entity/ai/brain/task/BoneMealTask
  • Field Details

    • MAX_DURATION

      private static final int MAX_DURATION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbks;c:I
      intermediary field_30184 Lnet/minecraft/class_4982;field_30184:I
      named MAX_DURATION Lnet/minecraft/entity/ai/brain/task/BoneMealTask;MAX_DURATION:I
    • startTime

      private long startTime
      Mappings:
      Namespace Name Mixin selector
      official d Lbks;d:J
      intermediary field_23222 Lnet/minecraft/class_4982;field_23222:J
      named startTime Lnet/minecraft/entity/ai/brain/task/BoneMealTask;startTime:J
    • lastEndEntityAge

      private long lastEndEntityAge
      Mappings:
      Namespace Name Mixin selector
      official e Lbks;e:J
      intermediary field_23223 Lnet/minecraft/class_4982;field_23223:J
      named lastEndEntityAge Lnet/minecraft/entity/ai/brain/task/BoneMealTask;lastEndEntityAge:J
    • duration

      private int duration
      Mappings:
      Namespace Name Mixin selector
      official f Lbks;f:I
      intermediary field_23224 Lnet/minecraft/class_4982;field_23224:I
      named duration Lnet/minecraft/entity/ai/brain/task/BoneMealTask;duration:I
    • pos

      private Optional<BlockPos> pos
      Mappings:
      Namespace Name Mixin selector
      official g Lbks;g:Ljava/util/Optional;
      intermediary field_23225 Lnet/minecraft/class_4982;field_23225:Ljava/util/Optional;
      named pos Lnet/minecraft/entity/ai/brain/task/BoneMealTask;pos:Ljava/util/Optional;
  • Constructor Details

    • BoneMealTask

      public BoneMealTask()
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
      Overrides:
      shouldRun in class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbks;a(Laif;Lbyb;)Z
      intermediary method_26327 Lnet/minecraft/class_4982;method_26327(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/BoneMealTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
    • shouldKeepRunning

      protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
      Overrides:
      shouldKeepRunning in class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbks;a(Laif;Lbyb;J)Z
      intermediary method_26328 Lnet/minecraft/class_4982;method_26328(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
      named shouldKeepRunning Lnet/minecraft/entity/ai/brain/task/BoneMealTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
    • findBoneMealPos

      private Optional<BlockPos> findBoneMealPos(ServerWorld world, VillagerEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lbks;b(Laif;Lbyb;)Ljava/util/Optional;
      intermediary method_26329 Lnet/minecraft/class_4982;method_26329(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Ljava/util/Optional;
      named findBoneMealPos Lnet/minecraft/entity/ai/brain/task/BoneMealTask;findBoneMealPos(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Ljava/util/Optional;
    • canBoneMeal

      private boolean canBoneMeal(BlockPos pos, ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Lbks;a(Lgu;Laif;)Z
      intermediary method_26326 Lnet/minecraft/class_4982;method_26326(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)Z
      named canBoneMeal Lnet/minecraft/entity/ai/brain/task/BoneMealTask;canBoneMeal(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)Z
    • run

      protected void run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
      Overrides:
      run in class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Lbks;b(Laif;Lbyb;J)V
      intermediary method_26330 Lnet/minecraft/class_4982;method_26330(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
      named run Lnet/minecraft/entity/ai/brain/task/BoneMealTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
    • addLookWalkTargets

      private void addLookWalkTargets(VillagerEntity villager)
      Mappings:
      Namespace Name Mixin selector
      official a Lbks;a(Lbyb;)V
      intermediary method_26324 Lnet/minecraft/class_4982;method_26324(Lnet/minecraft/class_1646;)V
      named addLookWalkTargets Lnet/minecraft/entity/ai/brain/task/BoneMealTask;addLookWalkTargets(Lnet/minecraft/entity/passive/VillagerEntity;)V
    • finishRunning

      protected void finishRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
      Overrides:
      finishRunning in class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official c Lbks;c(Laif;Lbyb;J)V
      intermediary method_26331 Lnet/minecraft/class_4982;method_26331(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
      named finishRunning Lnet/minecraft/entity/ai/brain/task/BoneMealTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
    • keepRunning

      protected void keepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
      Overrides:
      keepRunning in class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official d Lbks;d(Laif;Lbyb;J)V
      intermediary method_26332 Lnet/minecraft/class_4982;method_26332(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
      named keepRunning Lnet/minecraft/entity/ai/brain/task/BoneMealTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V