TupleIntJsonSerializable .java

net.minecraft.util.TupleIntJsonSerializable (class): members: getJsonSerializableValue, setJsonSerializableValue, jsonSerializableValue, getIntegerValue.

net.minecraft.utilclass37 linescommon858 B

API Surface (4)

int getIntegerValue()
void setIntegerValue(int integerValueIn)
<T extends IJsonSerializable> T getJsonSerializableValue()
void setJsonSerializableValue(IJsonSerializable jsonSerializableValueIn)

Fields & Constants (2)

integerValue
jsonSerializableValue

Code Graph: Dependencies (1)

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

Full Source

TupleIntJsonSerializable.java37 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.util;
2
3
public class TupleIntJsonSerializable
4
{
5
    private int integerValue;
6
    private IJsonSerializable jsonSerializableValue;
7
8
    /**
9
     * Gets the integer value stored in this tuple.
10
     */
11
    public int getIntegerValue()
12
    {
13
        return this.integerValue;
14
    }
15
16
    /**
17
     * Sets this tuple's integer value to the given value.
18
     */
19
    public void setIntegerValue(int integerValueIn)
20
    {
21
        this.integerValue = integerValueIn;
22
    }
23
24
    public <T extends IJsonSerializable> T getJsonSerializableValue()
25
    {
26
        return (T)this.jsonSerializableValue;
27
    }
28
29
    /**
30
     * Sets this tuple's JsonSerializable value to the given value.
31
     */
32
    public void setJsonSerializableValue(IJsonSerializable jsonSerializableValueIn)
33
    {
34
        this.jsonSerializableValue = jsonSerializableValueIn;
35
    }
36
}
37

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