*
*/
public class ForgeEventHelper {
public static Packet130UpdateSign onSignChange(NetServerHandler handler, Packet130UpdateSign pack) {
SignChangeEvent ev = new SignChangeEvent(pack.xPosition, pack.yPosition, pack.zPosition, handler.getPlayer(), pack.signLines);
MinecraftForge.EVENT_BUS.post(ev);
if (ev.isCanceled()) {
return null;
}
pack.signLines = ev.lines;
return pack;