Package cn.nukkit.network.protocol
Class CraftingDataPacket
java.lang.Object
cn.nukkit.utils.BinaryStream
cn.nukkit.network.protocol.DataPacket
cn.nukkit.network.protocol.CraftingDataPacket
- All Implemented Interfaces:
Cloneable
- Author:
- Nukkit Project Team
-
Field Summary
Modifier and TypeFieldDescriptionboolean
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final byte
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
addBlastFurnaceRecipe
(BlastFurnaceRecipe... recipe) void
addBrewingRecipe
(BrewingRecipe... recipe) void
addCampfireRecipeRecipe
(CampfireRecipe... recipe) void
addCartographyRecipe
(CartographyRecipe... recipe) void
addContainerRecipe
(ContainerRecipe... recipe) void
addFurnaceRecipe
(FurnaceRecipe... recipe) void
addMultiRecipe
(MultiRecipe... recipe) void
addShapedRecipe
(ShapedRecipe... recipe) void
addShapelessRecipe
(ShapelessRecipe... recipe) void
addSmokerRecipe
(SmokerRecipe... recipe) void
addStonecutterRecipe
(StonecutterRecipe... recipes) clean()
void
decode()
void
encode()
byte
pid()
toString()
Methods inherited from class cn.nukkit.network.protocol.DataPacket
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, 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:
-
CRAFTING_TAG_CRAFTING_TABLE
- See Also:
-
CRAFTING_TAG_CARTOGRAPHY_TABLE
- See Also:
-
CRAFTING_TAG_STONECUTTER
- See Also:
-
CRAFTING_TAG_FURNACE
- See Also:
-
CRAFTING_TAG_CAMPFIRE
- See Also:
-
CRAFTING_TAG_BLAST_FURNACE
- See Also:
-
CRAFTING_TAG_SMOKER
- See Also:
-
CRAFTING_TAG_SMITHING_TABLE
- See Also:
-
cleanRecipes
public boolean cleanRecipes
-
-
Constructor Details
-
CraftingDataPacket
public CraftingDataPacket()
-
-
Method Details
-
addShapelessRecipe
-
addStonecutterRecipe
-
addShapedRecipe
-
addCartographyRecipe
-
addFurnaceRecipe
-
addSmokerRecipe
-
addBlastFurnaceRecipe
-
addCampfireRecipeRecipe
-
addMultiRecipe
-
addBrewingRecipe
-
addContainerRecipe
-
clean
- Overrides:
clean
in classDataPacket
-
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
-
toString
-