CraftingDataCache
in package
Uses
SingletonTrait
Table of Contents
- $caches : array<string|int, CraftingDataPacket>
- $instance : self|null
- getCache() : CraftingDataPacket
- getInstance() : self
- reset() : void
- setInstance() : void
- buildCraftingDataCache() : CraftingDataPacket
- Rebuilds the cached CraftingDataPacket.
- make() : self
Properties
$caches
private
array<string|int, CraftingDataPacket>
$caches
= []
Tags
$instance
private
static self|null
$instance
= null
Methods
getCache()
public
getCache(CraftingManager $manager) : CraftingDataPacket
Parameters
- $manager : CraftingManager
Return values
CraftingDataPacket —getInstance()
public
static getInstance() : self
Return values
self —reset()
public
static reset() : void
Return values
void —setInstance()
public
static setInstance(self $instance) : void
Parameters
- $instance : self
Return values
void —buildCraftingDataCache()
Rebuilds the cached CraftingDataPacket.
private
buildCraftingDataCache(CraftingManager $manager) : CraftingDataPacket
Parameters
- $manager : CraftingManager
Return values
CraftingDataPacket —make()
private
static make() : self