Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Added Block::fromString() method #4060

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added Block::fromString() method #4060

wants to merge 1 commit into from

Conversation

LukeDarling
Copy link
Contributor

I believe this will work, based off of Item.php.

@PEMapModder
Copy link
Collaborator

I think using Item::fromString()->getBlock() is still a better approach, because names like BED should resolve into a bed block rather than null/air. Some items have $this->block set without being a BlockItem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants