public class ChunkMetaBuilder extends Object implements Writable
Constructor and Description |
---|
ChunkMetaBuilder() |
Modifier and Type | Method and Description |
---|---|
short |
bitmap()
Reads the
short value that maps the bits in the chunk |
ChunkMetaBuilder |
bitmap(short bitmap)
Sets the chunk bitmap
|
ChunkLocation |
location()
Gets the chunk location
|
ChunkMetaBuilder |
location(ChunkLocation location)
Sets the chunk meta location
|
void |
write(ByteBuf buf)
Writes the data contained by the current implementation into serialized form in the provided
io.netty.buffer.ByteBuf |
public ChunkMetaBuilder()
public ChunkLocation location()
public ChunkMetaBuilder location(ChunkLocation location)
location
- the location to set the chunk topublic short bitmap()
short
value that maps the bits in the chunkpublic ChunkMetaBuilder bitmap(short bitmap)
bitmap
- the short
that maps the chunk dataCopyright © 2016. All rights reserved.