public class RecordBuilder extends Object implements Writable
Note that this may not always represent the most accurate view of the block in question.
Constructor and Description |
---|
RecordBuilder() |
Modifier and Type | Method and Description |
---|---|
int |
blockId()
Gets the block ID number
|
int |
data() |
RecordBuilder |
setBlockId(int blockId)
Sets the block ID number
|
RecordBuilder |
setData(int data) |
RecordBuilder |
setX(byte x)
Sets the X location of the block
|
RecordBuilder |
setY(byte y)
Sets the Y location of the block
|
RecordBuilder |
setZ(byte z)
Sets the Z location of the block
|
void |
write(ByteBuf buf)
Writes the data contained by the current implementation into serialized form in the provided
io.netty.buffer.ByteBuf |
byte |
x()
Get the X location of the block
|
byte |
y()
Get the Y location of the block
|
byte |
z()
Get the Z location of the block
|
public RecordBuilder()
public byte x()
public int data()
public RecordBuilder setData(int data)
public RecordBuilder setX(byte x)
x
- the new X valuepublic byte y()
public RecordBuilder setY(byte y)
y
- the new Y valuepublic byte z()
public RecordBuilder setZ(byte z)
z
- the new Z valuepublic int blockId()
public RecordBuilder setBlockId(int blockId)
blockId
- the ID number of the block to be setCopyright © 2016. All rights reserved.