    001package net.minecraft.util;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005import java.lang.reflect.Field;
    006import java.lang.reflect.Modifier;
    007
    008@SideOnly(Side.CLIENT)
    009public abstract class ValueObject
    010{
    011    public String toString()
    012    {
    013        StringBuilder stringbuilder = new StringBuilder("{");
    014        Field[] afield = this.getClass().getFields();
    015        int i = afield.length;
    016
    017        for (int j = 0; j < i; ++j)
    018        {
    019            Field field = afield[j];
    020
    021            if (!func_96394_a(field))
    022            {
    023                try
    024                {
    025                    stringbuilder.append(field.getName()).append("=").append(field.get(this)).append(" ");
    026                }
    027                catch (IllegalAccessException illegalaccessexception)
    028                {
    029                    ;
    030                }
    031            }
    032        }
    033
    034        stringbuilder.deleteCharAt(stringbuilder.length() - 1);
    035        stringbuilder.append('}');
    036        return stringbuilder.toString();
    037    }
    038
    039    private static boolean func_96394_a(Field par0Field)
    040    {
    041        return Modifier.isStatic(par0Field.getModifiers());
    042    }
    043}