Class DroneClaimManager
java.lang.Object
me.desht.pneumaticcraft.common.drone.DroneClaimManager
Keeps track of the positions the drones are working on, and allows the drones to pick a coordinate in a smart way.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclaim(net.minecraft.core.BlockPos pos) static DroneClaimManagergetInstance(net.minecraft.world.level.Level world) booleanisClaimed(net.minecraft.core.BlockPos pos) voidtick()unclaim any positions that have been claimed too long.
-
Constructor Details
-
DroneClaimManager
public DroneClaimManager()
-
-
Method Details
-
getInstance
-
tick
public void tick()unclaim any positions that have been claimed too long. this prevents positions being claimed forever by died drones. -
isClaimed
public boolean isClaimed(net.minecraft.core.BlockPos pos) -
claim
public void claim(net.minecraft.core.BlockPos pos)
-