@Immutable public final class BlockSnapshot extends Object
Snapshot using the of(Block)
method
Modifier and Type | Method and Description |
---|---|
static BlockSnapshot |
from(Position position,
Substance substance,
byte data) |
void |
load()
Places the data stored in the snapshot into the original block
|
byte |
meta()
Obtains the block meta
|
static BlockSnapshot |
of(Block block)
Creates a view of the block at the time when taken
|
Position |
position()
Obtains the position of the block
|
Substance |
type()
Obtains the block substance
|
public static BlockSnapshot of(Block block)
block
- the tile to view@InternalUseOnly public static BlockSnapshot from(Position position, Substance substance, byte data)
public void load()
Does not clear data from this snapshot
public byte meta()
Copyright © 2016. All rights reserved.