Skip to content

Conversation

MrHell228
Copy link
Contributor

@MrHell228 MrHell228 commented Sep 24, 2025

SpongeAPI | Sponge

Exposes EquipmentCondition and ItemAttribute with corresponding key.
Also adds factory-like methods for AttributeModifier creation.

public static final Key<Value<Boolean>> IS_WET = Keys.key(ResourceKey.sponge("is_wet"), Boolean.class);

/**
* The {@link ItemAttribute}s an {@link ItemStack} can apply.
Copy link
Member

Choose a reason for hiding this comment

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

StackLike?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, right, changed to ItemStackLike.
Though I looked through keys and almost every stack-related key mentions ItemStack. Probably could be another PR to update all of this

@MrHell228 MrHell228 force-pushed the api-14-item-attributes branch from ca49584 to 01f256b Compare September 24, 2025 21:26
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