Skip to content

Commit

Permalink
Command Parameter typeID changes for 1.18.30 (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-min committed Apr 23, 2022
1 parent 4f50214 commit 9d3cc87
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/AvailableCommandsPacket.php
Expand Up @@ -43,21 +43,24 @@ class AvailableCommandsPacket extends DataPacket implements ClientboundPacket{
public const ARG_TYPE_WILDCARD_INT = 0x05;
public const ARG_TYPE_OPERATOR = 0x06;
public const ARG_TYPE_TARGET = 0x07;
public const ARG_TYPE_WILDCARD_TARGET = 0x08;
public const ARG_TYPE_WILDCARD_TARGET = 0x09;

public const ARG_TYPE_FILEPATH = 0x10;

public const ARG_TYPE_STRING = 0x20;
public const ARG_TYPE_EQUIPMENT_SLOT = 0x25;

public const ARG_TYPE_POSITION = 0x28;
public const ARG_TYPE_STRING = 0x26;

public const ARG_TYPE_MESSAGE = 0x2c;
public const ARG_TYPE_INT_POSITION = 0x2e;
public const ARG_TYPE_POSITION = 0x2f;

public const ARG_TYPE_RAWTEXT = 0x2e;
public const ARG_TYPE_MESSAGE = 0x32;

public const ARG_TYPE_JSON = 0x32;
public const ARG_TYPE_RAWTEXT = 0x34;

public const ARG_TYPE_COMMAND = 0x3f;
public const ARG_TYPE_JSON = 0x38;

public const ARG_TYPE_COMMAND = 0x45;

/**
* Enums are a little different: they are composed as follows:
Expand Down

0 comments on commit 9d3cc87

Please sign in to comment.