quick fix : Redundant 'throws' clause

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent fc54dde7ce
commit 2f47fd5545
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())) {