Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

class Boat extends Vehicle { const NETWORK_ID = 90; public float $height = 0.7; public flo..

Decoded Output download

<?  class Boat extends Vehicle { const NETWORK_ID = 90; public float $height = 0.7; public float $width = 1.6; public float $gravity = 0.5; public float $drag = 0.1; public function __construct(Level $O8990405184547542856, CompoundTag $O6119036173800608151) { goto O9828275421605957979; O6178443796286387836: parent::__construct($O8990405184547542856, $O6119036173800608151); goto O4501648922580693342; O4501648922580693342: $this->setDataProperty(self::DATA_VARIANT, self::DATA_TYPE_INT, $this->getWoodID()); goto O2780455012304222874; O9828275421605957979: if (isset($O6119036173800608151->WoodID)) { goto O0758358516449940401; } goto O1564955457813169135; O3346823633775399826: O0758358516449940401: goto O6178443796286387836; O1564955457813169135: $O6119036173800608151->WoodID = new IntTag("WoodID", 0); goto O3346823633775399826; O2780455012304222874: } public function initEntity() { goto O8719293074263657962; O9273108906888673138: parent::initEntity(); goto O3914816700745502660; O3788687262703435185: $this->setHealth($this->getMaxHealth()); goto O9273108906888673138; O8719293074263657962: $this->setMaxHealth(6); goto O3788687262703435185; O3914816700745502660: } public function getWoodID() : int { return (int) $this->namedtag["WoodID"]; } public function attack($O5277657260664547277, EntityDamageEvent $O4286791610711190971) { goto O8185411367478644933; O7617885900795994511: if ($O4286791610711190971->isCancelled()) { goto O4215203069470803105; } goto O6505136291541011998; O3997652666265409318: O4215203069470803105: goto O8305072551843785436; O8185411367478644933: parent::attack($O5277657260664547277, $O4286791610711190971); goto O7617885900795994511; O6505136291541011998: $this->performHurtAnimation(); goto O3997652666265409318; O8305072551843785436: } public function onUpdate(int $O9825197035600597054) : bool { goto O4453375826833121506; O4975663672233596044: return false; goto O7121445077977508891; O7121445077977508891: O8127936625886794868: goto O2920682752900134533; O2920682752900134533: if (!($this->linkedEntity === null)) { goto O0259079792299549557; } goto O4031567326549633052; O1058718726757701047: return $O1978970204194690169; goto O0881125640758739777; O3810329611632673087: $this->doKnockback(); goto O2780722662232173700; O2780722662232173700: O0259079792299549557: goto O1058718726757701047; O4031567326549633052: $this->doGravity(); goto O3810329611632673087; O2799138566243570059: if (!$this->closed) { goto O8127936625886794868; } goto O4975663672233596044; O4453375826833121506: $O1978970204194690169 = parent::onUpdate($O9825197035600597054); goto O2799138566243570059; O0881125640758739777: } public function doKnockback() { foreach ($this->getLevel()->getCollidingEntities($this->getBoundingBox()->expandedCopy(0.1, 0.1, 0.1), $this) as $O9518733833987900631) { goto O4917838386908237792; O5043809371629768360: $this->move($this->motionX, 0, $this->motionZ); goto O8749884026052488509; O2394134594590166390: O3154731770744805058: goto O7507315671193301750; O4917838386908237792: if (!($O9518733833987900631 instanceof Living or $O9518733833987900631 instanceof Human or $O9518733833987900631 instanceof Vehicle)) { goto O3934218647893011625; } goto O1287153875663529639; O1287153875663529639: $this->collisionKnockback($O9518733833987900631, 0.01); goto O5043809371629768360; O8749884026052488509: O3934218647893011625: goto O2394134594590166390; O7507315671193301750: } O1531264730154061667: } public function doGravity() { goto O4991222355123041968; O6251298220519504028: $this->motionY = 0; goto O1167949548871913324; O8353303132023932447: $this->move($this->motionX, $this->motionY, $this->motionZ); goto O3440453733504388570; O1059827080178467065: O5792003616973446646: goto O6896984288622459686; O4991222355123041968: $O0176585863641912526 = 1 - $this->drag; goto O1492844948902672166; O5541638300340330859: if (!($this->level->getBlock(new Vector3($this->x, $this->y - 0.35, $this->z))->getBoundingBox() !== null)) { goto O4172900733576795279; } goto O7042115128586409060; O7881818470550264198: O4172900733576795279: goto O8353303132023932447; O6896984288622459686: $this->motionX *= $O0176585863641912526; goto O2680094694376311042; O0567477255910389265: goto O1522449441162908954; goto O5004762538067497253; O5004762538067497253: O5205113546250078832: goto O6251298220519504028; O2680094694376311042: $this->motionZ *= $O0176585863641912526; goto O6017859346357699636; O6017859346357699636: $O5565554393439760759 = $this->level->getBlock(new Vector3($this->x, $this->y - 0.45, $this->z)); goto O6120598569340101254; O6002121701965201256: $this->motionY -= 0.05; goto O0567477255910389265; O5657213244631262160: $O0176585863641912526 = $this->getLevel()->getBlock($this->temporalVector->setComponents((int) floor($this->x), (int) floor($this->y - 1), (int) floor($this->z) - 1))->getFrictionFactor() * $O0176585863641912526; goto O1059827080178467065; O6120598569340101254: if ($O5565554393439760759->getBoundingBox() !== null or $O5565554393439760759 instanceof Water) { goto O5205113546250078832; } goto O6002121701965201256; O1492844948902672166: if (!($this->onGround and (abs($this->motionX) > 1.0E-5 or abs($this->motionZ) > 1.0E-5))) { goto O5792003616973446646; } goto O5657213244631262160; O7042115128586409060: $this->motionY = 0.1; goto O7881818470550264198; O1167949548871913324: O1522449441162908954: goto O5541638300340330859; O3440453733504388570: } public function getDrops() { return [ItemItem::get(ItemItem::BOAT, (int) $this->namedtag["WoodID"], 1)]; } } 
 ?>

Did this file decode correctly?

Original Code

class Boat extends Vehicle { const NETWORK_ID = 90; public float $height = 0.7; public float $width = 1.6; public float $gravity = 0.5; public float $drag = 0.1; public function __construct(Level $O8990405184547542856, CompoundTag $O6119036173800608151) { goto O9828275421605957979; O6178443796286387836: parent::__construct($O8990405184547542856, $O6119036173800608151); goto O4501648922580693342; O4501648922580693342: $this->setDataProperty(self::DATA_VARIANT, self::DATA_TYPE_INT, $this->getWoodID()); goto O2780455012304222874; O9828275421605957979: if (isset($O6119036173800608151->WoodID)) { goto O0758358516449940401; } goto O1564955457813169135; O3346823633775399826: O0758358516449940401: goto O6178443796286387836; O1564955457813169135: $O6119036173800608151->WoodID = new IntTag("\127\x6f\x6f\144\111\x44", 0); goto O3346823633775399826; O2780455012304222874: } public function initEntity() { goto O8719293074263657962; O9273108906888673138: parent::initEntity(); goto O3914816700745502660; O3788687262703435185: $this->setHealth($this->getMaxHealth()); goto O9273108906888673138; O8719293074263657962: $this->setMaxHealth(6); goto O3788687262703435185; O3914816700745502660: } public function getWoodID() : int { return (int) $this->namedtag["\127\x6f\157\144\x49\104"]; } public function attack($O5277657260664547277, EntityDamageEvent $O4286791610711190971) { goto O8185411367478644933; O7617885900795994511: if ($O4286791610711190971->isCancelled()) { goto O4215203069470803105; } goto O6505136291541011998; O3997652666265409318: O4215203069470803105: goto O8305072551843785436; O8185411367478644933: parent::attack($O5277657260664547277, $O4286791610711190971); goto O7617885900795994511; O6505136291541011998: $this->performHurtAnimation(); goto O3997652666265409318; O8305072551843785436: } public function onUpdate(int $O9825197035600597054) : bool { goto O4453375826833121506; O4975663672233596044: return false; goto O7121445077977508891; O7121445077977508891: O8127936625886794868: goto O2920682752900134533; O2920682752900134533: if (!($this->linkedEntity === null)) { goto O0259079792299549557; } goto O4031567326549633052; O1058718726757701047: return $O1978970204194690169; goto O0881125640758739777; O3810329611632673087: $this->doKnockback(); goto O2780722662232173700; O2780722662232173700: O0259079792299549557: goto O1058718726757701047; O4031567326549633052: $this->doGravity(); goto O3810329611632673087; O2799138566243570059: if (!$this->closed) { goto O8127936625886794868; } goto O4975663672233596044; O4453375826833121506: $O1978970204194690169 = parent::onUpdate($O9825197035600597054); goto O2799138566243570059; O0881125640758739777: } public function doKnockback() { foreach ($this->getLevel()->getCollidingEntities($this->getBoundingBox()->expandedCopy(0.1, 0.1, 0.1), $this) as $O9518733833987900631) { goto O4917838386908237792; O5043809371629768360: $this->move($this->motionX, 0, $this->motionZ); goto O8749884026052488509; O2394134594590166390: O3154731770744805058: goto O7507315671193301750; O4917838386908237792: if (!($O9518733833987900631 instanceof Living or $O9518733833987900631 instanceof Human or $O9518733833987900631 instanceof Vehicle)) { goto O3934218647893011625; } goto O1287153875663529639; O1287153875663529639: $this->collisionKnockback($O9518733833987900631, 0.01); goto O5043809371629768360; O8749884026052488509: O3934218647893011625: goto O2394134594590166390; O7507315671193301750: } O1531264730154061667: } public function doGravity() { goto O4991222355123041968; O6251298220519504028: $this->motionY = 0; goto O1167949548871913324; O8353303132023932447: $this->move($this->motionX, $this->motionY, $this->motionZ); goto O3440453733504388570; O1059827080178467065: O5792003616973446646: goto O6896984288622459686; O4991222355123041968: $O0176585863641912526 = 1 - $this->drag; goto O1492844948902672166; O5541638300340330859: if (!($this->level->getBlock(new Vector3($this->x, $this->y - 0.35, $this->z))->getBoundingBox() !== null)) { goto O4172900733576795279; } goto O7042115128586409060; O7881818470550264198: O4172900733576795279: goto O8353303132023932447; O6896984288622459686: $this->motionX *= $O0176585863641912526; goto O2680094694376311042; O0567477255910389265: goto O1522449441162908954; goto O5004762538067497253; O5004762538067497253: O5205113546250078832: goto O6251298220519504028; O2680094694376311042: $this->motionZ *= $O0176585863641912526; goto O6017859346357699636; O6017859346357699636: $O5565554393439760759 = $this->level->getBlock(new Vector3($this->x, $this->y - 0.45, $this->z)); goto O6120598569340101254; O6002121701965201256: $this->motionY -= 0.05; goto O0567477255910389265; O5657213244631262160: $O0176585863641912526 = $this->getLevel()->getBlock($this->temporalVector->setComponents((int) floor($this->x), (int) floor($this->y - 1), (int) floor($this->z) - 1))->getFrictionFactor() * $O0176585863641912526; goto O1059827080178467065; O6120598569340101254: if ($O5565554393439760759->getBoundingBox() !== null or $O5565554393439760759 instanceof Water) { goto O5205113546250078832; } goto O6002121701965201256; O1492844948902672166: if (!($this->onGround and (abs($this->motionX) > 1.0E-5 or abs($this->motionZ) > 1.0E-5))) { goto O5792003616973446646; } goto O5657213244631262160; O7042115128586409060: $this->motionY = 0.1; goto O7881818470550264198; O1167949548871913324: O1522449441162908954: goto O5541638300340330859; O3440453733504388570: } public function getDrops() { return [ItemItem::get(ItemItem::BOAT, (int) $this->namedtag["\x57\157\157\144\x49\x44"], 1)]; } }

Function Calls

None

Variables

None

Stats

MD5 46872298ee14098f742b3a115cf88166
Eval Count 0
Decode Time 65 ms