GoalColor .java

net.minecraft.scoreboard.GoalColor (class): members: goalName, isReadOnly, setScore, getRenderType, getName. imports: EnumChatFormatting, EntityPlayer.

net.minecraft.scoreboardclass37 linescommon840 B

Implements

API Surface (4)

String getName()
int setScore(List<EntityPlayer> p_96635_1_)
boolean isReadOnly()
IScoreObjectiveCriteria.EnumRenderType getRenderType()

Fields & Constants (1)

goalName

Code Graph: Dependencies (3)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

GoalColor.java37 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.scoreboard;
2
3
import java.util.List;
4
import net.minecraft.entity.player.EntityPlayer;
5
import net.minecraft.util.EnumChatFormatting;
6
7
public class GoalColor implements IScoreObjectiveCriteria
8
{
9
    private final String goalName;
10
11
    public GoalColor(String p_i45549_1_, EnumChatFormatting p_i45549_2_)
12
    {
13
        this.goalName = p_i45549_1_ + p_i45549_2_.getFriendlyName();
14
        IScoreObjectiveCriteria.INSTANCES.put(this.goalName, this);
15
    }
16
17
    public String getName()
18
    {
19
        return this.goalName;
20
    }
21
22
    public int setScore(List<EntityPlayer> p_96635_1_)
23
    {
24
        return 0;
25
    }
26
27
    public boolean isReadOnly()
28
    {
29
        return false;
30
    }
31
32
    public IScoreObjectiveCriteria.EnumRenderType getRenderType()
33
    {
34
        return IScoreObjectiveCriteria.EnumRenderType.INTEGER;
35
    }
36
}
37

Deobfuscated MCP 1.8.9 source of GoalColor from Marcelektro/MavenMCP-1.8.9 (net/minecraft/scoreboard/GoalColor.java), stored verbatim.