pocketmine\inventory\ShapelessRecipe::getId PHP 메소드

getId() 공개 메소드

public getId ( )
    public function getId()
    {
        return $this->id;
    }

Usage Example

예제 #1
0
 private static function writeShapelessRecipe(ShapelessRecipe $recipe, BinaryStream $stream)
 {
     $stream->putInt($recipe->getIngredientCount());
     foreach ($recipe->getIngredientList() as $item) {
         $stream->putSlot($item);
     }
     $stream->putInt(1);
     $stream->putSlot($recipe->getResult());
     $stream->putUUID($recipe->getId());
     return CraftingDataPacket::ENTRY_SHAPELESS;
 }
All Usage Examples Of pocketmine\inventory\ShapelessRecipe::getId