Contents
Interface SelectionProvider
- All Known Implementing Classes:
BuilderToolsPlugin
public interface SelectionProvider
-
Method Summary
Modifier and TypeMethodDescription<T extends Throwable>
voidcomputeSelectionCopy(Ref<EntityStore> ref, Player player, ThrowableConsumer<BlockSelection, T> task, ComponentAccessor<EntityStore> componentAccessor) Computes a copy of the given Player's BlockSelection and performs the provided task with it.
-
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- TheComponentAccessor<EntityStore>for component access.
-