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 SkinUtils

Routines for manipulating skins

Abstract
Namespace: aliuly\common
Located at aliuly/common/SkinUtils.php
Methods summary
public static str[]
# formats( )

Return supported file formats

Return supported file formats

Returns

str[]
public static boolean
# isPngExt( str $f )

Check if the filename extension is .png

Check if the filename extension is .png

Parameters

$f

Returns

boolean
public static boolean
# isSkinFile( str $file )

Check if file is a valid skin

Check if file is a valid skin

Parameters

$file

Returns

boolean
public static
# setSlim( pocketmine\entity\Human $human, boolean $slim = false )

Change the skin type (slim or non-slim)

Change the skin type (slim or non-slim)

Parameters

$human
$slim
public static integer
# saveSkin( pocketmine\entity\Human $human, str $fn, str $fmt = aliuly\common\SkinUtils::AUTO_FMT )

Save skin

Save skin

Parameters

$human
$fn
$fmt

Returns

integer
public static boolean
# loadSkin( pocketmine\entity\Human $human, boolean $slim, str $fn )

Load skin

Load skin

Parameters

$human
$slim
$fn

Returns

boolean
Constants summary
string RAW_FMT
# "raw"
string PNG_FMT
# "png"
string AUTO_FMT
# ""
API documentation generated by ApiGen