package net.tylermurphy.Minecraft.UI.Text; import java.util.ArrayList; import java.util.List; public class Word { private List characters = new ArrayList(); private double width = 0; private double fontSize; protected Word(double fontSize){ this.fontSize = fontSize; } protected void addCharacter(Character character){ characters.add(character); width += character.getxAdvance() * fontSize; } protected List getCharacters(){ return characters; } protected double getWordWidth(){ return width; } }