Class SlimeEntity.SwimmingGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.mob.SlimeEntity.SwimmingGoal
Enclosing class:
SlimeEntity

private static class SlimeEntity.SwimmingGoal extends Goal
Mappings:
Namespace Name
official bwj$b
intermediary net/minecraft/class_1621$class_1623
named net/minecraft/entity/mob/SlimeEntity$SwimmingGoal
  • Field Details

    • slime

      private final SlimeEntity slime
      Mappings:
      Namespace Name Mixin selector
      official a Lbwj$b;a:Lbwj;
      intermediary field_7394 Lnet/minecraft/class_1621$class_1623;field_7394:Lnet/minecraft/class_1621;
      named slime Lnet/minecraft/entity/mob/SlimeEntity$SwimmingGoal;slime:Lnet/minecraft/entity/mob/SlimeEntity;
  • Constructor Details

    • SwimmingGoal

      public SwimmingGoal(SlimeEntity slime)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbwj$b;<init>(Lbwj;)V
      intermediary <init> Lnet/minecraft/class_1621$class_1623;<init>(Lnet/minecraft/class_1621;)V
      named <init> Lnet/minecraft/entity/mob/SlimeEntity$SwimmingGoal;<init>(Lnet/minecraft/entity/mob/SlimeEntity;)V
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
      Mappings:
      Namespace Name Mixin selector
      official a Lbmt;a()Z
      intermediary method_6264 Lnet/minecraft/class_1352;method_6264()Z
      named canStart Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
    • shouldRunEveryTick

      public boolean shouldRunEveryTick()
      Returns if the goal should run every tick or not.

      This returns false by default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.

      Overrides:
      shouldRunEveryTick in class Goal
      Returns:
      if the goal should run every tick or not
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official J_ Lbmt;J_()Z
      intermediary method_38846 Lnet/minecraft/class_1352;method_38846()Z
      named shouldRunEveryTick Lnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
    • tick

      public void tick()
      Overrides:
      tick in class Goal
      Mappings:
      Namespace Name Mixin selector
      official e Lbmt;e()V
      intermediary method_6268 Lnet/minecraft/class_1352;method_6268()V
      named tick Lnet/minecraft/entity/ai/goal/Goal;tick()V