Files
PrimalSorcery/build/tmp/recompileMc/sources/net/minecraft/util/TupleIntJsonSerializable.java
Mohammad-Ali Minaie b86dedad2f base mod created
2018-10-08 09:07:47 -04:00

39 lines
934 B
Java

package net.minecraft.util;
public class TupleIntJsonSerializable
{
private int integerValue;
private IJsonSerializable jsonSerializableValue;
/**
* Gets the integer value stored in this tuple.
*/
public int getIntegerValue()
{
return this.integerValue;
}
/**
* Sets this tuple's integer value to the given value.
*/
public void setIntegerValue(int integerValueIn)
{
this.integerValue = integerValueIn;
}
/**
* Gets the JsonSerializable value stored in this tuple.
*/
public <T extends IJsonSerializable> T getJsonSerializableValue()
{
return (T)this.jsonSerializableValue;
}
/**
* Sets this tuple's JsonSerializable value to the given value.
*/
public void setJsonSerializableValue(IJsonSerializable jsonSerializableValueIn)
{
this.jsonSerializableValue = jsonSerializableValueIn;
}
}