Skip to content

Commit

Permalink
drop a bunch of events
Browse files Browse the repository at this point in the history
  • Loading branch information
Faithcaio committed May 29, 2021
1 parent 52e4dfb commit 5e41643
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 324 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

import org.spongepowered.api.advancement.Advancement;
import org.spongepowered.api.advancement.criteria.AdvancementCriterion;
import org.spongepowered.api.entity.living.player.Player;
import org.spongepowered.api.entity.living.player.server.ServerPlayer;
import org.spongepowered.api.event.Event;
import org.spongepowered.api.event.message.MessageCancellable;
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ public interface HarvestEntityEvent extends Event, Cancellable {
Entity entity();

/**
* An event where the target is a {@link Player}. Usually this will
* An event where the target is a {@link org.spongepowered.api.entity.living.player.Player}. Usually this will
* have additional information regarding whether the player
* {@link #keepsInventory()} and their current experience.
*/
interface TargetPlayer extends HarvestEntityEvent, ChangeEntityExperienceEvent {
interface Player extends HarvestEntityEvent {

@Override
ServerPlayer entity();
Expand Down Expand Up @@ -96,5 +96,27 @@ interface TargetPlayer extends HarvestEntityEvent, ChangeEntityExperienceEvent {
* @param level The new level after death
*/
void setLevel(int level);

/**
* Gets the original experience unmodified by event changes.
*
* @return The experience
*/
int originalExperience();

/**
* Gets the experience after an event has been processed.
*
* @return The experience to receive
*/
int experience();

/**
* Sets the amount of experience after an event has been processed.
* Negative values will remove experience.
*
* @param exp The experience to give or take
*/
void setExperience(int exp);
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@

import org.spongepowered.api.Engine;
import org.spongepowered.api.event.GenericEvent;
import org.spongepowered.api.util.annotation.eventgen.NoFactoryMethod;

@NoFactoryMethod
public interface EngineLifecycleEvent<E extends Engine> extends GenericEvent<E>, LifecycleEvent {

/**
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
package org.spongepowered.api.event.message;

import net.kyori.adventure.text.Component;
import org.spongepowered.api.util.annotation.eventgen.NoFactoryMethod;

/**
* Represents an event whose message can be cancelled.
*/
@NoFactoryMethod
public interface MessageCancellable {

/**
Expand Down
Loading

0 comments on commit 5e41643

Please sign in to comment.