Added a constructor and made the fields package-private

This commit is contained in:
jk-5 committed 2013-12-30 21:58:53 +01:00
1 parent 07fa6615f8
commit 5ff5f1b0d5
1 file changed
+9 -2
@@ -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)
{