Class PokePasteReader
java.lang.Object
com.pixelmonmod.pixelmon.api.util.PokePasteReader
Utility class for reading PokePaste.es links or files
To read a pokepaste use
from(File) or from(String)-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a list of Pokemon from the URL or file that has been readstatic PokePasteReaderReads a pokepaste from the given filestatic PokePasteReaderReads a pokepaste from the URL provided - will append '/raw' if not already theregetLines()Reads the lines from the pokepaste
-
Method Details
-
getLines
Reads the lines from the pokepaste- Returns:
- The lines of text
-
build
Creates a list of Pokemon from the URL or file that has been read- Returns:
- The created pokemon
- Throws:
PokemonImportException
-
from
Reads a pokepaste from the URL provided - will append '/raw' if not already there- Parameters:
paste- The paste URL- Returns:
- The reader instance
-
from
Reads a pokepaste from the given file- Parameters:
file- The file to read- Returns:
- The reader instance
-