Exemplo n.º 1
0
        public override string ToString()
        {
            StringBuilder stringBuilder = new StringBuilder();

            if (IsTag)
            {
                stringBuilder.Append('#');
            }
            stringBuilder.Append(Resource.ToString());
            if (BlockStates != null)
            {
                stringBuilder.Append('[');
                string s = "";
                foreach (KeyValuePair <string, string> BlockState in BlockStates)
                {
                    s += BlockState.Key + "=" + BlockState.Value + ", ";
                }
                stringBuilder.Append(s.Trim(',', ' '));
                stringBuilder.Append(']');
            }
            if (Nbt != null)
            {
                stringBuilder.Append(Nbt.ToSnbt());
            }
            return(stringBuilder.ToString());
        }
Exemplo n.º 2
0
        public override string ToString()
        {
            StringBuilder stringBuilder = new StringBuilder();

            if (IsTag)
            {
                stringBuilder.Append('#');
            }
            stringBuilder.Append(Resource.ToString());
            if (Nbt != null)
            {
                stringBuilder.Append(Nbt.ToSnbt());
            }
            return(stringBuilder.ToString());
        }