From 680a3a5d131d2d2f11dacecdd790b1fe82c60a51 Mon Sep 17 00:00:00 2001 From: Daniel Mills Date: Tue, 20 Jul 2021 04:56:31 -0400 Subject: [PATCH] Turbo commands --- .../pregenerator/turbo/command/TurboBusy.java | 22 ++++++++++ .../turbo/command/TurboClose.java | 35 ++++++++++++++++ .../turbo/command/TurboCommand.java | 24 +++++++++++ .../turbo/command/TurboError.java | 22 ++++++++++ .../turbo/command/TurboGenerate.java | 40 ++++++++++++++++++ .../turbo/command/TurboGetProgress.java | 35 ++++++++++++++++ .../turbo/command/TurboInstallFirst.java | 22 ++++++++++ .../turbo/command/TurboInstallPack.java | 42 +++++++++++++++++++ .../pregenerator/turbo/command/TurboOK.java | 22 ++++++++++ .../turbo/command/TurboSendProgress.java | 35 ++++++++++++++++ 10 files changed, 299 insertions(+) create mode 100644 src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboBusy.java create mode 100644 src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboClose.java create mode 100644 src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboCommand.java create mode 100644 src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboError.java create mode 100644 src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboGenerate.java create mode 100644 src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboGetProgress.java create mode 100644 src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboInstallFirst.java create mode 100644 src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboInstallPack.java create mode 100644 src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboOK.java create mode 100644 src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboSendProgress.java diff --git a/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboBusy.java b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboBusy.java new file mode 100644 index 000000000..b332e2ca4 --- /dev/null +++ b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboBusy.java @@ -0,0 +1,22 @@ +/* + * Iris is a World Generator for Minecraft Bukkit Servers + * Copyright (c) 2021 Arcane Arts (Volmit Software) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.volmit.iris.core.pregenerator.turbo.command; + +public class TurboBusy implements TurboCommand { +} diff --git a/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboClose.java b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboClose.java new file mode 100644 index 000000000..55eeb3200 --- /dev/null +++ b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboClose.java @@ -0,0 +1,35 @@ +/* + * Iris is a World Generator for Minecraft Bukkit Servers + * Copyright (c) 2021 Arcane Arts (Volmit Software) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.volmit.iris.core.pregenerator.turbo.command; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.util.UUID; + +@Builder +@AllArgsConstructor +@NoArgsConstructor +@Data +public class TurboClose implements TurboCommand { + @Builder.Default + private UUID pack = UUID.randomUUID(); +} diff --git a/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboCommand.java b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboCommand.java new file mode 100644 index 000000000..e83039598 --- /dev/null +++ b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboCommand.java @@ -0,0 +1,24 @@ +/* + * Iris is a World Generator for Minecraft Bukkit Servers + * Copyright (c) 2021 Arcane Arts (Volmit Software) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.volmit.iris.core.pregenerator.turbo.command; + +public interface TurboCommand +{ + +} diff --git a/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboError.java b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboError.java new file mode 100644 index 000000000..8531e1f99 --- /dev/null +++ b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboError.java @@ -0,0 +1,22 @@ +/* + * Iris is a World Generator for Minecraft Bukkit Servers + * Copyright (c) 2021 Arcane Arts (Volmit Software) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.volmit.iris.core.pregenerator.turbo.command; + +public class TurboError implements TurboCommand { +} diff --git a/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboGenerate.java b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboGenerate.java new file mode 100644 index 000000000..105698cce --- /dev/null +++ b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboGenerate.java @@ -0,0 +1,40 @@ +/* + * Iris is a World Generator for Minecraft Bukkit Servers + * Copyright (c) 2021 Arcane Arts (Volmit Software) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.volmit.iris.core.pregenerator.turbo.command; + +import com.volmit.iris.engine.object.IrisDimension; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.util.UUID; + +@Builder +@AllArgsConstructor +@NoArgsConstructor +@Data +public class TurboGenerate implements TurboCommand { + @Builder.Default + private int x = 0; + @Builder.Default + private int z = 0; + @Builder.Default + private UUID pack = UUID.randomUUID(); +} diff --git a/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboGetProgress.java b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboGetProgress.java new file mode 100644 index 000000000..cf6819b1a --- /dev/null +++ b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboGetProgress.java @@ -0,0 +1,35 @@ +/* + * Iris is a World Generator for Minecraft Bukkit Servers + * Copyright (c) 2021 Arcane Arts (Volmit Software) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.volmit.iris.core.pregenerator.turbo.command; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.util.UUID; + +@Data +@Builder +@AllArgsConstructor +@NoArgsConstructor +public class TurboGetProgress implements TurboCommand { + @Builder.Default + private UUID pack = UUID.randomUUID(); +} diff --git a/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboInstallFirst.java b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboInstallFirst.java new file mode 100644 index 000000000..dfd222fc0 --- /dev/null +++ b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboInstallFirst.java @@ -0,0 +1,22 @@ +/* + * Iris is a World Generator for Minecraft Bukkit Servers + * Copyright (c) 2021 Arcane Arts (Volmit Software) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.volmit.iris.core.pregenerator.turbo.command; + +public class TurboInstallFirst implements TurboCommand { +} diff --git a/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboInstallPack.java b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboInstallPack.java new file mode 100644 index 000000000..b3b8b10b7 --- /dev/null +++ b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboInstallPack.java @@ -0,0 +1,42 @@ +/* + * Iris is a World Generator for Minecraft Bukkit Servers + * Copyright (c) 2021 Arcane Arts (Volmit Software) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.volmit.iris.core.pregenerator.turbo.command; + +import com.volmit.iris.engine.object.IrisDimension; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.util.UUID; + +@Builder +@AllArgsConstructor +@NoArgsConstructor +@Data +public class TurboInstallPack implements TurboCommand { + @Builder.Default + private UUID pack = UUID.randomUUID(); + + @Builder.Default + private long seed = 1337; + + @Builder.Default + private IrisDimension dimension = null; +} diff --git a/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboOK.java b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboOK.java new file mode 100644 index 000000000..813a45406 --- /dev/null +++ b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboOK.java @@ -0,0 +1,22 @@ +/* + * Iris is a World Generator for Minecraft Bukkit Servers + * Copyright (c) 2021 Arcane Arts (Volmit Software) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.volmit.iris.core.pregenerator.turbo.command; + +public class TurboOK implements TurboCommand { +} diff --git a/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboSendProgress.java b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboSendProgress.java new file mode 100644 index 000000000..b8b34ae2a --- /dev/null +++ b/src/main/java/com/volmit/iris/core/pregenerator/turbo/command/TurboSendProgress.java @@ -0,0 +1,35 @@ +/* + * Iris is a World Generator for Minecraft Bukkit Servers + * Copyright (c) 2021 Arcane Arts (Volmit Software) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.volmit.iris.core.pregenerator.turbo.command; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class TurboSendProgress implements TurboCommand { + @Builder.Default + private double progress = 0; + @Builder.Default + private boolean available = false; +}