Contents
Interface ClipboardSnapshot<T extends SelectionSnapshot<?>>
- Type Parameters:
T- The type of snapshot to be returned when restoring this one.
- All Superinterfaces:
SelectionSnapshot<T>
- All Known Implementing Classes:
ClipboardBoundsSnapshot, ClipboardContentsSnapshot
Represents the state of a player's builderTool clipboard prior to modifying it.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Trestore(Ref<EntityStore> ref, PlayerRef playerRef, World world, ComponentAccessor<EntityStore> componentAccessor) Restore the state represented by this snapshot, optionally returning a new snapshot of the subject's current state.restoreClipboard(Ref<EntityStore> ref, PlayerRef playerRef, World world, BuilderToolsPlugin.BuilderState builderState, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from interface SelectionSnapshot
estimatedBlockWeight
-
Method Details
-
restoreClipboard
@Nullable T restoreClipboard(Ref<EntityStore> ref, PlayerRef playerRef, World world, BuilderToolsPlugin.BuilderState builderState, ComponentAccessor<EntityStore> componentAccessor) -
restore
default T restore(Ref<EntityStore> ref, @Nonnull PlayerRef playerRef, World world, ComponentAccessor<EntityStore> componentAccessor) Description copied from interface:SelectionSnapshotRestore the state represented by this snapshot, optionally returning a new snapshot of the subject's current state.- Specified by:
restorein interfaceSelectionSnapshot<T extends SelectionSnapshot<?>>- Parameters:
ref-playerRef- The Player reference invoking the buildertool operation.world- The World in which the operation is taking place.componentAccessor-- Returns:
- A new snapshot of the subject prior to restoring its state or null.
-