mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-28 07:35:44 +00:00
Moved sources and reverted mappings
This commit is contained in:
1 parent
eca0729231
commit
12a0722e28
106 files changed
+29
-29
No files matched your search
@@ -0,0 +1,27 @@
|
||||
package mantle.client.pages;
|
||||
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import org.w3c.dom.Element;
|
||||
import org.w3c.dom.NodeList;
|
||||
|
||||
public class TextPage extends BookPage
|
||||
{
|
||||
String text;
|
||||
|
||||
@Override
|
||||
public void readPageFromXML (Element element)
|
||||
{
|
||||
NodeList nodes = element.getElementsByTagName("text");
|
||||
if (nodes != null)
|
||||
text = nodes.item(0).getTextContent();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderContentLayer (int localWidth, int localHeight, boolean IsTranslatable)
|
||||
{
|
||||
if (IsTranslatable)
|
||||
text = StatCollector.translateToLocal(text);
|
||||
manual.fonts.drawSplitString(text, localWidth, localHeight, 178, 0);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user