34    use GetTypeIdFromConstTrait;
 
   36    public const ID = ItemStackRequestActionType::CRAFTING_CREATE_SPECIFIC_RESULT;
 
   38    public function __construct(
 
   39        private int $resultIndex
 
   42    public function getResultIndex() : 
int{ 
return $this->resultIndex; }
 
   44    public static function read(ByteBufferReader $in) : 
self{
 
   45        $slot = Byte::readUnsigned($in);
 
   46        return new self($slot);
 
   49    public function write(ByteBufferWriter $out) : 
void{
 
   50        Byte::writeUnsigned($out, $this->resultIndex);