Class MovementContext

java.lang.Object
org.ships.movement.MovementContext

public class MovementContext extends Object
  • Constructor Details

  • Method Details

    • getClicked

      public Optional<org.core.world.position.impl.BlockPosition> getClicked()
    • getBossBar

      @Deprecated(forRemoval=true) public Optional<org.core.world.boss.ServerBossBar> getBossBar()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getAdventureBossBar

      public Optional<net.kyori.adventure.bossbar.BossBar> getAdventureBossBar()
    • isStrictMovement

      public boolean isStrictMovement()
    • getMovingStructure

      public MovingBlockSet getMovingStructure()
    • getMovement

      @NotNull public @NotNull BasicMovement getMovement()
    • getException

      public BiConsumer<MovementContext,? super Throwable> getException()
    • getEntities

      @NotNull public @NotNull Map<org.core.entity.EntitySnapshot<? extends org.core.entity.LiveEntity>,MovingBlock> getEntities()
    • getPostMovementProcess

      public PostMovement[] getPostMovementProcess()
    • getMidMovementProcess

      public MidMovement[] getMidMovementProcess()
    • move

      public CompletableFuture<Void> move(Vessel vessel, boolean updateStructure) throws MoveException
      Throws:
      MoveException