Added a constructor and made the fields package-private
This commit is contained in:
parent
07fa6615f8
commit
5ff5f1b0d5
1 changed files with 9 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue