Skip to content
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

Implement ChangeValueEvent #1670

Merged
merged 5 commits into from Dec 31, 2017
Merged

Implement ChangeValueEvent #1670

merged 5 commits into from Dec 31, 2017

Conversation

gabizou
Copy link
Member

@gabizou gabizou commented Dec 28, 2017

SpongeAPI | SpongeCommon
This sets up the system for implementing ChangeValueEvent if only for Entities at present time. TileEntity instances are a little different to handle as there is no data sync system short of serializing the TileEntity and sending it over the wire.

…istration should work, but now to actually throw said events based on keys...

Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
No but seriously.... this is working for entity flags, which
represents Keys.IS_SNEAKING, Keys.IS_SPRINTING, Keys.INVISIBLE,
and Keys.GLOWING. The nice thing is that this should be the fastest
we can churn out events in this circumstance.

Some testing still has to flow through to get some potion effects
handled correctly, since setting glowing on entities does not
get tracked through commands properly because it is applying an
effect, instead of setting the flag itself.

Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
@Zidane
Copy link
Member

Zidane commented Dec 28, 2017

I agree with @kashike here. That is hard to see what is happening.

Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
…anges, now at this point it is purely implementation, and not API.

Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
@gabizou gabizou merged commit dc1f1d4 into bleeding Dec 31, 2017

@Override
public String getValueFromEvent(String originalValue, List<ImmutableValue<?>> immutableValues) {
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this just a stub?

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.

None yet

6 participants