Skip to content

Commit 8d63f39

Browse files
committed
Make codegen stuff a bit more developer friendly
1 parent b9981ef commit 8d63f39

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tools/generate-entity-ids.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

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

@@ -67,10 +68,8 @@
6768
namespace pocketmine\network\mcpe\protocol\types\entity;
6869
6970
/**
70-
* This file is directly generated from the entity definitions provided by the client. The entities listed in this file
71-
* are expected to always have the same IDs.
72-
*
7371
* This file is automatically generated; do NOT edit it by hand.
72+
* Regenerate it by running tools/generate-entity-ids.php
7473
*/
7574
final class EntityIds{
7675

tools/generate-level-sound-ids.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

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

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

0 commit comments

Comments
 (0)