Class DroneAIManager

java.lang.Object
me.desht.pneumaticcraft.common.ai.DroneAIManager
All Implemented Interfaces:
IVariableProvider

public class DroneAIManager extends Object implements IVariableProvider
This class is derived from Minecraft's {link EntityAITasks} class. As the original class would need quite a few accesstransformers or reflection calls to do what I want, I've copied most of that class in here.
  • Constructor Details

  • Method Details

    • dontStopWhenEndReached

      public void dontStopWhenEndReached()
    • setWidgets

      public void setWidgets(List<IProgWidget> progWidgets)
    • isIdling

      public boolean isIdling()
    • getCurrentGoal

      public net.minecraft.world.entity.ai.goal.Goal getCurrentGoal()
    • getDrone

      public IDroneBase getDrone()
    • writeToNBT

      public net.minecraft.nbt.CompoundTag writeToNBT(net.minecraft.nbt.CompoundTag tag)
    • readFromNBT

      public void readFromNBT(net.minecraft.nbt.CompoundTag tag)
    • getCoordinate

      public Optional<net.minecraft.core.BlockPos> getCoordinate(UUID id, String varName)
      Specified by:
      getCoordinate in interface IVariableProvider
    • getStack

      public net.minecraft.world.item.ItemStack getStack(UUID id, String varName)
      Specified by:
      getStack in interface IVariableProvider
    • setCoordinate

      public void setCoordinate(String varName, net.minecraft.core.BlockPos coord)
    • setStack

      public void setStack(String varName, @Nonnull net.minecraft.world.item.ItemStack item)
    • getRunningTasks

      public List<DroneAIManager.WrappedGoal> getRunningTasks()
    • getTargetAI

      public net.minecraft.world.entity.ai.goal.Goal getTargetAI()
    • onUpdateTasks

      public void onUpdateTasks()
    • setLabel

      public void setLabel(String label)
    • getLabel

      public String getLabel()
    • widgets

      public List<IProgWidget> widgets()