Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 916 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 916 Bytes

BlockChanger

A single class that offers very fast block placing, high performance and allowing multiple versions (1.16.5 - 1.21.4)

More Information can be found at: https://www.spigotmc.org/threads/methods-for-changing-massive-amount-of-blocks-up-to-14m-blocks-s.395868/

Setup

Just put the BlockChanger class in your project

Usage

BlockChanger blockChanger = new BlockChanger(main, false);

Location location = ...;
BlockData blockData = ...;

blockChanger.setBlock(location, blockData);

// Run this after placing all your block(s)
blockChanger.notifyChanges();

Snapshot System

Location min = ...;
Location max = ...;
BlockChanger.Snapshot snapshot;

snapshot = blockChanger.capture(min, max);

blockChanger.revert(snapshot);