Releases: Muqsit/InvMenu
Releases · Muqsit/InvMenu
v4.7.3
v4.7.2
v4.7.1
InvMenu v4.7 implements a new delay strategy that reduces excess wait times.
- Removed deprecated
InvMenu::getType(), useInvMenu::$typeinstead. - Removed deprecated
PlayerSession::getCurrent(), usePlayerSession::$currentinstead. - Removed deprecated
PlayerSession::getNetwork(), usePlayerSession::$networkinstead. - Removed deprecated
InvMenuTransactionResult::isCancelled(), useInvMenuTransactionResult::$cancelledinstead. - Removed deprecated
InvMenuTransactionResult::getPostTransactionCallback(), useInvMenuTransactionResult::$post_transaction_callbackinstead. - Removed deprecated
PlayerManager::getNetworkHandlerRegistry(), usePlayerManager::$network_handler_registryinstead. - Removed internal
InvMenu::sendInventory(), useInvMenu::send()instead. - Removed internal
PlayerSession::setCurrentWindow(), useInvMenu::send()instead. - Removed internal
PlayerSession::removeCurrentWindow(), usePlayer::removeCurrentWindow()instead. - Removed
PlayerNetwork::getGraphicWaitDuration(),PlayerNetwork::setGraphicWaitDuration(),PlayerNetwork::getPending(),PlayerNetwork::dropPendingOfType(),PlayerNetwork::onBeforeSendMenu()- there is no replacement for these methods as InvMenu v4.7 replaces the conventional delay strategy with a newer logic.
v4.6.5
- Added getter methods to retrieve menu listener and menu inventory close listener
AddedInvMenu::getListener(),InvMenu::getInventoryCloseListener().
This allows developers to retrieve the current listener, extend its behavior, and then re-set it.
This provides more flexibility in chaining or extending listener functionalities without losing the original behavior.$listener = $menu->getInventoryCloseListener(); $menu->setInventoryCloseListener(function(Player $player, Inventory $inventory) use($listener) : void{ $listener($player, $inventory); // place additional inventory close checks here });