So I have a Sign and it's in the Block object... What do I have to do to get the text off of the sign, and effectively cast it to the Sign class? Ive tried this: Code: if(clickedBlock.getType() == Material.SIGN) { Sign sign = (Sign) clickedBlock.getState(); String[] lines = sign.getLines(); } Since sign extends block state, this should would. But it doesnt?
ive done it with sending messages to get what line 1 2 3 or 4 say send a message with the string being sign.getLine(0); or sign.getLine(1); or sign.getLine(2); sign.getLine(3);