use of io.github.bananapuncher714.crafters.implementation.api.PublicCraftingInventory in project PublicCrafters by BananaPuncher714.
the class ContainerManager_v1_17_1 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;
}
use of io.github.bananapuncher714.crafters.implementation.api.PublicCraftingInventory in project PublicCrafters by BananaPuncher714.
the class ContainerManager_v1_17_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 ContainerManager_v1_9_R2 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