Attributes#1428
Attributes#1428kashike wants to merge 1 commit intoSpongePowered:bleedingfrom kashike:feature/attributes
Conversation
|
Aren't most of these things available (or can be made available) through the data API? |
|
ooooh, I don't have to use NMS anymore for this : https://github.com/Maxqia/MiscStuff/blob/master/src/main/java/com/maxqia/miscstuff/DisableAttackTime.java, btw your Common link is accidentally referencing SpongeAPI |
src/main/java/org/spongepowered/api/entity/attribute/AttributeModifier.java
Show resolved
Hide resolved
|
The |
src/main/java/org/spongepowered/api/entity/attribute/AttributeModifier.java
Show resolved
Hide resolved
src/main/java/org/spongepowered/api/entity/attribute/operation/AttributeOperation.java
Show resolved
Hide resolved
gabizou
left a comment
There was a problem hiding this comment.
Clarification in javadocs needed. Also, wouldn't this PR fit to have some events? Or usability with Data API being able to perform more modifications than just getting an Attribute instance from Living?
| import java.util.UUID; | ||
|
|
||
| /** | ||
| * An attribute instance. |
There was a problem hiding this comment.
Clarify? Is it just a container for some values? What does it represent? Who can own one?
| import java.util.UUID; | ||
|
|
||
| /** | ||
| * An attribute modifier. |
There was a problem hiding this comment.
What are these for? What do they modify on an Attribute? How do they interact with each other?
| import org.spongepowered.api.util.annotation.CatalogedBy; | ||
|
|
||
| /** | ||
| * An attribute operation. |
|
What's the status of this? |
|
Also interested in a status update on this. Will it make it into API7? |
|
@HaedHutner @randombyte-developer I do not think so unfortunately, but I will see what I can do as this has been a popular request recently. |
|
@Meronat What else needs to be done on this? I'd be willing to help out |
|
Kashike has some changes locally on this that need to be finished, If anyone picks this up, I'd recommend contacting them first to see what direction it was heading in. |
|
@kashike what's the status on this? I'd love to help out, as I really want to see this implemented! Also knowing what needs to be done would be helpful. I'd highly apprechiate if you get in contact with me. If you don't mind I'd apprechiate getting write access to your branches, so I don't have to fork it myself and create another PR. |
|
@BrainStone I'd recommend forking and PR'ing due to the time difference since the original commit from kashike and the current "status" of the API. As the API has evolved since 2016, there are some concepts that need to be changed with how registrations are handled, and other things (look at the registration event for example, build new attributes and register them there). I'd say that it would be safe to start from there, and the implementation as well (can assist with updating the implementation to bring it "up to speed" with other changes, but definitely a "test" would be to write a test plugin that takes advantage of the API and operates with the basis of how the Attribute API can be used by plugins. |
|
@kashike status? |
| public static final RangedAttributeType MAX_HEALTH = DummyObjectProvider.createFor(RangedAttributeType.class, "MAX_HEALTH"); | ||
|
|
||
| public static final RangedAttributeType MOVEMENT_SPEED = DummyObjectProvider.createFor(RangedAttributeType.class, "MOVEMENT_SPEED"); | ||
|
|
There was a problem hiding this comment.
Should we also support the generic.reachDistance attribute which is added by forge?
There was a problem hiding this comment.
Is this something we can implement in vanilla? Does it need to be synced with the client?
There was a problem hiding this comment.
It will work nicer that way yes, but you can also make it server side only by blocking interaction if the reach distance is below the client distance, or handle custom interaction if it's the other way around (could also just limit this to forge).
|
How can you get/set attribute modifiers on |
src/main/java/org/spongepowered/api/entity/attribute/type/RangedAttributeType.java
Outdated
Show resolved
Hide resolved
|
How's this going? I saw a few people asking about this on the forums. |
|
I am comming from the Sponge forum and I am looking forward for the completion of this implementation. This would be an essential part in my RPG pluing (for example manipulating attack speed of entities and so on ...) Any plan for the finish line? |
|
I also am looking for a way to adjust attack speed on entities. |
|
Closed without any final statement? What is the future plan for the ItemStack attributes like attack speed? |
|
The branch needs to be rebased/recreated based on |
API | Common