From 5ff5f1b0d5435d7e5745335ed5f612bcbd66000a Mon Sep 17 00:00:00 2001 From: jk-5 Date: Mon, 30 Dec 2013 21:58:53 +0100 Subject: [PATCH] Added a constructor and made the fields package-private --- .../minecraftforge/common/network/ForgeMessage.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraftforge/common/network/ForgeMessage.java b/src/main/java/net/minecraftforge/common/network/ForgeMessage.java index 2eea62776..8a576864b 100644 --- a/src/main/java/net/minecraftforge/common/network/ForgeMessage.java +++ b/src/main/java/net/minecraftforge/common/network/ForgeMessage.java @@ -13,9 +13,16 @@ import io.netty.buffer.ByteBuf; public abstract class ForgeMessage { public static class DimensionRegisterMessage extends ForgeMessage { /** The dimension ID to register on client */ - public int dimensionId; + int dimensionId; /** The provider ID to register with dimension on client */ - public int providerId; + int providerId; + + public DimensionRegisterMessage(int dimensionId, int providerId) + { + this.dimensionId = dimensionId; + this.providerId = providerId; + } + @Override void toBytes(ByteBuf bytes) {