public static class Handler extends WorldMessageServer.Handler<DeviceChangeExposureMessage> {
@Override
protected IMessage handleMessage(DeviceChangeExposureMessage message, MessageContext ctx, TileEntity te) {
if(te instanceof TileEntityBeefBase) {
TileEntityBeefBase beefTe = (TileEntityBeefBase)te;
if(message.increment) {
beefTe.incrSide(message.side);
}
else {
beefTe.decrSide(message.side);
}
}
else {
BRLog.warning("Received SideChangeMessage for TE at %d, %d, %d, but it was not a TE with an iterable side exposure!", te.xCoord, te.yCoord, te.zCoord);
}