quick fix : Redundant 'throws' clause

This commit is contained in:
Alexdoru committed 2023-01-25 22:59:05 +01:00
1 parent 6a88c6a5e1
commit 1528c21fae
3 files changed
+5 -5

No files matched your search

@@ -248,11 +248,11 @@ public class ArmorExtended implements IInventory {
@Override
public void closeInventory() {}
public void writeInventoryToStream(ByteBuf os) throws IOException {
public void writeInventoryToStream(ByteBuf os) {
for (int i = 0; i < inventory.length; i++) ByteBufUtils.writeItemStack(os, inventory[i]);
}
public void readInventoryFromStream(ByteBuf is) throws IOException {
public void readInventoryFromStream(ByteBuf is) {
for (int i = 0; i < inventory.length; i++) inventory[i] = ByteBufUtils.readItemStack(is);
}
}
@@ -171,11 +171,11 @@ public class KnapsackInventory implements IInventory {
@Override
public void closeInventory() {}
public void writeInventoryToStream(ByteBuf os) throws IOException {
public void writeInventoryToStream(ByteBuf os) {
for (int i = 0; i < 27; i++) ByteBufUtils.writeItemStack(os, inventory[i]);
}
public void readInventoryFromStream(ByteBuf is) throws IOException {
public void readInventoryFromStream(ByteBuf is) {
for (int i = 0; i < 27; i++) inventory[i] = ByteBufUtils.readItemStack(is);
}
}
@@ -59,7 +59,7 @@ public class PacketPipeline extends MessageToMessageCodec<FMLProxyPacket, Abstra
// In line encoding of the packet, including discriminator setting
@Override
protected void encode(ChannelHandlerContext ctx, AbstractPacket msg, List<Object> out) throws Exception {
protected void encode(ChannelHandlerContext ctx, AbstractPacket msg, List<Object> out) {
ByteBuf buffer = Unpooled.buffer();
Class<? extends AbstractPacket> clazz = msg.getClass();
if (!this.packets.contains(msg.getClass())) {