Skip to content

Commit

Permalink
Make codegen stuff a bit more developer friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Mar 13, 2024
1 parent b9981ef commit 8d63f39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions tools/generate-entity-ids.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

if(count($argv) !== 2){
fwrite(STDERR, "Required arguments: path to entity ID mapping file\n");
fwrite(STDERR, "Hint: Input file is a JSON file like entity_id_map.json in pmmp/BedrockData\n");
exit(1);
}

Expand Down Expand Up @@ -67,10 +68,8 @@
namespace pocketmine\network\mcpe\protocol\types\entity;
/**
* This file is directly generated from the entity definitions provided by the client. The entities listed in this file
* are expected to always have the same IDs.
*
* This file is automatically generated; do NOT edit it by hand.
* Regenerate it by running tools/generate-entity-ids.php
*/
final class EntityIds{
Expand Down
4 changes: 2 additions & 2 deletions tools/generate-level-sound-ids.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

if(count($argv) !== 2){
fwrite(STDERR, "Required arguments: path to level sound event ID mapping file\n");
fwrite(STDERR, "Hint: Input file is a JSON file like level_sound_id_map.json in pmmp/BedrockData\n");
exit(1);
}

Expand Down Expand Up @@ -152,9 +153,8 @@
namespace pocketmine\network\mcpe\protocol\types;
/**
* This file is generated from level_sound_id_map.json in BedrockData.
*
* This file is automatically generated; do NOT edit it by hand.
* Regenerate it by running tools/generate-level-sound-ids.php
*/
final class LevelSoundEvent{
private function __construct(){
Expand Down

0 comments on commit 8d63f39

Please sign in to comment.