Skip to content

Fast, high-performance block placing (1.16.5 - 1.21.4)

Notifications You must be signed in to change notification settings

Devlrxxh/BlockChanger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Fast, high-performance block placing (1.16.5 - 1.21.4)

Resources

Stars

Watchers

Forks

Languages