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 29b92a5 commit d0210fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,4 +395,9 @@ public HoverEvent<HoverEvent.ShowEntity> asHoverEvent(final UnaryOperator<HoverE

return values;
}

@Override
public net.kyori.adventure.text.Component teamRepresentation() {
return net.kyori.adventure.text.Component.text(this.shadow$getUUID().toString());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import static java.util.Objects.requireNonNull;

import com.google.common.base.Preconditions;
import net.kyori.adventure.text.Component;
import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.ai.attributes.AttributeInstance;
Expand Down Expand Up @@ -56,11 +55,6 @@ public abstract class LivingEntityMixin_API extends EntityMixin_API implements L
@Shadow public abstract boolean addEffect(MobEffectInstance p_195064_1_);
// @formatter:on

@Override
public Component teamRepresentation() {
return Component.text(this.shadow$getUUID().toString());
}

@Override
public Optional<Attribute> attribute(final AttributeType type) {
Preconditions.checkNotNull(type, "AttributeType cannot be null");
Expand Down

0 comments on commit d0210fc

Please sign in to comment.