| 1 | package net.minecraft.scoreboard;
|
| 2 |
|
| 3 | import com.google.common.collect.Maps;
|
| 4 | import java.util.List;
|
| 5 | import java.util.Map;
|
| 6 | import net.minecraft.entity.player.EntityPlayer;
|
| 7 | import net.minecraft.util.EnumChatFormatting;
|
| 8 |
|
| 9 | public interface IScoreObjectiveCriteria
|
| 10 | {
|
| 11 | Map<String, IScoreObjectiveCriteria> INSTANCES = Maps.<String, IScoreObjectiveCriteria>newHashMap();
|
| 12 | IScoreObjectiveCriteria DUMMY = new ScoreDummyCriteria("dummy");
|
| 13 | IScoreObjectiveCriteria TRIGGER = new ScoreDummyCriteria("trigger");
|
| 14 | IScoreObjectiveCriteria deathCount = new ScoreDummyCriteria("deathCount");
|
| 15 | IScoreObjectiveCriteria playerKillCount = new ScoreDummyCriteria("playerKillCount");
|
| 16 | IScoreObjectiveCriteria totalKillCount = new ScoreDummyCriteria("totalKillCount");
|
| 17 | IScoreObjectiveCriteria health = new ScoreHealthCriteria("health");
|
| 18 | IScoreObjectiveCriteria[] field_178792_h = new IScoreObjectiveCriteria[] {new GoalColor("teamkill.", EnumChatFormatting.BLACK), new GoalColor("teamkill.", EnumChatFormatting.DARK_BLUE), new GoalColor("teamkill.", EnumChatFormatting.DARK_GREEN), new GoalColor("teamkill.", EnumChatFormatting.DARK_AQUA), new GoalColor("teamkill.", EnumChatFormatting.DARK_RED), new GoalColor("teamkill.", EnumChatFormatting.DARK_PURPLE), new GoalColor("teamkill.", EnumChatFormatting.GOLD), new GoalColor("teamkill.", EnumChatFormatting.GRAY), new GoalColor("teamkill.", EnumChatFormatting.DARK_GRAY), new GoalColor("teamkill.", EnumChatFormatting.BLUE), new GoalColor("teamkill.", EnumChatFormatting.GREEN), new GoalColor("teamkill.", EnumChatFormatting.AQUA), new GoalColor("teamkill.", EnumChatFormatting.RED), new GoalColor("teamkill.", EnumChatFormatting.LIGHT_PURPLE), new GoalColor("teamkill.", EnumChatFormatting.YELLOW), new GoalColor("teamkill.", EnumChatFormatting.WHITE)};
|
| 19 | IScoreObjectiveCriteria[] field_178793_i = new IScoreObjectiveCriteria[] {new GoalColor("killedByTeam.", EnumChatFormatting.BLACK), new GoalColor("killedByTeam.", EnumChatFormatting.DARK_BLUE), new GoalColor("killedByTeam.", EnumChatFormatting.DARK_GREEN), new GoalColor("killedByTeam.", EnumChatFormatting.DARK_AQUA), new GoalColor("killedByTeam.", EnumChatFormatting.DARK_RED), new GoalColor("killedByTeam.", EnumChatFormatting.DARK_PURPLE), new GoalColor("killedByTeam.", EnumChatFormatting.GOLD), new GoalColor("killedByTeam.", EnumChatFormatting.GRAY), new GoalColor("killedByTeam.", EnumChatFormatting.DARK_GRAY), new GoalColor("killedByTeam.", EnumChatFormatting.BLUE), new GoalColor("killedByTeam.", EnumChatFormatting.GREEN), new GoalColor("killedByTeam.", EnumChatFormatting.AQUA), new GoalColor("killedByTeam.", EnumChatFormatting.RED), new GoalColor("killedByTeam.", EnumChatFormatting.LIGHT_PURPLE), new GoalColor("killedByTeam.", EnumChatFormatting.YELLOW), new GoalColor("killedByTeam.", EnumChatFormatting.WHITE)};
|
| 20 |
|
| 21 | String getName();
|
| 22 |
|
| 23 | int setScore(List<EntityPlayer> p_96635_1_);
|
| 24 |
|
| 25 | boolean isReadOnly();
|
| 26 |
|
| 27 | IScoreObjectiveCriteria.EnumRenderType getRenderType();
|
| 28 |
|
| 29 | public static enum EnumRenderType
|
| 30 | {
|
| 31 | INTEGER("integer"),
|
| 32 | HEARTS("hearts");
|
| 33 |
|
| 34 | private static final Map<String, IScoreObjectiveCriteria.EnumRenderType> field_178801_c = Maps.<String, IScoreObjectiveCriteria.EnumRenderType>newHashMap();
|
| 35 | private final String field_178798_d;
|
| 36 |
|
| 37 | private EnumRenderType(String p_i45548_3_)
|
| 38 | {
|
| 39 | this.field_178798_d = p_i45548_3_;
|
| 40 | }
|
| 41 |
|
| 42 | public String func_178796_a()
|
| 43 | {
|
| 44 | return this.field_178798_d;
|
| 45 | }
|
| 46 |
|
| 47 | public static IScoreObjectiveCriteria.EnumRenderType func_178795_a(String p_178795_0_)
|
| 48 | {
|
| 49 | IScoreObjectiveCriteria.EnumRenderType iscoreobjectivecriteria$enumrendertype = (IScoreObjectiveCriteria.EnumRenderType)field_178801_c.get(p_178795_0_);
|
| 50 | return iscoreobjectivecriteria$enumrendertype == null ? INTEGER : iscoreobjectivecriteria$enumrendertype;
|
| 51 | }
|
| 52 |
|
| 53 | static {
|
| 54 | for (IScoreObjectiveCriteria.EnumRenderType iscoreobjectivecriteria$enumrendertype : values())
|
| 55 | {
|
| 56 | field_178801_c.put(iscoreobjectivecriteria$enumrendertype.func_178796_a(), iscoreobjectivecriteria$enumrendertype);
|
| 57 | }
|
| 58 | }
|
| 59 | }
|
| 60 | }
|
| 61 |
|