PMMP 4.0.0

Overview

InventoryAPI

PocketMine-MP APIv4.0.0

Example

OneBlockInventory

use pocketmine\block\BlockLegacyIds;
use pocketmine\player\Player;

use pocketmine\network\mcpe\protocol\types\inventory\WindowTypes;

use skymin\InventoryAPI\OneBlockInventory;

class TestInv extends OneBlockInventory{
	
	public function __construct(Player $player){
		parent::__construct($player->getPosition(), BlockLegacyIds::HOPPER_BLOCK, WindowTypes::HOPPER, 5, 'test')
	}
	
}

DoubleChestInventory

use pocketmine\player\Player;
use pocketmine\plugin\PluginBase;

use pocketmine\item\ItemFactory;

use skymin\InventoryAPI\DoubleChestInventory;

class TestInv extends DoubleChestInventory{
	
	protected $plugin;
	
	public function __construct(Player $player, PluginBase $plugin){
		parent::__construct($plugin->getScheduler(), $player->getPosition(), 'test');
		$this->plugin = $plugin;
	}
	
	public function onOpen(Player $who) :void{
		parent::onOpen($who);
		$this->plugin->getScheduler()->scheduleDelayedTask(new ClosureTask(function() : void{
			$this->setItem(40, ItemFactory::getInstance()->get(1));
		}), 8); //If you do not do this, it may not apply.
	}
	
}

how to send gui

SendInventory

You might also like...
A Pocketmine-MP (PMMP) plugin to help staff members enforce the rules of the server.
A Pocketmine-MP (PMMP) plugin to help staff members enforce the rules of the server.

StaffMode is an all-in-one Pocketmine-MP (PMMP) moderation plugin made to simplify the life of staff members.

A Pocketmine-MP (PMMP) plugin to prevent players from doing most glitches.
A Pocketmine-MP (PMMP) plugin to prevent players from doing most glitches.

AntiGlitch AntiGlitch is an all-in-one Pocketmine-MP (PMMP) plugin made to prevent as many known glitches. Setup Guide To start using the plugin, down

A Pocketmine-MP (PMMP) leaderboard plugin that shows player statistics on a website.

WebLeaderBoard A Pocketmine-MP (PMMP) leaderboard plugin that shows all sorts of statistics on a website. Setup Guide To start using the plugin, downl

PMMP 4.0.0

InventoryAPI PocketMine-MP APIv4.0.0 Example OneBlockInventory use pocketmine\block\BlockLegacyIds; use pocketmine\player\Player; use pocketmine\netw

A simple and fast pmmp js es6 promise virion

Promises A simple and fast pmmp js es6 promise virion Api usage these examples are in base injectable php these should be easily transferable. Example

A discord-feature rich API plugin for PMMP.

DiscordBot DiscordBot a core plugin that provides an extensive API for plugins to interact with a discord bot creating endless possibilities. Examples

Plugins for NostalgiaCore/PMMP 1.3.11

NostalgiaPlugins Plugins for NostalgiaCore/PMMP 1.3.11 Special thx to SkilasticYT ColorCarpet: Author: ArkQuark Description: Paints blocks of wool and

New TapToDo for PMMP 4.0 API Minecraft.

TapToDo - v2.4.2 New TapToDo for PMMP 4.0 API Minecraft. Features: Simple and user-friendly very easy setup Add macros on block Work in game Tap to se

Powerful land plugin, based on PMMP.

iLand Powerful land plugin, based on PMMP Features Land management with Form UI The border of the selected land Custom land settings Customize the per

Powerful land plugin, based on PMMP.

iLand Powerful land plugin, based on PMMP Features Land management with Form UI The border of the selected land Custom land settings Customize the per

A plugin OreSpawner for PocketMine-PMMP
A plugin OreSpawner for PocketMine-PMMP

A plugin OreSpawner for PocketMine-PMMP

Comments
  • Update

    Update

    DoubleChestInventory 클래스에 public function setReady() 함수 추가 하여 앞으로 인벤토리 클래스를 만들따 딜레이 테스크를 생성하여 setItem()을 할필요 없습니다. OneBlockInventory 클래스 만들때 필요한 변수를 줄였습니다.

    opened by sky-min 0
Owner
HI!
null
A Pocketmine-MP (PMMP) plugin to prevent players from doing most glitches.

AntiGlitch AntiGlitch is an all-in-one Pocketmine-MP (PMMP) plugin made to prevent as many known glitches. Setup Guide To start using the plugin, down

ItsMax123 12 Sep 17, 2022
A Pocketmine-MP (PMMP) leaderboard plugin that shows player statistics on a website.

WebLeaderBoard A Pocketmine-MP (PMMP) leaderboard plugin that shows all sorts of statistics on a website. Setup Guide To start using the plugin, downl

ItsMax123 6 Apr 5, 2022
PMMP 4.0.0

InventoryAPI PocketMine-MP APIv4.0.0 Example OneBlockInventory use pocketmine\block\BlockLegacyIds; use pocketmine\player\Player; use pocketmine\netw

null 14 Dec 26, 2022
A simple and fast pmmp js es6 promise virion

Promises A simple and fast pmmp js es6 promise virion Api usage these examples are in base injectable php these should be easily transferable. Example

null 5 Dec 14, 2021
Plugins for NostalgiaCore/PMMP 1.3.11

NostalgiaPlugins Plugins for NostalgiaCore/PMMP 1.3.11 Special thx to SkilasticYT ColorCarpet: Author: ArkQuark Description: Paints blocks of wool and

null 5 Aug 6, 2022
New TapToDo for PMMP 4.0 API Minecraft.

TapToDo - v2.4.2 New TapToDo for PMMP 4.0 API Minecraft. Features: Simple and user-friendly very easy setup Add macros on block Work in game Tap to se

XackiGiFF 2 May 15, 2022
Powerful land plugin, based on PMMP.

iLand Powerful land plugin, based on PMMP Features Land management with Form UI The border of the selected land Custom land settings Customize the per

David-pm-pl 9 Dec 6, 2022
Powerful land plugin, based on PMMP.

iLand Powerful land plugin, based on PMMP Features Land management with Form UI The border of the selected land Custom land settings Customize the per

Block Magic Dev 7 Jul 26, 2022
A plugin OreSpawner for PocketMine-PMMP

A plugin OreSpawner for PocketMine-PMMP

VennV 2 Oct 9, 2022
FacEssential is a Core for PMMP, it gathers all kind of plugins needed to create a faction server. It was created from scratch by Clouds#0667.

FacEssential FacEssential is a Core for PMMP, it gathers all kind of plugins needed to create a faction server. It was created from scratch by Clouds#

Zoumi 10 Jun 13, 2022