diff --git a/src/main/java/org/spongepowered/api/entity/living/player/tab/TabListEntry.java b/src/main/java/org/spongepowered/api/entity/living/player/tab/TabListEntry.java index 699bc4cec6..571666f1b2 100644 --- a/src/main/java/org/spongepowered/api/entity/living/player/tab/TabListEntry.java +++ b/src/main/java/org/spongepowered/api/entity/living/player/tab/TabListEntry.java @@ -167,6 +167,25 @@ static Builder builder() { */ TabListEntry setListed(boolean listed); + /** + * Gets the weight of this entry. + * Entries are first sorted by their weight in + * descending order. + * + * @return The weight of this entry + */ + int weight(); + + /** + * Sets the weight of this entry. + * Entries are first sorted by their weight in + * descending order. + * + * @param weight The new weight + * @return This entry, for chaining + */ + TabListEntry setWeight(int weight); + /** * Represents a builder class to create mutable {@link TabListEntry}s. * @@ -230,6 +249,15 @@ interface Builder extends org.spongepowered.api.util.Builder