PocketMine
CraftingDataPacket Class Reference
Inheritance diagram for CraftingDataPacket:
DataPacket BinaryStream

Public Member Functions

 addShapelessRecipe (ShapelessRecipe $recipe)
 
 addShapedRecipe (ShapedRecipe $recipe)
 
 addFurnaceRecipe (FurnaceRecipe $recipe)
 
 addEnchantList (EnchantmentList $list)
 
 clean ()
 
 decode ()
 
 encode ()
 
- Public Member Functions inherited from DataPacket
 pid ()
 
 encode ()
 
 decode ()
 
 reset ()
 
 setChannel ($channel)
 
 getChannel ()
 
 clean ()
 
 __debugInfo ()
 
- Public Member Functions inherited from BinaryStream
 __construct ($buffer="", $offset=0)
 
 reset ()
 
 setBuffer ($buffer=null, $offset=0)
 
 getOffset ()
 
 getBuffer ()
 
 get ($len)
 
 put ($str)
 
 getLong ()
 
 putLong ($v)
 
 getInt ()
 
 putInt ($v)
 
 getLLong ()
 
 putLLong ($v)
 
 getLInt ()
 
 putLInt ($v)
 
 getSignedShort ()
 
 putShort ($v)
 
 getShort ()
 
 putSignedShort ($v)
 
 getFloat ()
 
 putFloat ($v)
 
 getLShort ($signed=true)
 
 putLShort ($v)
 
 getLFloat ()
 
 putLFloat ($v)
 
 getTriad ()
 
 putTriad ($v)
 
 getLTriad ()
 
 putLTriad ($v)
 
 getByte ()
 
 putByte ($v)
 
 getDataArray ($len=10)
 
 putDataArray (array $data=[])
 
 getUUID ()
 
 putUUID (UUID $uuid)
 
 getSlot ()
 
 putSlot (Item $item)
 
 getString ()
 
 putString ($v)
 
 feof ()
 

Data Fields

const NETWORK_ID = Info::CRAFTING_DATA_PACKET
 
const ENTRY_SHAPELESS = 0
 
const ENTRY_SHAPED = 1
 
const ENTRY_FURNACE = 2
 
const ENTRY_FURNACE_DATA = 3
 
const ENTRY_ENCHANT_LIST = 4
 
 $entries = []
 
 $cleanRecipes = false
 
- Data Fields inherited from DataPacket
const NETWORK_ID = 0
 
 $isEncoded = false
 
- Data Fields inherited from BinaryStream
 $offset
 
 $buffer
 

The documentation for this class was generated from the following file: