|
|
@ -3,6 +3,8 @@ package net.minecraft.src;
|
|
|
|
import java.io.DataInput;
|
|
|
|
import java.io.DataInput;
|
|
|
|
import java.io.DataOutput;
|
|
|
|
import java.io.DataOutput;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
|
|
|
|
|
|
|
import org.mcmodule.math.BigInteger;
|
|
|
|
import org.mcmodule.math.BigInteger;
|
|
|
|
import java.util.Collection;
|
|
|
|
import java.util.Collection;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashMap;
|
|
|
@ -326,8 +328,17 @@ public class NBTTagCompound extends NBTBase
|
|
|
|
if(value == null) value = BigInteger.ZERO;
|
|
|
|
if(value == null) value = BigInteger.ZERO;
|
|
|
|
setString(key, value.toString());
|
|
|
|
setString(key, value.toString());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setBigDecimal(String key, BigDecimal value) {
|
|
|
|
|
|
|
|
if(value == null) value = BigDecimal.ZERO;
|
|
|
|
|
|
|
|
setString(key, value.toString());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public BigInteger getBigInteger(String key) {
|
|
|
|
public BigInteger getBigInteger(String key) {
|
|
|
|
return new BigInteger(getString(key));
|
|
|
|
return new BigInteger(getString(key));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public BigDecimal getBigDecimal(String key) {
|
|
|
|
|
|
|
|
return new BigDecimal(getString(key));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|