Skip to content

EntityBeeStingers property creation#2724

Merged
mcmonkey4eva merged 4 commits intoDenizenScript:devfrom
MC-Samuel:bee-stingers
May 4, 2025
Merged

EntityBeeStingers property creation#2724
mcmonkey4eva merged 4 commits intoDenizenScript:devfrom
MC-Samuel:bee-stingers

Conversation

@MC-Samuel
Copy link
Copy Markdown
Contributor


// <--[property]
// @object EntityTag
// @name body_stingers
Copy link
Copy Markdown
Member

@mcmonkey4eva mcmonkey4eva May 3, 2025

Choose a reason for hiding this comment

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

is it BeeStingers or body_stingers? These should align (body_stingers is probably the right one)

@Override
public ElementTag getPropertyValue() {
int stingers = getLivingEntity().getBeeStingersInBody();
return stingers == 0 ? null : new ElementTag(stingers);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should use the isdefault method, otherwise the tag will be null here, which wouldn't be great

@Override
public ElementTag getPropertyValue() {
int stingers = getLivingEntity().getBeeStingersInBody();
return stingers == 0 ? null : new ElementTag(stingers);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this null shouldn't be here still

@mcmonkey4eva mcmonkey4eva merged commit 87846d6 into DenizenScript:dev May 4, 2025
1 check passed
@MC-Samuel MC-Samuel deleted the bee-stingers branch May 4, 2025 17:32
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.

3 participants