-
All Methods Instance Methods Concrete Methods 修饰符和类 成员函数描述 boolean
feof()
byte[]
get()
byte[]
get(int len)
<T> T[]
getArray(Class<T> clazz, Function<BinaryStream,T> function)
Attribute[]
getAttributeList()
Reads a list of Attributes from the stream.BlockFace
getBlockFace()
BlockVector3
getBlockVector3()
boolean
getBoolean()
byte[]
getBuffer()
int
getByte()
byte[]
getByteArray()
int
getCount()
EntityLink
getEntityLink()
long
getEntityRuntimeId()
Reads and returns an EntityRuntimeIDlong
getEntityUniqueId()
Reads and returns an EntityUniqueIDfloat
getFloat()
float
getFloat(int accuracy)
SerializedImage
getImage()
int
getInt()
float
getLFloat()
float
getLFloat(int accuracy)
int
getLInt()
long
getLLong()
long
getLong()
int
getLShort()
int
getLTriad()
int
getOffset()
Item
getRecipeIngredient()
int
getShort()
BlockVector3
getSignedBlockPosition()
Skin
getSkin()
Item
getSlot()
String
getString()
int
getTriad()
long
getUnsignedVarInt()
long
getUnsignedVarLong()
UUID
getUUID()
int
getVarInt()
long
getVarLong()
Vector3f
getVector3f()
void
put(byte[] bytes)
void
putAttributeList(Attribute[] attributes)
Writes a list of Attributes to the packet buffer using the standard format.void
putBlockFace(BlockFace face)
void
putBlockVector3(BlockVector3 v)
void
putBlockVector3(int x, int y, int z)
void
putBoolean(boolean bool)
void
putByte(byte b)
void
putByteArray(byte[] b)
void
putEntityLink(EntityLink link)
void
putEntityRuntimeId(long eid)
Writes an EntityUniqueIDvoid
putEntityUniqueId(long eid)
Writes an EntityUniqueIDvoid
putFloat(float v)
void
putGameRules(GameRules gameRules)
void
putImage(SerializedImage image)
void
putInt(int i)
void
putLFloat(float v)
void
putLInt(int i)
void
putLLong(long l)
void
putLong(long l)
void
putLShort(int s)
void
putLTriad(int triad)
void
putRecipeIngredient(Item ingredient)
void
putShort(int s)
void
putSignedBlockPosition(BlockVector3 v)
void
putSkin(Skin skin)
void
putSlot(Item item)
void
putString(String string)
void
putTriad(int triad)
void
putUnsignedVarInt(long v)
void
putUnsignedVarLong(long v)
void
putUUID(UUID uuid)
void
putVarInt(int v)
void
putVarLong(long v)
void
putVector3f(float x, float y, float z)
void
putVector3f(Vector3f v)
BinaryStream
reset()
void
setBuffer(byte[] buffer)
void
setBuffer(byte[] buffer, int offset)
void
setOffset(int offset)