Interface IDroneBase

All Superinterfaces:
net.minecraftforge.common.capabilities.ICapabilityProvider, IDrone
All Known Implementing Classes:
AbstractBasicDroneEntity, AmadroneEntity, CollectorDroneEntity, DroneEntity, GuardDroneEntity, HarvestingDroneEntity, LogisticsDroneEntity, ProgrammableControllerBlockEntity

public interface IDroneBase extends IDrone
Non-API extension to public IDrone interface
  • Method Details

    • getProgWidgets

      List<IProgWidget> getProgWidgets()
    • setActiveProgram

      void setActiveProgram(IProgWidget widget)
    • isProgramApplicable

      boolean isProgramApplicable(ProgWidgetType<?> widgetType)
    • overload

      void overload(String msgKey, Object... params)
    • getAIManager

      DroneAIManager getAIManager()
    • updateLabel

      void updateLabel()
      Sets the label that was jumped to last, with a hierarchy in case of External Programs.
    • getLogisticsManager

      LogisticsManager getLogisticsManager()
    • setLogisticsManager

      void setLogisticsManager(LogisticsManager logisticsManager)
    • playSound

      void playSound(net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource category, float volume, float pitch)
    • addAirToDrone

      void addAirToDrone(int air)
    • onVariableChanged

      default void onVariableChanged(String varname, boolean isCoordinate)
    • getActiveWidgetIndex

      int getActiveWidgetIndex()
    • getDebugger

      DroneDebugger getDebugger()
    • storeTrackerData

      void storeTrackerData(net.minecraft.world.item.ItemStack stack)
    • getActiveWidget

      default IProgWidget getActiveWidget()
      Get the currently-active programming widget. Used client-side for debugging and rendering.
      Returns:
      the currently-active programming widget
    • getLabel

      String getLabel()
    • getDroneName

      net.minecraft.network.chat.Component getDroneName()
    • isDroneStillValid

      boolean isDroneStillValid()
    • canMoveIntoFluid

      boolean canMoveIntoFluid(net.minecraft.world.level.material.Fluid fluid)
    • getDroneItemHandler

      DroneItemHandler getDroneItemHandler()
    • resetAttackCount

      default void resetAttackCount()
    • getActiveAIManager

      default DroneAIManager getActiveAIManager()
      Get the currently-active AI manager. Normally the drone's own aiManager object, but if currently executing an External Program widget, then return the sub-AI which is in effect.
      Returns:
      the active AI manager
    • getDronePressure

      float getDronePressure()