Merge pull request #908 from jk-5/patch-1
Add constructors to DimensionRegisterMessage
This commit is contained in:
commit
ccee30b15e
1 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,14 @@ public abstract class ForgeMessage {
|
||||||
int dimensionId;
|
int dimensionId;
|
||||||
/** The provider ID to register with dimension on client */
|
/** The provider ID to register with dimension on client */
|
||||||
int providerId;
|
int providerId;
|
||||||
|
|
||||||
|
public DimensionRegisterMessage(){}
|
||||||
|
public DimensionRegisterMessage(int dimensionId, int providerId)
|
||||||
|
{
|
||||||
|
this.dimensionId = dimensionId;
|
||||||
|
this.providerId = providerId;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
void toBytes(ByteBuf bytes)
|
void toBytes(ByteBuf bytes)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue