Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Add(Expose) some missing attribute related methods to attributable

Open Clexus opened this issue 6 months ago • 2 comments

Is your feature request related to a problem?

For example, you can't reset basevalue to the correct value that set when entity is created. Like walking speed is 0.1 for a player, but is 0.7 by default

Describe the solution you'd like.

getAttributes(), so you don't need to iterate the registry to get them one by one resetBaseValue and getBaseValue

Describe alternatives you've considered.

not related

Other

No response

Clexus avatar Jun 11 '25 11:06 Clexus

You can get the default attributes using EntityType#getDefaultAttributes. Is that not working correctly for player walk speed?

Malfrador avatar Jun 17 '25 23:06 Malfrador

You can get the default attributes using EntityType#getDefaultAttributes. Is that not working correctly for player walk speed?

how about getAttributes()

Clexus avatar Jun 19 '25 16:06 Clexus

For clarification, you're proposing adding a Attributable#getAttributes method?

Warriorrrr avatar Aug 04 '25 10:08 Warriorrrr

For clarification, you're proposing adding a Attributable#getAttributes method?

yes

Clexus avatar Aug 04 '25 11:08 Clexus