use of dev.rosewood.rosestacker.stack.StackingThread in project RoseStacker by Rosewood-Development.
the class StackManager method changeStackingThread.
public void changeStackingThread(UUID entityUUID, StackedItem stackedItem, World from, World to) {
StackingThread fromThread = this.getStackingThread(from);
StackingThread toThread = this.getStackingThread(to);
if (fromThread == null || toThread == null)
return;
DataUtils.writeStackedItem(stackedItem);
fromThread.transferExistingEntityStack(entityUUID, stackedItem, toThread);
}
use of dev.rosewood.rosestacker.stack.StackingThread in project RoseStacker by Rosewood-Development.
the class StackManager method dropItemStack.
@Override
public StackedItem dropItemStack(ItemStack itemStack, int amount, Location location, boolean dropNaturally) {
World world = location.getWorld();
if (world == null)
return null;
StackingThread stackingThread = this.getStackingThread(world);
if (stackingThread == null)
return null;
return stackingThread.dropItemStack(itemStack, amount, location, dropNaturally);
}
Aggregations