1011101210131014101510161017
event.setSendType(Session.SendType.GAME_ONLY); } @EventHandler public void onEntityRemoveEffect(EntityRemoveEffectEvent event) { event.getMessages().add(new EntityRemoveEffectMessage(event.getEntity().getId(), (byte) event.getEffect().getId())); }
42434445464748
@Override public EntityRemoveEffectMessage decode(ByteBuf buffer) throws IOException { int id = buffer.readInt(); byte effect = buffer.readByte(); return new EntityRemoveEffectMessage(id, effect); }