Created
August 25, 2010 04:53
-
-
Save DylanLukes/548881 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch (tagType) { | |
case TAG_Byte: | |
parsedTag = [NBTByte newTagWithName:tagName]; | |
[(NBTByte*)parsedTag setTagValue:[self readByte]]; | |
break; | |
case TAG_Short: | |
parsedTag = [NBTShort newTagWithName:tagName]; | |
[(NBTShort*)parsedTag setTagValue:[self readShort]]; | |
break; | |
case TAG_Int: | |
parsedTag = [NBTInt newTagWithName:tagName]; | |
[(NBTInt*)parsedTag setTagValue:[self readInt]]; | |
break; | |
case TAG_Long: | |
parsedTag = [NBTLong newTagWithName:tagName]; | |
[(NBTLong*)parsedTag setTagValue:[self readLong]]; | |
break; | |
case TAG_Float: | |
parsedTag = [NBTFloat newTagWithName:tagName]; | |
[(NBTFloat*)parsedTag setTagValue:[self readFloat]]; | |
break; | |
case TAG_Double: | |
parsedTag = [NBTDouble newTagWithName:tagName]; | |
[(NBTDouble*)parsedTag setTagValue:[self readDouble]]; | |
break; | |
case TAG_String: | |
parsedTag = [NBTString newTagWithName:tagName]; | |
[(NBTString*)parsedTag setTagValue:[self readPString]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment