Skip to content

Commit

Permalink
Remove achievements
Browse files Browse the repository at this point in the history
  • Loading branch information
kashike authored and stephan-gh committed Jun 9, 2017
1 parent b2dd9d1 commit 685c0d7
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 421 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ sortClassFields {
add 'main', 'org.spongepowered.api.service.economy.transaction.TransactionTypes'
add 'main', 'org.spongepowered.api.statistic.Statistics'
add 'main', 'org.spongepowered.api.statistic.StatisticTypes'
add 'main', 'org.spongepowered.api.statistic.achievement.Achievements'
add 'main', 'org.spongepowered.api.text.chat.ChatTypes'
add 'main', 'org.spongepowered.api.text.chat.ChatVisibilities'
add 'main', 'org.spongepowered.api.text.format.TextColors'
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/org/spongepowered/api/CatalogTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
import org.spongepowered.api.service.economy.transaction.TransactionType;
import org.spongepowered.api.statistic.Statistic;
import org.spongepowered.api.statistic.StatisticType;
import org.spongepowered.api.statistic.achievement.Achievement;
import org.spongepowered.api.text.chat.ChatType;
import org.spongepowered.api.text.chat.ChatVisibility;
import org.spongepowered.api.text.format.TextColor;
Expand Down Expand Up @@ -94,8 +93,6 @@ public final class CatalogTypes {

// SORTFIELDS:ON

public static final Class<Achievement> ACHIEVEMENT = Achievement.class;

public static final Class<AITaskType> AI_TASK_TYPE = AITaskType.class;

public static final Class<ArmorType> ARMOR_TYPE = ArmorType.class;
Expand Down
9 changes: 0 additions & 9 deletions src/main/java/org/spongepowered/api/data/key/Keys.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
import org.spongepowered.api.item.merchant.TradeOffer;
import org.spongepowered.api.profile.GameProfile;
import org.spongepowered.api.statistic.Statistic;
import org.spongepowered.api.statistic.achievement.Achievement;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.util.Axis;
import org.spongepowered.api.util.Color;
Expand Down Expand Up @@ -113,14 +112,6 @@ public final class Keys {
*/
public static final Key<Value<Double>> ABSORPTION = KeyFactory.fake("ABSORPTION");

/**
* Represents the {@link Key} for the {@link Achievement}s earned by a
* {@link Player}.
*
* @see AchievementData#achievements()
*/
public static final Key<SetValue<Achievement>> ACHIEVEMENTS = KeyFactory.fake("ACHIEVEMENTS");

/**
* Represents the {@link Key} for the "affecting spawning" state of
* {@link Player}s.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
import org.spongepowered.api.item.inventory.ItemStack;
import org.spongepowered.api.item.merchant.TradeOffer;
import org.spongepowered.api.statistic.Statistic;
import org.spongepowered.api.statistic.achievement.Achievement;
import org.spongepowered.api.world.weather.Weather;

/**
Expand All @@ -84,11 +83,6 @@
*/
public final class CatalogEntityData {

/**
* The {@link AchievementData} class that can be applied to
* {@link Player}s.
*/
public static final Class<AchievementData> ACHIEVEMENT_DATA = AchievementData.class;
/**
* The {@link AgeableData} that represents age determining whether an
* {@link Entity} is a child or an adult. Always exists for
Expand Down Expand Up @@ -383,9 +377,8 @@ public final class CatalogEntityData {
*/
public static final Class<SneakingData> SNEAKING_DATA = SneakingData.class;
/**
* Represents the container of all known applied {@link Statistic}s and
* {@link Achievement}s. Usually applicable to {@link Player}s and
* {@link User}s.
* Represents the container of all known applied {@link Statistic}s. Usually
* applicable to {@link Player}s and {@link User}s.
*/
public static final Class<StatisticData> STATISTIC_DATA = StatisticData.class;
/**
Expand Down

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions src/main/java/org/spongepowered/api/entity/living/player/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
package org.spongepowered.api.entity.living.player;

import org.spongepowered.api.data.DataHolder;
import org.spongepowered.api.data.manipulator.mutable.entity.AchievementData;
import org.spongepowered.api.data.manipulator.mutable.entity.StatisticData;
import org.spongepowered.api.entity.ArmorEquipable;
import org.spongepowered.api.entity.Tamer;
Expand Down Expand Up @@ -71,15 +70,6 @@ public interface User extends DataHolder, ArmorEquipable, Tamer, Subject {
*/
Optional<Player> getPlayer();

/**
* Gets a copy of the {@link AchievementData} for this user.
*
* @return A copy of the achievement data
*/
default AchievementData getAchievementData() {
return get(AchievementData.class).get();
}

/**
* Gets a copy of the {@link StatisticData} for this user.
*
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 685c0d7

Please sign in to comment.