80 $this->actionType = $stream->getUnsignedVarInt();
85 $this->itemInHand = $stream->getItemStackWrapper();
89 $this->clientInteractPrediction = PredictedResult::fromPacket($stream->
getUnsignedVarInt());
108 public static function new(array $actions,
int $actionType, TriggerType $triggerType,
BlockPosition $blockPosition,
int $face,
int $hotbarSlot,
ItemStackWrapper $itemInHand,
Vector3 $playerPosition,
Vector3 $clickPosition,
int $blockRuntimeId, PredictedResult $clientInteractPrediction) :
self{
110 $result->actions = $actions;
111 $result->actionType = $actionType;
112 $result->triggerType = $triggerType;
113 $result->blockPosition = $blockPosition;
114 $result->face = $face;
115 $result->hotbarSlot = $hotbarSlot;
116 $result->itemInHand = $itemInHand;
117 $result->playerPosition = $playerPosition;
118 $result->clickPosition = $clickPosition;
119 $result->blockRuntimeId = $blockRuntimeId;
120 $result->clientInteractPrediction = $clientInteractPrediction;