mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 22:45:28 +00:00
Rename ItemTypeIds -> ItemTypeNames for consistency's sake
This commit is contained in:
parent
d9c61f0492
commit
e44a291697
@ -53,7 +53,7 @@ function generateItemIds(ItemTypeDictionary $dictionary) : void{
|
|||||||
}
|
}
|
||||||
asort($ids, SORT_STRING);
|
asort($ids, SORT_STRING);
|
||||||
|
|
||||||
$file = ErrorToExceptionHandler::trapAndRemoveFalse(fn() => fopen(dirname(__DIR__) . '/src/data/bedrock/item/ItemTypeIds.php', 'wb'));
|
$file = ErrorToExceptionHandler::trapAndRemoveFalse(fn() => fopen(dirname(__DIR__) . '/src/data/bedrock/item/ItemTypeNames.php', 'wb'));
|
||||||
|
|
||||||
fwrite($file, <<<'HEADER'
|
fwrite($file, <<<'HEADER'
|
||||||
<?php
|
<?php
|
||||||
@ -65,7 +65,7 @@ namespace pocketmine\data\bedrock\item;
|
|||||||
/**
|
/**
|
||||||
* This class is generated automatically from the item type dictionary for the current version. Do not edit it manually.
|
* This class is generated automatically from the item type dictionary for the current version. Do not edit it manually.
|
||||||
*/
|
*/
|
||||||
final class ItemTypeIds{
|
final class ItemTypeNames{
|
||||||
|
|
||||||
HEADER
|
HEADER
|
||||||
);
|
);
|
||||||
@ -78,7 +78,7 @@ HEADER
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(count($argv) !== 2){
|
if(count($argv) !== 2){
|
||||||
fwrite(STDERR, "This script regenerates ItemTypeIds from a given item dictionary file\n");
|
fwrite(STDERR, "This script regenerates ItemTypeNames from a given item dictionary file\n");
|
||||||
fwrite(STDERR, "Required argument: path to item type dictionary file\n");
|
fwrite(STDERR, "Required argument: path to item type dictionary file\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
@ -33,7 +33,7 @@ use pocketmine\data\bedrock\block\BlockStateDeserializer;
|
|||||||
use pocketmine\data\bedrock\CompoundTypeIds;
|
use pocketmine\data\bedrock\CompoundTypeIds;
|
||||||
use pocketmine\data\bedrock\DyeColorIdMap;
|
use pocketmine\data\bedrock\DyeColorIdMap;
|
||||||
use pocketmine\data\bedrock\EntityLegacyIds;
|
use pocketmine\data\bedrock\EntityLegacyIds;
|
||||||
use pocketmine\data\bedrock\item\ItemTypeIds as Ids;
|
use pocketmine\data\bedrock\item\ItemTypeNames as Ids;
|
||||||
use pocketmine\data\bedrock\item\SavedItemData as Data;
|
use pocketmine\data\bedrock\item\SavedItemData as Data;
|
||||||
use pocketmine\data\bedrock\PotionTypeIdMap;
|
use pocketmine\data\bedrock\PotionTypeIdMap;
|
||||||
use pocketmine\item\Durable;
|
use pocketmine\item\Durable;
|
||||||
|
@ -32,7 +32,7 @@ use pocketmine\data\bedrock\block\BlockStateSerializeException;
|
|||||||
use pocketmine\data\bedrock\block\BlockStateSerializer;
|
use pocketmine\data\bedrock\block\BlockStateSerializer;
|
||||||
use pocketmine\data\bedrock\CompoundTypeIds;
|
use pocketmine\data\bedrock\CompoundTypeIds;
|
||||||
use pocketmine\data\bedrock\DyeColorIdMap;
|
use pocketmine\data\bedrock\DyeColorIdMap;
|
||||||
use pocketmine\data\bedrock\item\ItemTypeIds as Ids;
|
use pocketmine\data\bedrock\item\ItemTypeNames as Ids;
|
||||||
use pocketmine\data\bedrock\item\SavedItemData as Data;
|
use pocketmine\data\bedrock\item\SavedItemData as Data;
|
||||||
use pocketmine\data\bedrock\PotionTypeIdMap;
|
use pocketmine\data\bedrock\PotionTypeIdMap;
|
||||||
use pocketmine\item\Banner;
|
use pocketmine\item\Banner;
|
||||||
|
@ -26,7 +26,7 @@ namespace pocketmine\data\bedrock\item;
|
|||||||
/**
|
/**
|
||||||
* This class is generated automatically from the item type dictionary for the current version. Do not edit it manually.
|
* This class is generated automatically from the item type dictionary for the current version. Do not edit it manually.
|
||||||
*/
|
*/
|
||||||
final class ItemTypeIds{
|
final class ItemTypeNames{
|
||||||
public const ACACIA_BOAT = "minecraft:acacia_boat";
|
public const ACACIA_BOAT = "minecraft:acacia_boat";
|
||||||
public const ACACIA_CHEST_BOAT = "minecraft:acacia_chest_boat";
|
public const ACACIA_CHEST_BOAT = "minecraft:acacia_chest_boat";
|
||||||
public const ACACIA_DOOR = "minecraft:acacia_door";
|
public const ACACIA_DOOR = "minecraft:acacia_door";
|
Loading…
x
Reference in New Issue
Block a user