Contents
Class TriggerVolumeSnapshot
java.lang.Object
com.hypixel.hytale.builtin.triggervolumes.snapshot.TriggerVolumeSnapshot
- All Implemented Interfaces:
SelectionSnapshot<TriggerVolumeSnapshot>
public class TriggerVolumeSnapshot
extends Object
implements SelectionSnapshot<TriggerVolumeSnapshot>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TriggerVolumeSnapshotofCreate(VolumeEntry entry) static TriggerVolumeSnapshotofDelete(VolumeEntry entry) static TriggerVolumeSnapshotofMutate(VolumeEntry entry) restore(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.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SelectionSnapshot
estimatedBlockWeight
-
Method Details
-
ofCreate
-
ofDelete
-
ofMutate
-
restore
@Nullable public TriggerVolumeSnapshot restore(@Nonnull Ref<EntityStore> ref, 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<TriggerVolumeSnapshot>- 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.
-