PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
pocketmine\block\WoodLikeBlockIdHelper Class Reference
+ Collaboration diagram for pocketmine\block\WoodLikeBlockIdHelper:

Static Public Member Functions

static getAllSidedLogIdentifier (WoodType $treeType)
 
static getButtonIdentifier (WoodType $treeType)
 
static getDoorIdentifier (WoodType $treeType)
 
static getFenceGateIdentifier (WoodType $treeType)
 
static getFenceIdentifier (WoodType $type)
 
static getLeavesIdentifier (LeavesType $leavesType)
 
static getLogIdentifier (WoodType $treeType)
 
static getPlanksIdentifier (WoodType $type)
 
static getPressurePlateIdentifier (WoodType $treeType)
 
static getSaplingIdentifier (SaplingType $treeType)
 
static getSignInfo (WoodType $treeType)
 
static getSlabIdentifier (WoodType $type)
 
static getStairsIdentifier (WoodType $treeType)
 
static getTrapdoorIdentifier (WoodType $treeType)
 

Detailed Description

All wood-like blocks have different IDs for different wood types.

We can't make these dynamic, because some types of wood have different type properties (e.g. crimson and warped planks are not flammable, but all other planks are).

In the future, it's entirely within the realm of reason that the other types of wood may differ in other ways, such as flammability, hardness, required tool tier, etc. Therefore, to stay on the safe side of Mojang, wood-like blocks have static types. This does unfortunately generate a lot of ugly code.

Definition at line 47 of file WoodLikeBlockIdHelper.php.

Member Function Documentation

◆ getAllSidedLogIdentifier()

static pocketmine\block\WoodLikeBlockIdHelper::getAllSidedLogIdentifier ( WoodType $treeType)
static

Definition at line 109 of file WoodLikeBlockIdHelper.php.

◆ getButtonIdentifier()

static pocketmine\block\WoodLikeBlockIdHelper::getButtonIdentifier ( WoodType $treeType)
static

Definition at line 189 of file WoodLikeBlockIdHelper.php.

◆ getDoorIdentifier()

static pocketmine\block\WoodLikeBlockIdHelper::getDoorIdentifier ( WoodType $treeType)
static

Definition at line 219 of file WoodLikeBlockIdHelper.php.

◆ getFenceGateIdentifier()

static pocketmine\block\WoodLikeBlockIdHelper::getFenceGateIdentifier ( WoodType $treeType)
static

Definition at line 234 of file WoodLikeBlockIdHelper.php.

◆ getFenceIdentifier()

static pocketmine\block\WoodLikeBlockIdHelper::getFenceIdentifier ( WoodType $type)
static

Definition at line 64 of file WoodLikeBlockIdHelper.php.

◆ getLeavesIdentifier()

static pocketmine\block\WoodLikeBlockIdHelper::getLeavesIdentifier ( LeavesType $leavesType)
static

Definition at line 124 of file WoodLikeBlockIdHelper.php.

◆ getLogIdentifier()

static pocketmine\block\WoodLikeBlockIdHelper::getLogIdentifier ( WoodType $treeType)
static

Definition at line 94 of file WoodLikeBlockIdHelper.php.

◆ getPlanksIdentifier()

static pocketmine\block\WoodLikeBlockIdHelper::getPlanksIdentifier ( WoodType $type)
static

Definition at line 49 of file WoodLikeBlockIdHelper.php.

◆ getPressurePlateIdentifier()

static pocketmine\block\WoodLikeBlockIdHelper::getPressurePlateIdentifier ( WoodType $treeType)
static

Definition at line 204 of file WoodLikeBlockIdHelper.php.

◆ getSaplingIdentifier()

static pocketmine\block\WoodLikeBlockIdHelper::getSaplingIdentifier ( SaplingType $treeType)
static

Definition at line 139 of file WoodLikeBlockIdHelper.php.

◆ getSignInfo()

static pocketmine\block\WoodLikeBlockIdHelper::getSignInfo ( WoodType $treeType)
static
Returns
BID[]|\Closure[] @phpstan-return array{BID, BID, \Closure() : \pocketmine\item\Item}

Definition at line 154 of file WoodLikeBlockIdHelper.php.

◆ getSlabIdentifier()

static pocketmine\block\WoodLikeBlockIdHelper::getSlabIdentifier ( WoodType $type)
static

Definition at line 79 of file WoodLikeBlockIdHelper.php.

◆ getStairsIdentifier()

static pocketmine\block\WoodLikeBlockIdHelper::getStairsIdentifier ( WoodType $treeType)
static

Definition at line 249 of file WoodLikeBlockIdHelper.php.

◆ getTrapdoorIdentifier()

static pocketmine\block\WoodLikeBlockIdHelper::getTrapdoorIdentifier ( WoodType $treeType)
static

Definition at line 174 of file WoodLikeBlockIdHelper.php.


The documentation for this class was generated from the following file: