Package cn.nukkit.network.protocol
Class ResourcePackDataInfoPacket
java.lang.Object
cn.nukkit.utils.BinaryStream
cn.nukkit.network.protocol.DataPacket
cn.nukkit.network.protocol.AbstractResourcePackDataPacket
cn.nukkit.network.protocol.ResourcePackDataInfoPacket
- All Implemented Interfaces:
Cloneable
@PowerNukkitDifference(extendsOnlyInPowerNukkit=AbstractResourcePackDataPacket.class,
insteadOf=DataPacket.class,
since="1.5.2.0-PN")
public class ResourcePackDataInfoPacket
extends AbstractResourcePackDataPacket
-
Field Summary
Modifier and TypeFieldDescriptionint
long
int
static final byte
boolean
byte[]
int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
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
Methods inherited from class cn.nukkit.network.protocol.AbstractResourcePackDataPacket
decodePackInfo, encodePackInfo
Methods inherited from class cn.nukkit.network.protocol.DataPacket
clean, clone, compress, compress, getChannel, 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, 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, putRecipeIngredient, putShort, putSignedBlockPosition, putSkin, putSlot, putSlot, putString, putTag, putTriad, putUnsignedVarInt, putUnsignedVarLong, putUUID, putVarInt, putVarLong, putVector3f, putVector3f, setBuffer, setBuffer, setOffset
-
Field Details
-
NETWORK_ID
public static final byte NETWORK_ID- See Also:
-
TYPE_INVALID
public static final int TYPE_INVALID- See Also:
-
TYPE_ADDON
public static final int TYPE_ADDON- See Also:
-
TYPE_CACHED
public static final int TYPE_CACHED- See Also:
-
TYPE_COPY_PROTECTED
public static final int TYPE_COPY_PROTECTED- See Also:
-
TYPE_BEHAVIOR
public static final int TYPE_BEHAVIOR- See Also:
-
TYPE_PERSONA_PIECE
public static final int TYPE_PERSONA_PIECE- See Also:
-
TYPE_RESOURCE
public static final int TYPE_RESOURCE- See Also:
-
TYPE_SKINS
public static final int TYPE_SKINS- See Also:
-
TYPE_WORLD_TEMPLATE
public static final int TYPE_WORLD_TEMPLATE- See Also:
-
TYPE_COUNT
public static final int TYPE_COUNT- See Also:
-
packId
-
maxChunkSize
public int maxChunkSize -
chunkCount
public int chunkCount -
compressedPackSize
public long compressedPackSize -
sha256
public byte[] sha256 -
type
public int type
-
-
Constructor Details
-
ResourcePackDataInfoPacket
public ResourcePackDataInfoPacket()
-
-
Method Details
-
decode
public void decode()- Specified by:
decode
in classDataPacket
-
encode
public void encode()- Specified by:
encode
in classDataPacket
-
pid
public byte pid()- Specified by:
pid
in classDataPacket
-
getPackVersion
- Specified by:
getPackVersion
in classAbstractResourcePackDataPacket
-
setPackVersion
@PowerNukkitOnly @Since("1.5.2.0-PN") public void setPackVersion(org.powernukkit.version.Version packVersion) - Specified by:
setPackVersion
in classAbstractResourcePackDataPacket
-
getPackId
- Specified by:
getPackId
in classAbstractResourcePackDataPacket
-
setPackId
- Specified by:
setPackId
in classAbstractResourcePackDataPacket
-
toString
-