mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-13 12:38:58 +00:00
35 lines
595 B
Java
35 lines
595 B
Java
package com.earth2me.essentials.textreader;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
|
|
public class SimpleTextInput implements IText
|
|
{
|
|
private final transient List<String> lines = new ArrayList<String>();
|
|
|
|
public SimpleTextInput (final String input) {
|
|
lines.add(input);
|
|
}
|
|
|
|
@Override
|
|
public List<String> getLines()
|
|
{
|
|
return lines;
|
|
}
|
|
|
|
@Override
|
|
public List<String> getChapters()
|
|
{
|
|
return Collections.emptyList();
|
|
}
|
|
|
|
@Override
|
|
public Map<String, Integer> getBookmarks()
|
|
{
|
|
return Collections.emptyMap();
|
|
}
|
|
|
|
}
|