RuntimeDataDescriber: added dynamic method for reading and writing enum sets

this was previously only needed for brewing stands, but it's now become needed for chiselled bookshelves too.
This commit is contained in:
Dylan K. Taylor
2023-09-28 16:06:17 +01:00
parent d94391af57
commit 4b9d170954
6 changed files with 40 additions and 47 deletions

View File

@ -50,7 +50,7 @@ class ChiseledBookshelf extends Opaque{
protected function describeBlockOnlyState(RuntimeDataDescriber $w) : void{
$w->horizontalFacing($this->facing);
$w->chiseledBookshelfSlots($this->slots);
$w->enumSet($this->slots, ChiseledBookshelfSlot::cases());
}
/**