Class DroneAIManager
java.lang.Object
me.desht.pneumaticcraft.common.ai.DroneAIManager
- All Implemented Interfaces:
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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDroneAIManager(IDroneBase drone) DroneAIManager(IDroneBase drone, List<IProgWidget> progWidgets) -
Method Summary
Modifier and TypeMethodDescriptionvoidOptional<net.minecraft.core.BlockPos>getCoordinate(UUID id, String varName) net.minecraft.world.entity.ai.goal.GoalgetDrone()getLabel()net.minecraft.world.item.ItemStacknet.minecraft.world.entity.ai.goal.GoalbooleanisIdling()voidvoidreadFromNBT(net.minecraft.nbt.CompoundTag tag) voidsetCoordinate(String varName, net.minecraft.core.BlockPos coord) voidvoidvoidsetWidgets(List<IProgWidget> progWidgets) widgets()net.minecraft.nbt.CompoundTagwriteToNBT(net.minecraft.nbt.CompoundTag tag)
-
Constructor Details
-
DroneAIManager
-
DroneAIManager
-
-
Method Details
-
dontStopWhenEndReached
public void dontStopWhenEndReached() -
setWidgets
-
isIdling
public boolean isIdling() -
getCurrentGoal
public net.minecraft.world.entity.ai.goal.Goal getCurrentGoal() -
getDrone
-
writeToNBT
public net.minecraft.nbt.CompoundTag writeToNBT(net.minecraft.nbt.CompoundTag tag) -
readFromNBT
public void readFromNBT(net.minecraft.nbt.CompoundTag tag) -
getCoordinate
- Specified by:
getCoordinatein interfaceIVariableProvider
-
getStack
- Specified by:
getStackin interfaceIVariableProvider
-
setCoordinate
-
setStack
-
getRunningTasks
-
getTargetAI
public net.minecraft.world.entity.ai.goal.Goal getTargetAI() -
onUpdateTasks
public void onUpdateTasks() -
setLabel
-
getLabel
-
widgets
-