StaticPacketCache
in package
Uses
SingletonTrait
Table of Contents
- $availableActorIdentifiers : AvailableActorIdentifiersPacket
- $biomeDefs : BiomeDefinitionListPacket
- $instance : self|null
- __construct() : mixed
- getAvailableActorIdentifiers() : AvailableActorIdentifiersPacket
- getBiomeDefs() : BiomeDefinitionListPacket
- getInstance() : self
- reset() : void
- setInstance() : void
- loadCompoundFromFile() : CacheableNbt
- make() : self
Properties
$availableActorIdentifiers
private
AvailableActorIdentifiersPacket
$availableActorIdentifiers
$biomeDefs
private
BiomeDefinitionListPacket
$biomeDefs
$instance
private
static self|null
$instance
= null
Methods
__construct()
public
__construct(BiomeDefinitionListPacket $biomeDefs, AvailableActorIdentifiersPacket $availableActorIdentifiers) : mixed
Parameters
- $biomeDefs : BiomeDefinitionListPacket
- $availableActorIdentifiers : AvailableActorIdentifiersPacket
Return values
mixed —getAvailableActorIdentifiers()
public
getAvailableActorIdentifiers() : AvailableActorIdentifiersPacket
Return values
AvailableActorIdentifiersPacket —getBiomeDefs()
public
getBiomeDefs() : BiomeDefinitionListPacket
Return values
BiomeDefinitionListPacket —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 —loadCompoundFromFile()
private
static loadCompoundFromFile(string $filePath) : CacheableNbt
Parameters
- $filePath : string
Tags
Return values
CacheableNbt —make()
private
static make() : self