From bd4ce8d9411db27c77642bf596fda871dc976257 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 6 Feb 2021 23:46:51 +0000 Subject: [PATCH] TNT: expose unstable flag --- src/block/TNT.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/block/TNT.php b/src/block/TNT.php index c2ae6f1b3..d4bce585b 100644 --- a/src/block/TNT.php +++ b/src/block/TNT.php @@ -64,6 +64,14 @@ class TNT extends Opaque{ public function getNonPersistentStateBitmask() : int{ return 0b1; } + public function isUnstable() : bool{ return $this->unstable; } + + /** @return $this */ + public function setUnstable(bool $unstable) : self{ + $this->unstable = $unstable; + return $this; + } + public function worksUnderwater() : bool{ return $this->worksUnderwater; } /** @return $this */