Skip to content

MaterialTag.Bottles Property Modernization #2667

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

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

heypr
Copy link
Contributor

@heypr heypr commented Oct 31, 2024

  • Renamed MaterialBrewingStand property file to MaterialBottles.
  • Modernized MaterialTag.bottles property.

@heypr heypr marked this pull request as draft October 31, 2024 23:40
@heypr heypr marked this pull request as ready for review December 23, 2024 00:03
public static void register() {
autoRegister("age", MaterialAge.class, ElementTag.class, true, "plant_growth");
Copy link
Member

Choose a reason for hiding this comment

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

why did you just reorder stuff in this file what

@@ -35,6 +35,11 @@ public static boolean describes(MaterialTag material) {
|| (NMSHandler.getVersion().isAtLeast(NMSVersion.v1_19) && data instanceof Hangable);
}

@Override
public String getPropertyId() {
return "attached";
Copy link
Member

Choose a reason for hiding this comment

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

same question

@@ -21,13 +21,19 @@ public class MaterialAttachmentFace extends MaterialProperty<ElementTag> {
// -->

public static boolean describes(MaterialTag material) {
return material.getModernData() instanceof FaceAttachable || material.getModernData() instanceof Bell;
return material.getModernData() instanceof FaceAttachable
|| material.getModernData() instanceof Bell;
Copy link
Member

Choose a reason for hiding this comment

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

what the fuck

@heypr
Copy link
Contributor Author

heypr commented Dec 23, 2024

As per Discord discussion, reverted formatting changes.

@heypr heypr requested a review from mcmonkey4eva December 23, 2024 15:29
@mcmonkey4eva mcmonkey4eva changed the title Modernized Properties Part 8 MaterialTag.Bottles Property Modernization Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants