Overview

Namespaces

  • aliuly
    • common
      • selectors
    • loader
  • xPaw

Classes

  • ArmorItems
  • BasicCli
  • BasicHelp
  • BasicPlugin
  • ChatSession
  • Cmd
  • CmdSelector
  • ExpandVars
  • FastTransfer
  • FileUtils
  • FreezeSession
  • GetMotd
  • GetMotdAsyncTask
  • InvisibleSession
  • InvUtils
  • ItemName
  • mc
  • mc2
  • MoneyAPI
  • MPMU
  • Npc
  • PermUtils
  • PluginAsyncTask
  • PluginCallbackTask
  • PMScript
  • QueryAsyncTask
  • Rcon
  • RconTask
  • Session
  • ShieldSession
  • ShoppingCart
  • SignUtils
  • SkinUtils
  • SpySession
  • SubCommandMap
  • TPUtils
  • Overview
  • Namespace
  • Class

Class InvUtils

Inventory related utilities

Abstract
Namespace: aliuly\common
Located at aliuly/common/InvUtils.php
Methods summary
public static
# clearInventory( pocketmine\Player $target )

Clear players inventory

Clear players inventory

Parameters

$target
public static
# clearHotBar( pocketmine\Player $target )

Clear hotbar

Clear hotbar

Parameters

$target
public static
# rmInvItem( pocketmine\Player $target, pocketmine\item\Item $item, integer|null $count = null )

Remove item from inventory....

Remove item from inventory....

Parameters

$target
$item
$count
public static integer
# countInvItem( pocketmine\Player $target, pocketmine\item\Item $item )

Count amount of items

Count amount of items

Parameters

$target
$item

Returns

integer
API documentation generated by ApiGen