public class BlockStorage extends Object
| Constructor and Description |
|---|
BlockStorage() |
BlockStorage(BitArrayVersion version) |
| Modifier and Type | Method and Description |
|---|---|
BlockStorage |
copy() |
BlockState |
getBlock(int index) |
boolean |
isEmpty() |
void |
readFromStorage(io.netty.buffer.ByteBuf buffer) |
void |
setBlock(int index,
BlockState blockState) |
void |
writeToNetwork(io.netty.buffer.ByteBuf buffer) |
void |
writeToStorage(io.netty.buffer.ByteBuf buffer) |
public BlockStorage()
public BlockStorage(BitArrayVersion version)
public BlockState getBlock(int index)
public void setBlock(int index,
BlockState blockState)
public void writeToNetwork(io.netty.buffer.ByteBuf buffer)
public void writeToStorage(io.netty.buffer.ByteBuf buffer)
public void readFromStorage(io.netty.buffer.ByteBuf buffer)
public boolean isEmpty()
public BlockStorage copy()
Copyright © 2020. All rights reserved.