-
Notifications
You must be signed in to change notification settings - Fork 0
Systems
Aria edited this page Nov 26, 2019
·
3 revisions
To create a custom Break System you'll need to create a new class which extends BreakSystem.
You'll need to overwrite different methods to define how the system will work:
getId(Block) will return a string that needs to match the name in the config file.
The material system code looks like this:
@Override
public String getId(Block block) {
return block.getType().name();
}priority() returns the priority of the system as an int.
(A lower value means it will be used first, while a higher value means the system will be used last.)
This is only important in case of conflicting getId(Block) methods.
