Interface SelectionProvider

All Known Implementing Classes:
BuilderToolsPlugin

public interface SelectionProvider
  • Method Details

    • computeSelectionCopy

      <T extends Throwable> void computeSelectionCopy(@Nonnull Ref<EntityStore> ref, @Nonnull Player player, @Nonnull ThrowableConsumer<BlockSelection, T> task, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
      Computes a copy of the given Player's BlockSelection and performs the provided task with it.
      Type Parameters:
      T - The type of exception that may be thrown by the task.
      Parameters:
      ref - The entity reference of the instigating entity.
      player - The Player whose selection should be retrieved.
      task - The task to perform on the selection.
      componentAccessor - The ComponentAccessor<EntityStore> for component access.