mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 20:07:09 +00:00
Deprecate some stuff
This commit is contained in:
parent
61560ec375
commit
a593180ef9
@ -69,6 +69,10 @@ class Campfire extends Transparent{
|
|||||||
|
|
||||||
private const UPDATE_INTERVAL_TICKS = 10;
|
private const UPDATE_INTERVAL_TICKS = 10;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated This was added by mistake. It can't be relied on as the inventory won't be initialized if this block
|
||||||
|
* has never been set in the world.
|
||||||
|
*/
|
||||||
protected CampfireInventory $inventory;
|
protected CampfireInventory $inventory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -129,6 +133,10 @@ class Campfire extends Transparent{
|
|||||||
return [AxisAlignedBB::one()->trim(Facing::UP, 9 / 16)];
|
return [AxisAlignedBB::one()->trim(Facing::UP, 9 / 16)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated This was added by mistake. It can't be relied on as the inventory won't be initialized if this block
|
||||||
|
* has never been set in the world.
|
||||||
|
*/
|
||||||
public function getInventory() : CampfireInventory{
|
public function getInventory() : CampfireInventory{
|
||||||
return $this->inventory;
|
return $this->inventory;
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,7 @@ use function str_starts_with;
|
|||||||
|
|
||||||
abstract class Timings{
|
abstract class Timings{
|
||||||
public const GROUP_MINECRAFT = "Minecraft";
|
public const GROUP_MINECRAFT = "Minecraft";
|
||||||
|
/** @deprecated No longer used */
|
||||||
public const GROUP_BREAKDOWN = "Minecraft - Breakdown";
|
public const GROUP_BREAKDOWN = "Minecraft - Breakdown";
|
||||||
|
|
||||||
private static bool $initialized = false;
|
private static bool $initialized = false;
|
||||||
@ -351,6 +352,9 @@ abstract class Timings{
|
|||||||
return self::$asyncTaskCompletion[$taskClass];
|
return self::$asyncTaskCompletion[$taskClass];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated No longer used
|
||||||
|
*/
|
||||||
public static function getAsyncTaskErrorTimings(AsyncTask $task, string $group = self::GROUP_MINECRAFT) : TimingsHandler{
|
public static function getAsyncTaskErrorTimings(AsyncTask $task, string $group = self::GROUP_MINECRAFT) : TimingsHandler{
|
||||||
$taskClass = $task::class;
|
$taskClass = $task::class;
|
||||||
if(!isset(self::$asyncTaskError[$taskClass])){
|
if(!isset(self::$asyncTaskError[$taskClass])){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user