Skip to content

Commit

Permalink
Move TeamMember from Living to Entity
Browse files Browse the repository at this point in the history
  • Loading branch information
aromaa committed Oct 12, 2023
1 parent 2729a88 commit 46c9301
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/java/org/spongepowered/api/entity/Entity.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.spongepowered.api.effect.VanishState;
import org.spongepowered.api.event.cause.entity.damage.source.DamageSource;
import org.spongepowered.api.projectile.source.EntityProjectileSource;
import org.spongepowered.api.scoreboard.TeamMember;
import org.spongepowered.api.util.AABB;
import org.spongepowered.api.util.Identifiable;
import org.spongepowered.api.util.RandomProvider;
Expand Down Expand Up @@ -78,7 +79,7 @@
*/
@DoNotStore
public interface Entity extends Identifiable, HoverEventSource<HoverEvent.ShowEntity>, Locatable, EntityProjectileSource, Sound.Emitter,
SerializableDataHolder.Mutable, RandomProvider {
SerializableDataHolder.Mutable, RandomProvider, TeamMember {

/**
* Gets the {@link EntityType}.
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/org/spongepowered/api/entity/living/Living.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.spongepowered.api.entity.attribute.Attribute;
import org.spongepowered.api.entity.attribute.AttributeHolder;
import org.spongepowered.api.item.inventory.ItemStackSnapshot;
import org.spongepowered.api.scoreboard.TeamMember;
import org.spongepowered.math.imaginary.Quaterniond;
import org.spongepowered.math.vector.Vector3d;

Expand All @@ -44,10 +43,9 @@
* Represents an entity that is living, and therefor can be damaged.
*
* <p>Living entities can have {@link PotionEffect}s, breathing air
* under water, custom names, be meaningfully added to teams, hold {@link Attribute}s, and become
* invisible.</p>
* under water, custom names, hold {@link Attribute}s, and become invisible.</p>
*/
public interface Living extends AttributeHolder, Entity, TeamMember {
public interface Living extends AttributeHolder, Entity {

/**
* {@link Keys#ABSORPTION}
Expand Down

0 comments on commit 46c9301

Please sign in to comment.