public function __construct(FullChunk $chunk, CompoundTag $nbt, Entity $shootingEntity = null) { if (!isset($nbt->PotionId)) { $nbt->PotionId = new ShortTag("PotionId", Potion::AWKWARD); } parent::__construct($chunk, $nbt, $shootingEntity); $this->setDataProperty(self::DATA_POTION_ID, self::DATA_TYPE_SHORT, Potion::getEffectId($this->getPotionId())); }