Skip to content
This repository has been archived by the owner on Mar 21, 2019. It is now read-only.

InfinityGamesMC/funo-schematic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

funo-schematic

A simple schematic library for GoMint.

Loading a schematic

FunoSchematic schematic = new FunoSchematic.Loader(new File("test.schematic")).load();

// To access schematic data
FunoSchematic.SchematicData data = schematic.getSchematicData();

Creating a schematic

// First method
FunoSchematic schematic = new FunoSchematic(new FunoSchematic.SchematicData(length, width, height));
FunoSchematic schematic = new FunoSchematic(new FunoSchematic.SchematicData(length, width, height, blocks));
FunoSchematic schematic = new FunoSchematic(new FunoSchematic.SchematicData(length, width, height, blocks, blockData));

// Second method
FunoSchematic.SchematicData data = new FunoSchematic.SchematicData();
data.length = 100;
data.width = 100;
data.height = 100;
data.blocks = new byte[]{1, 2, 3};
data.blockData = new byte[]{1, 2, 3};

FunoSchematic schematic = new FunoSchematic(data);

NOTE: Block ids and block data must be be at the same index in their respective byte arrays!

Social Networks

Join the Discord Twitter