Мой текущий код выглядит следующим образом:
Код: Выделить всё
@EventHandler(ignoreCancelled = true)
void onPlayerInteract(PlayerInteractEvent event) {
//Check that the player clicked a block
if (event.getAction() != Action.RIGHT_CLICK_BLOCK) {
return;
}
//Check that the block is a sign
Block block = event.getClickedBlock();
if (block == null) {
return;
}
if (!(block.getState() instanceof Sign)) {
return;
}
//Here is where I need to get the clicked face of the sign, and return a given
//line on the sign as a String
}
Подробнее здесь: https://stackoverflow.com/questions/778 ... double-sid