Пример #1
0
  public FieldSign(Block block, String[] lines, Player player) {
    if (!SignHelper.isSign(block)) {
      valid = false;
      return;
    }

    valid = extractData(block, lines);
    playerName = player.getName();
  }
Пример #2
0
  public FieldSign(Block block) {
    if (!SignHelper.isSign(block)) {
      valid = false;
      return;
    }

    sign = ((Sign) block.getState());

    String[] lines = sign.getLines();

    valid = extractData(block, lines);
  }