use of io.github.bananapuncher714.crafters.implementation.api.PublicCraftingInventory in project PublicCrafters by BananaPuncher714.
the class CustomInventoryCrafting method move.
@Override
public PublicCraftingInventory move(Location location) {
display.stop();
if (manager.get(bloc) == this) {
manager.benches.remove(bloc);
}
bloc = location;
CustomInventoryCrafting whatsHere = manager.put(location, this);
display = new CraftDisplay(this);
display.update();
return whatsHere;
}
use of io.github.bananapuncher714.crafters.implementation.api.PublicCraftingInventory in project PublicCrafters by BananaPuncher714.
the class CustomInventoryCrafting method move.
@Override
public PublicCraftingInventory move(Location location) {
display.stop();
if (manager.get(bloc) == this) {
manager.benches.remove(bloc);
}
bloc = location;
CustomInventoryCrafting whatsHere = manager.put(location, this);
display = new CraftDisplay(this);
display.update();
return whatsHere;
}
use of io.github.bananapuncher714.crafters.implementation.api.PublicCraftingInventory in project PublicCrafters by BananaPuncher714.
the class ContainerManager_v1_13_R1 method remove.
@Override
public void remove(Location location) {
if (benches.containsKey(location)) {
PublicCraftingInventory bench = benches.get(location);
bench.remove();
benches.remove(location);
}
}
use of io.github.bananapuncher714.crafters.implementation.api.PublicCraftingInventory in project PublicCrafters by BananaPuncher714.
the class ContainerManager_v1_13_R1 method stopAll.
@Override
public void stopAll() {
for (PublicCraftingInventory inventory : benches.values()) {
inventory.getCraftDisplay().stop();
CraftInventoryLoader.save(PublicCrafters.getInstance().getSaveFolder(), inventory);
}
mockPlayer.getBukkitEntity().setOp(false);
}
use of io.github.bananapuncher714.crafters.implementation.api.PublicCraftingInventory in project PublicCrafters by BananaPuncher714.
the class CustomInventoryCrafting method move.
@Override
public PublicCraftingInventory move(Location location) {
display.stop();
if (manager.get(bloc) == this) {
manager.benches.remove(bloc);
}
bloc = location;
CustomInventoryCrafting whatsHere = manager.put(location, this);
display = new CraftDisplay(this);
display.update();
return whatsHere;
}
Aggregations