This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
generated from LabyMod/1.16.5-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from rettichlp/develop
v1.0.0-beta
- Loading branch information
Showing
33 changed files
with
1,086 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
name: Bug oder Fehler | ||
about: Melde hier einen Bug oder Fehler für das Projekt | ||
title: UCAB - Füge hier eine kurze Beschreibung ein | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Beschreibe den Bug oder Fehler** | ||
Eine klare und präzise Beschreibung des Fehlers. | ||
|
||
**Wie kann der Bug oder Fehler reproduziert werden?** | ||
Schritte zum Reproduzieren des Verhaltens: | ||
1. Gehen zu "..." | ||
2. Klicke auf "..." | ||
3. Scrolle nach unten zu "..." | ||
4. Dort ist der Fehler | ||
|
||
**Erwartetes Verhalten** | ||
Eine klare und präzise Beschreibung dessen, was erwartet wurde. | ||
|
||
**Screenshots** | ||
Füge gegebenenfalls Screenshots hinzu, um das Problem zu erläutern. | ||
|
||
**Weitere Informationen (bitte ausfüllen):** | ||
Minecraft Version: `1.16.5` | ||
Addon Version: `x.y.z` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Feature | ||
about: Stelle hier eine Idee oder Erweiterung für das Projekt vor | ||
title: UCAF - Füge hier eine kurze Beschreibung ein | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Aus welchem Grund ist die Idee oder Erweiterung hilfreich?** | ||
Eine klare und präzise Beschreibung der Idee oder Erweiterung. | ||
|
||
**Was soll passieren, wie soll die Idee oder Erweiterung umgesetzt werden?** | ||
Eine klare und präzise Beschreibung dessen, was passieren soll. | ||
- [ ] ... | ||
- [ ] ... | ||
|
||
**Sonstiges** | ||
Füge hier jeglichen anderen Kontext oder Screenshots zur Funktionsanfrage hinzu. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Gradle release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew downloadAPI shadowJar | ||
- name: Upload jar | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Artifacts | ||
path: build/libs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
118 changes: 19 additions & 99 deletions
118
src/main/java/com/rettichlp/UnicacityAddon/UnicacityAddon.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,122 +1,42 @@ | ||
package com.rettichlp.UnicacityAddon; | ||
|
||
import com.google.gson.JsonObject; | ||
import com.rettichlp.UnicacityAddon.base.abstraction.AbstractionLayer; | ||
import com.rettichlp.UnicacityAddon.base.command.CommandHandler; | ||
import com.rettichlp.UnicacityAddon.base.text.ColorCode; | ||
import com.rettichlp.UnicacityAddon.base.text.Message; | ||
import com.rettichlp.UnicacityAddon.base.config.ConfigSettings; | ||
import com.rettichlp.UnicacityAddon.base.event.UCEventHandler; | ||
import com.rettichlp.UnicacityAddon.base.faction.FactionHandler; | ||
import com.rettichlp.UnicacityAddon.base.module.UCModuleHandler; | ||
import net.labymod.api.LabyModAddon; | ||
import net.labymod.main.LabyMod; | ||
import net.labymod.settings.elements.HeaderElement; | ||
import net.labymod.ingamegui.ModuleCategoryRegistry; | ||
import net.labymod.settings.elements.SettingsElement; | ||
import net.minecraft.client.Minecraft; | ||
|
||
import java.util.List; | ||
import java.util.logging.Logger; | ||
|
||
/** | ||
* @author RettichLP | ||
*/ | ||
public class UnicacityAddon extends LabyModAddon { | ||
|
||
public static final String VERSION = "1.0.0"; | ||
public static Logger LOGGER = Logger.getLogger("UnicacityAddon"); | ||
public static JsonObject CONFIG; | ||
public static final LabyMod LABYMOD = LabyMod.getInstance(); | ||
public static final Minecraft MINECRAFT = Minecraft.getInstance(); | ||
public static final String VERSION = "1.0.0-beta"; | ||
public static UnicacityAddon ADDON; | ||
|
||
@Override | ||
public void onEnable() { | ||
// CommandHandler | ||
AbstractionLayer.getLabymod().getEventService().registerListener(new CommandHandler()); | ||
ADDON = this; | ||
|
||
// Events | ||
UCEventHandler.registerEvents(); | ||
UCModuleHandler.registerModules(); | ||
|
||
FactionHandler.getPlayerFactionMap(); | ||
FactionHandler.getPlayerRankMap(); | ||
|
||
ModuleCategoryRegistry.loadCategory(UCModuleHandler.UNICACITY); | ||
} | ||
|
||
@Override public void loadConfig() { | ||
CONFIG = getConfig(); | ||
@Override | ||
public void loadConfig() { | ||
} | ||
|
||
@Override | ||
protected void fillSettings(List<SettingsElement> list) { | ||
|
||
list.add(new HeaderElement(Message.getBuilder() | ||
.of("U").color(ColorCode.RED).bold().advance() | ||
.of("nica").color(ColorCode.BLUE).bold().advance() | ||
.of("C").color(ColorCode.RED).bold().advance() | ||
.of("ity").color(ColorCode.BLUE).bold().advance() | ||
.of("A").color(ColorCode.RED).bold().advance() | ||
.of("ddon").color(ColorCode.BLUE).bold().advance() | ||
.space() | ||
.of("v" + VERSION).color(ColorCode.BLUE).bold().advance() | ||
.space() | ||
.of("-").color(ColorCode.GRAY).bold().advance() | ||
.space() | ||
.of("by RettichLP").color(ColorCode.GOLD).advance() | ||
.create())); | ||
|
||
/* | ||
// jobs | ||
list.add(new HeaderElement(Message.getBuilder() | ||
.of("Jobs").color(ColorCode.WHITE).bold().advance() | ||
.create())); | ||
list.add(new BooleanElement("Auto /dropammo", | ||
this, | ||
new ControlElement.IconData(Material.ARROW), | ||
"command.jobs.dropammo", | ||
AbstractionLayer.getConfig().getCommandJobsDropammo())); | ||
list.add(new BooleanElement("Automatisch /droptransport", | ||
this, | ||
new ControlElement.IconData(Material.CHEST), | ||
"command.jobs.droptransport", | ||
AbstractionLayer.getConfig().getCommandJobsDroptransport())); | ||
list.add(new BooleanElement("Auto /dropwaste", | ||
this, | ||
new ControlElement.IconData(Material.CAULDRON), | ||
"command.jobs.dropwaste", | ||
AbstractionLayer.getConfig().getCommandJobsDropwaste())); | ||
// factions | ||
list.add(new HeaderElement(Message.getBuilder() | ||
.of("Fraktionen").color(ColorCode.WHITE).bold().advance() | ||
.create())); | ||
list.add(new BooleanElement("Toggle1", | ||
this, | ||
new ControlElement.IconData(Material.CAULDRON), | ||
"config.factions.toggle1", | ||
UnicacityAddonConfig.factions_toggle1)); | ||
// any | ||
list.add(new HeaderElement(Message.getBuilder() | ||
.of("").color(ColorCode.WHITE).bold().advance() | ||
.create())); | ||
list.add(new BooleanElement("Tankwarnung", | ||
this, | ||
new ControlElement.IconData(Material.BUCKET), | ||
"config.car.tankWarning", | ||
AbstractionLayer.getConfig().getEventCarTankWarning())); | ||
BooleanElement jobs = new BooleanElement("Jobs", | ||
this, | ||
new ControlElement.IconData(Material.FISHING_ROD), | ||
"config.job", | ||
true); | ||
jobs.setSubSettings(jobSettings); | ||
list.add(jobs); | ||
BooleanElement faction = new BooleanElement("Fraktion", | ||
this, | ||
new ControlElement.IconData(Material.FISHING_ROD), | ||
"config.faction", | ||
true); | ||
faction.setSubSettings(factionSettings); | ||
list.add(faction); | ||
*/ | ||
ConfigSettings.createConfig(this, list); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
src/main/java/com/rettichlp/UnicacityAddon/base/abstraction/Config.java
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
src/main/java/com/rettichlp/UnicacityAddon/base/abstraction/ConfigImpl.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.