TypeConverter
in package
Uses
SingletonTrait
Table of Contents
- DAMAGE_TAG = "Damage"
- DAMAGE_TAG_CONFLICT_RESOLUTION = "___Damage_ProtocolCollisionResolution___"
- PM_ID_TAG = "___Id___"
- PM_META_TAG = "___Meta___"
- $instance : self|null
- $shieldRuntimeId : int
- __construct() : mixed
- coreItemStackToNet() : ItemStack
- coreItemStackToRecipeIngredient() : RecipeIngredient
- createInventoryAction() : InventoryAction|null
- getInstance() : self
- netItemStackToCore() : Item
- protocolGameModeName() : string
- protocolGameModeToCore() : GameMode|null
- recipeIngredientToCoreItemStack() : Item
- reset() : void
- setInstance() : void
- make() : self
Constants
DAMAGE_TAG
private
mixed
DAMAGE_TAG
= "Damage"
DAMAGE_TAG_CONFLICT_RESOLUTION
private
mixed
DAMAGE_TAG_CONFLICT_RESOLUTION
= "___Damage_ProtocolCollisionResolution___"
PM_ID_TAG
private
mixed
PM_ID_TAG
= "___Id___"
PM_META_TAG
private
mixed
PM_META_TAG
= "___Meta___"
Properties
$instance
private
static self|null
$instance
= null
$shieldRuntimeId
private
int
$shieldRuntimeId
Methods
__construct()
public
__construct() : mixed
Return values
mixed —coreItemStackToNet()
public
coreItemStackToNet(Item $itemStack) : ItemStack
Parameters
- $itemStack : Item
Return values
ItemStack —coreItemStackToRecipeIngredient()
public
coreItemStackToRecipeIngredient(Item $itemStack) : RecipeIngredient
Parameters
- $itemStack : Item
Return values
RecipeIngredient —createInventoryAction()
public
createInventoryAction(NetworkInventoryAction $action, Player $player, InventoryManager $inventoryManager) : InventoryAction|null
Parameters
- $action : NetworkInventoryAction
- $player : Player
- $inventoryManager : InventoryManager
Tags
Return values
InventoryAction|null —getInstance()
public
static getInstance() : self
Return values
self —netItemStackToCore()
public
netItemStackToCore(ItemStack $itemStack) : Item
Parameters
- $itemStack : ItemStack
Tags
Return values
Item —protocolGameModeName()
public
protocolGameModeName(GameMode $gameMode) : string
Parameters
- $gameMode : GameMode
Return values
string —protocolGameModeToCore()
public
protocolGameModeToCore(int $gameMode) : GameMode|null
Parameters
- $gameMode : int
Return values
GameMode|null —recipeIngredientToCoreItemStack()
public
recipeIngredientToCoreItemStack(RecipeIngredient $ingredient) : Item
Parameters
- $ingredient : RecipeIngredient
Return values
Item —reset()
public
static reset() : void
Return values
void —setInstance()
public
static setInstance(self $instance) : void
Parameters
- $instance : self
Return values
void —make()
private
static make() : self