Contents
Class ClipboardContentsSnapshot
java.lang.Object
com.hypixel.hytale.builtin.buildertools.snapshot.ClipboardContentsSnapshot
- All Implemented Interfaces:
ClipboardSnapshot<ClipboardContentsSnapshot>, SelectionSnapshot<ClipboardContentsSnapshot>
public class ClipboardContentsSnapshot
extends Object
implements ClipboardSnapshot<ClipboardContentsSnapshot>
Represents the contents of a clipboard block selection before modifications are made to it.
Restoring this snapshot will have the effect of undoing operations such as rotations invalid input: '&' flips.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClipboardContentsSnapshotcopyOf(BlockSelection selection) Helper method for creating aClipboardContentsSnapshotusing a clone of the provided BlockSelection.longrestoreClipboard(Ref<EntityStore> ref, PlayerRef playerRef, World world, BuilderToolsPlugin.BuilderState builderState, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClipboardSnapshot
restore
-
Constructor Details
-
ClipboardContentsSnapshot
-
-
Method Details
-
estimatedBlockWeight
public long estimatedBlockWeight()- Specified by:
estimatedBlockWeightin interfaceSelectionSnapshot<ClipboardContentsSnapshot>
-
restoreClipboard
public ClipboardContentsSnapshot restoreClipboard(Ref<EntityStore> ref, PlayerRef playerRef, World world, @Nonnull BuilderToolsPlugin.BuilderState builderState, ComponentAccessor<EntityStore> componentAccessor) - Specified by:
restoreClipboardin interfaceClipboardSnapshot<ClipboardContentsSnapshot>
-
copyOf
Helper method for creating aClipboardContentsSnapshotusing a clone of the provided BlockSelection.- Parameters:
selection- The BlockSelection to create a cloned snapshot of.- Returns:
- A new ClipboardContentsSnapshot for the BlockSelection.
-