Notebot renamed to NoteBot
This commit is contained in:
parent
ca9de92aa5
commit
497a7463e0
|
@ -3,7 +3,7 @@ package me.rigamortis.seppuku.impl.command;
|
|||
import com.mojang.realmsclient.gui.ChatFormatting;
|
||||
import me.rigamortis.seppuku.Seppuku;
|
||||
import me.rigamortis.seppuku.api.command.Command;
|
||||
import me.rigamortis.seppuku.impl.module.world.NotebotModule;
|
||||
import me.rigamortis.seppuku.impl.module.world.NoteBotModule;
|
||||
|
||||
import javax.script.ScriptEngine;
|
||||
import javax.script.ScriptEngineManager;
|
||||
|
@ -38,7 +38,7 @@ public final class PlayCommand extends Command {
|
|||
|
||||
final String[] split = input.split(" ");
|
||||
|
||||
final NotebotModule notebotModule = (NotebotModule) Seppuku.INSTANCE.getModuleManager().find(NotebotModule.class);
|
||||
final NoteBotModule notebotModule = (NoteBotModule) Seppuku.INSTANCE.getModuleManager().find(NoteBotModule.class);
|
||||
if (notebotModule != null) {
|
||||
try {
|
||||
File file = new File(directory, split[1] + ".js");
|
||||
|
|
|
@ -30,7 +30,7 @@ import java.util.stream.IntStream;
|
|||
/**
|
||||
* @author noil
|
||||
*/
|
||||
public final class NotebotModule extends Module {
|
||||
public final class NoteBotModule extends Module {
|
||||
|
||||
private final Value<BotState> state = new Value<BotState>("State", new String[]{"State", "s"}, "Current state of the note-bot.", BotState.IDLE);
|
||||
private final Value<Mode> mode = new Value<Mode>("Mode", new String[]{"mod", "m"}, "Current mode of the note-bot.", Mode.AUTOMATIC);
|
||||
|
@ -55,8 +55,8 @@ public final class NotebotModule extends Module {
|
|||
private final int BLOCK_AREA = 25;
|
||||
private final Minecraft mc = Minecraft.getMinecraft();
|
||||
|
||||
public NotebotModule() {
|
||||
super("Notebot", new String[]{"Notebot+", "MusicBot", "MusicPlayer", "MidiPlayer", "MidiBot"}, "Play .midi files on a 5x5 grid of note-blocks.", "NONE", -1, ModuleType.WORLD);
|
||||
public NoteBotModule() {
|
||||
super("NoteBot", new String[]{"NoteBot+", "MusicBot", "MusicPlayer", "MidiPlayer", "MidiBot"}, "Play .midi files on a 5x5 grid of note-blocks.", "NONE", -1, ModuleType.WORLD);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -66,7 +66,7 @@ public final class NotebotModule extends Module {
|
|||
if (mc.world == null)
|
||||
return;
|
||||
|
||||
IntStream.range(0, 25).forEach(note -> {
|
||||
IntStream.range(0, BLOCK_AREA).forEach(note -> {
|
||||
int[] area = this.blockArea(note);
|
||||
this.blocks.add(new BlockPos(area[0], area[1], area[2]));
|
||||
});
|
Loading…
Reference in New Issue