Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Structure void #6156

Open
wants to merge 12 commits into
base: minor-next
Choose a base branch
from
Open

Add Structure void #6156

wants to merge 12 commits into from

Conversation

Bqleine
Copy link

@Bqleine Bqleine commented Nov 12, 2023

Introduction

This pull request is extracted from #6045. It adds the structure void block, along with it's air variant.

Relevant issues

Changes

This is a non-disruptive addition of blocks.

Follow-up

The card linked above should be updated to done.

Tests

  • /give <player> structure_void
  • place it
  • save the world
  • load the world

Copy link
Member

@dktapps dktapps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks mostly fine. Since we don't have any structure blocks, the difference between structure void and structure air is not important for now, though I would like to know the differences in the future.

There are some minor nits that need to be addressed.

@dktapps dktapps added Category: Gameplay Related to Minecraft gameplay experience Type: Enhancement Contributes features or other improvements to PocketMine-MP labels Nov 16, 2023
Copy link
Member

@ShockedPlot7560 ShockedPlot7560 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK to me

$w->enum($this->type);
}

public function getType() : StructureVoidType{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getType() is not generally used because it's too ambiguous
getStructureVoidType() would be better

Copy link
Contributor

@pandaaaBE pandaaaBE Mar 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should setType() also be renamed to setStructureVoidType()?

@Bqleine
Copy link
Author

Bqleine commented Mar 31, 2024

Thank you very much @pandaa-be :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Gameplay Related to Minecraft gameplay experience Status: Waiting on Author Type: Enhancement Contributes features or other improvements to PocketMine-MP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants