Package cn.nukkit.network.protocol
Class CameraInstructionPacket
java.lang.Object
cn.nukkit.utils.BinaryStream
cn.nukkit.network.protocol.DataPacket
cn.nukkit.network.protocol.CameraInstructionPacket
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields inherited from class cn.nukkit.network.protocol.DataPacket
EMPTY_ARRAY, isEncoded, reliability
Fields inherited from class cn.nukkit.utils.BinaryStream
count, offset
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decode()
void
encode()
int
packetId()
byte
pid()
Deprecated.void
setClearInstruction
(ClearInstruction clearInstruction) void
setFadeInstruction
(FadeInstruction fadeInstruction) void
setInstruction
(CameraInstruction instruction) void
setSetInstruction
(SetInstruction setInstruction) protected void
writeColor
(Color color) protected void
protected void
writeTimeData
(Time time) Methods inherited from class cn.nukkit.network.protocol.DataPacket
clean, clone, compress, compress, getChannel, getProtocolUsed, reset, setChannel, tryEncode
Methods inherited from class cn.nukkit.utils.BinaryStream
feof, get, get, getArray, getAttributeList, getBlockFace, getBlockVector3, getBoolean, getBuffer, getByte, getByteArray, getCount, getEntityLink, getEntityRuntimeId, getEntityUniqueId, getFloat, getFloat, getImage, getInt, getLFloat, getLFloat, getLInt, getLLong, getLong, getLShort, getLTriad, getOffset, getRecipeIngredient, getShort, getSignedBlockPosition, getSkin, getSlot, getString, getTag, getTriad, getUnsignedVarInt, getUnsignedVarLong, getUUID, getVarInt, getVarLong, getVector2f, getVector3f, put, putArray, putArray, putArray, putAttributeList, putBlockFace, putBlockVector3, putBlockVector3, putBoolean, putByte, putByteArray, putEntityLink, putEntityRuntimeId, putEntityUniqueId, putFloat, putGameRules, putImage, putInt, putLFloat, putLInt, putLLong, putLong, putLShort, putLTriad, putNotNull, putOptional, putRecipeIngredient, putRecipeIngredient, putShort, putSignedBlockPosition, putSkin, putSlot, putSlot, putString, putTag, putTriad, putUnsignedVarInt, putUnsignedVarLong, putUUID, putVarInt, putVarLong, putVector2f, putVector2f, putVector3f, putVector3f, setBuffer, setBuffer, setOffset
-
Constructor Details
-
CameraInstructionPacket
public CameraInstructionPacket()
-
-
Method Details
-
pid
Deprecated.- Specified by:
pid
in classDataPacket
-
packetId
- Overrides:
packetId
in classDataPacket
- Returns:
- The id of the packet
-
decode
public void decode()- Specified by:
decode
in classDataPacket
-
encode
public void encode()- Specified by:
encode
in classDataPacket
-
setInstruction
-
writeEase
-
writeTimeData
-
writeColor
-
getSetInstruction
-
getFadeInstruction
-
getClearInstruction
-
setSetInstruction
-
setFadeInstruction
-
setClearInstruction
-