Class ElytraBehavior
java.lang.Object
com.zenith.feature.pathfinder.process.elytra.ElytraBehavior
- All Implemented Interfaces:
ProcessUtil
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionElytraBehavior(Baritone baritone, ElytraProcess process, NetherPathfinderContext npf, BlockPos destination, boolean appendDestination) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()booleanclearView(org.cloudburstmc.math.vector.Vector3d start, org.cloudburstmc.math.vector.Vector3d dest, boolean ignoreLava) voiddestroy()intstatic booleanisFireworks(ItemStack itemStack) booleanvoidvoidvoidvoidonTick()booleanpassable(int x, int y, int z) voidpathTo()booleanraytrace(double startX, double startY, double startZ, double endX, double endY, double endZ) booleanraytrace(int count, double[] src, double[] dst, int visibility) booleanraytrace(org.cloudburstmc.math.vector.Vector3d start, org.cloudburstmc.math.vector.Vector3d end) voidtick()Called byElytraProcess.onTick(boolean, boolean, Goal, PathingCommand)when the process is in control and the player is flyingvoidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ProcessUtil
debug, debug, error, error, info, info, processLogPrefix, warn, warn
-
Field Details
-
npfContext
-
pathFinder
-
pathManager
-
landingMode
public volatile boolean landingMode -
initialPathFailed
public volatile boolean initialPathFailed -
destination
-
useFirework
public boolean useFirework -
fireworkHand
-
-
Constructor Details
-
ElytraBehavior
public ElytraBehavior(Baritone baritone, ElytraProcess process, NetherPathfinderContext npf, BlockPos destination, boolean appendDestination)
-
-
Method Details
-
onReceivePacket
public void onReceivePacket() -
pathTo
public void pathTo() -
cancel
public void cancel() -
destroy
public void destroy() -
onTick
public void onTick() -
tick
public void tick()Called byElytraProcess.onTick(boolean, boolean, Goal, PathingCommand)when the process is in control and the player is flying -
onPostTick
public void onPostTick() -
onFireworkUsed
public void onFireworkUsed() -
isFireworks
-
clearView
public boolean clearView(org.cloudburstmc.math.vector.Vector3d start, org.cloudburstmc.math.vector.Vector3d dest, boolean ignoreLava) -
findGoodElytra
public int findGoodElytra() -
trySwapElytra
public void trySwapElytra() -
isSwappingElytra
public boolean isSwappingElytra() -
raytrace
public boolean raytrace(double startX, double startY, double startZ, double endX, double endY, double endZ) -
raytrace
public boolean raytrace(org.cloudburstmc.math.vector.Vector3d start, org.cloudburstmc.math.vector.Vector3d end) -
raytrace
public boolean raytrace(int count, double[] src, double[] dst, int visibility) -
passable
public boolean passable(int x, int y, int z)
-