Class BreakLightSourcesGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
se.itssimple.zombieshateslight.ai.BreakLightSourcesGoal

public class BreakLightSourcesGoal extends net.minecraft.world.entity.ai.goal.Goal
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal

    net.minecraft.world.entity.ai.goal.Goal.Flag
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.world.level.Level
     
    protected final net.minecraft.world.entity.monster.Zombie
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BreakLightSourcesGoal(net.minecraft.world.entity.monster.Zombie zombie)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
    void
     
    void
     
    void
     

    Methods inherited from class net.minecraft.world.entity.ai.goal.Goal

    adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • zombie

      protected final net.minecraft.world.entity.monster.Zombie zombie
    • level

      protected final net.minecraft.world.level.Level level
  • Constructor Details

    • BreakLightSourcesGoal

      public BreakLightSourcesGoal(net.minecraft.world.entity.monster.Zombie zombie)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class net.minecraft.world.entity.ai.goal.Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class net.minecraft.world.entity.ai.goal.Goal
    • start

      public void start()
      Overrides:
      start in class net.minecraft.world.entity.ai.goal.Goal
    • stop

      public void stop()
      Overrides:
      stop in class net.minecraft.world.entity.ai.goal.Goal
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.world.entity.ai.goal.Goal