1package com.osroyale.game.world.entity.mob.player.exchange;
3import com.osroyale.net.packet.out.SendMessage;
4import com.osroyale.game.world.entity.mob.player.Player;
5import com.osroyale.util.MessageColor;
7import java.util.ArrayList;
9import java.util.Optional;
82 public boolean deposit(
int slot,
int amount) {
97 public boolean withdraw(
int slot,
int amount) {
100 if(session ==
null) {
114 if(!session.isPresent()) {
118 session.get().forEach(p -> {
121 p.interfaceManager.close();
135 if(!session.isPresent()) {
139 reset(session.get().type);
147 player.exchangeSession.requested_players.clear();
final boolean remove(Player player, int slot, int amount)
static final Set< ExchangeSession > SESSIONS
final boolean add(Player player, int slot, int amount)
static Optional< ExchangeSession > getSession(Player player)
ExchangeSessionManager(Player player)
boolean deposit(int slot, int amount)
boolean withdraw(int slot, int amount)
void reset(ExchangeSessionType type)
boolean request(ExchangeSession session)
final List< Player > requested_players