-
Notifications
You must be signed in to change notification settings - Fork 226
FaweQueue
Jesse Boyd edited this page Aug 15, 2016
·
3 revisions
If you are just looking to make simple block changes to the world, you should use the EditSession, or AsyncWorld instead.
The FaweQueue is a basic queue for modifying the world from async threads
- Use it to modify whole chunks or individual blocks efficiently
- See EditSession or AsyncWorld which will be easier to use but slower
// Auto queuing will mean blocks start to place before it is flushed
FaweQueue queue = FaweAPI.createQueue(worldName, autoQueue);
queue.setBlock(0, 0, 0, id, data);
queue.setBiome(0, 0, biome);
// Set entire chunks
FaweChunk<?> chunk = queue.getFaweChunk(5, 5);
chunk.fill(id, data);
chunk.addToQueue();
// Repeat the same for position
chunk = chunk.copy(true);
chunk.setLoc(queue, 5, 6);
chunk.addToQueue();
Further methods are available for supported platforms. You can cast the FaweQueue
to an NMSMappedFaweQueue
to access these.
More info:
https://github.com/boy0001/FastAsyncWorldedit/wiki/Light-API
This wiki is outdated, move to https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/
This Wiki is for Legacy Versions (1.8 - 1.12.2). Check here for 1.13+ versions: https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/