Changing builder settings

BlockSettings - class who contains builder settings.

We can create new object of class with default options by:

BlockSettings settings = new BlockSettings();

,or we can get actual builder settings (If settings of builder was not changed before, so have default settings of builder.

BlockSettings settings = builder.getBlockSettings();

If we have object of class, we can to modify him properties now:
1. Default font blocks word spacing:

settings.setWordSpacing(int);

2.Default font blocks letter spacing:

settings.setLetterSpacing(int);

3.How many blocks over player will be builded chars:

settings.setPlayerSpacing(int);

4.Character of decoding color of blocks:

settings.setColorChar(char);

5.Character of decoding color blocks material:

settings.setColoredBlockChar(char);

6.Character of decoding input animation:

settings.setInputAnimationChar(char);

7.Character of decoding output animation:

settings.setOutputAnimationChar(char);

8.Add replacer character of material like "&g - bedrock":

settings.addMaterialReplacement(char, Material);


Character from '0-9,a-f' will be not working, becaouse colors haves, highter priority.

9.Setting all list of replacer materials:

settings.setMaterialReplacementList(HashMap<Character, Material>;

10.Clearing list of replacer materials:

settings.clearMaterialReplacementList();

11.Changing blocade of building chars for only air blocks:

settings.setOnlyAirBlocade(boolean);


Default: true - blocking.

12.Set building font:

settings.setFont(java.awt.Font);

and now we can set builder settings by our settings:

builder.setBlockSettings(settings);

in good way you can too do something like that:

builder.setBlockSettings(new BlockSettings().setColorChar('$').setFont(new Font("Arial", 0, 20)).setPlayerSpacing(8).addMaterialReplacement('N', Material.SPONGE));

Comments

Posts Quoted:
Reply
Clear All Quotes