Interface IDroneBase
- All Superinterfaces:
net.minecraftforge.common.capabilities.ICapabilityProvider,IDrone
- All Known Implementing Classes:
AmadroneEntity,CollectorDroneEntity,DroneEntity,GuardDroneEntity,HarvestingDroneEntity,LogisticsDroneEntity,ProgrammableControllerBlockEntity
Non-API extension to public IDrone interface
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAirToDrone(int air) booleancanMoveIntoFluid(net.minecraft.world.level.material.Fluid fluid) default DroneAIManagerGet the currently-active AI manager.default IProgWidgetGet the currently-active programming widget.intnet.minecraft.network.chat.ComponentfloatgetLabel()booleanbooleanisProgramApplicable(ProgWidgetType<?> widgetType) default voidonVariableChanged(String varname, boolean isCoordinate) voidvoidplaySound(net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource category, float volume, float pitch) default voidvoidsetActiveProgram(IProgWidget widget) voidsetLogisticsManager(LogisticsManager logisticsManager) voidstoreTrackerData(net.minecraft.world.item.ItemStack stack) voidSets the label that was jumped to last, with a hierarchy in case of External Programs.Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface me.desht.pneumaticcraft.api.drone.IDrone
dropItem, getCarryingEntities, getControllerPos, getDeployPos, getDronePos, getFakePlayer, getFluidTank, getInv, getOwner, getOwnerUUID, getPathNavigator, getTargetAI, getUpgrades, isAIOverridden, isBlockValidPathfindBlock, onItemPickupEvent, sendWireframeToClient, setCarryingEntity, setDugBlock, setEmittingRedstone, setName, world
-
Method Details
-
getProgWidgets
List<IProgWidget> getProgWidgets() -
setActiveProgram
-
isProgramApplicable
-
overload
-
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
-
playSound
void playSound(net.minecraft.sounds.SoundEvent soundEvent, net.minecraft.sounds.SoundSource category, float volume, float pitch) -
addAirToDrone
void addAirToDrone(int air) -
onVariableChanged
-
getActiveWidgetIndex
int getActiveWidgetIndex() -
getDebugger
DroneDebugger getDebugger() -
storeTrackerData
void storeTrackerData(net.minecraft.world.item.ItemStack stack) -
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
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()
-