From c21516568023900c4ab2582c83242722b051b7bd Mon Sep 17 00:00:00 2001 From: Misaka Date: Thu, 8 Jul 2021 14:21:07 +0300 Subject: [PATCH] you got java, you got classes, and the first thing you do is to have *everything* put into the same class. do you have any idea how bad this is, do you have any idea that you are literally not using the main part of java? (c) FarmerThanos --- src/main/code/chaos/horny/HentaiEvents.java | 19 ++++++++++++ src/main/code/chaos/horny/HentaiMain.java | 29 ++++--------------- .../horny/interfaces/HentaiInterfaces.java | 5 ++++ 3 files changed, 30 insertions(+), 23 deletions(-) create mode 100644 src/main/code/chaos/horny/HentaiEvents.java create mode 100644 src/main/code/chaos/horny/interfaces/HentaiInterfaces.java diff --git a/src/main/code/chaos/horny/HentaiEvents.java b/src/main/code/chaos/horny/HentaiEvents.java new file mode 100644 index 0000000..20f16c6 --- /dev/null +++ b/src/main/code/chaos/horny/HentaiEvents.java @@ -0,0 +1,19 @@ +package chaos.horny; + +import arc.Events; +import mindustry.game.EventType; + +public class HentaiEvents { + public HentaiEvents(){ + Events.on(EventType.WorldLoadEvent.class,r->{ + //hornySoundsMap.get("worldLoadEvent").play(1f, 1f, 0f); + }); + Events.on(EventType.UnitDestroyEvent.class,e->{ + if(e.unit.isPlayer()){ + //hornySoundsMap.get("yamete_kudosai").play(1f, 1f, 0f); + }else{ + //hornySoundsMap.get("hornyOhNo1").play(1f, 1f, 0f); + } + }); + } +} diff --git a/src/main/code/chaos/horny/HentaiMain.java b/src/main/code/chaos/horny/HentaiMain.java index f36c255..7772183 100644 --- a/src/main/code/chaos/horny/HentaiMain.java +++ b/src/main/code/chaos/horny/HentaiMain.java @@ -2,13 +2,11 @@ //owned by horny part of cumunity -import arc.Events; import arc.audio.Sound; -import mindustry.game.EventType; +import chaos.horny.interfaces.HentaiInterfaces; import mindustry.game.Schematic; -import java.util.HashMap; -import java.util.Map; +import java.util.*; import static mindustry.Vars.ui; @@ -19,34 +17,19 @@ public class HentaiMain{ public HentaiMain(){ if(showHornyConfirm()){ - eventsLoader(); - interfaceOverride(); loadAssets(); + new HentaiEvents(); + new HentaiInterfaces(); } } -//you got java, you got classes, and the first thing you do is to have *everything* put into the same class. do you have any idea how bad this is, do you have any idea that you are literally not using the main part of java? - public void eventsLoader(){ - Events.on(EventType.WorldLoadEvent.class,r->{ - //hornySoundsMap.get("worldLoadEvent").play(1f, 1f, 0f); - }); - Events.on(EventType.UnitDestroyEvent.class,e->{ - if(e.unit.isPlayer()){ - //hornySoundsMap.get("yamete_kudosai").play(1f, 1f, 0f); - }else{ - //hornySoundsMap.get("hornyOhNo1").play(1f, 1f, 0f); - } - }); - } - public void interfaceOverride(){ - //some custom interfaces and menus should be there - } + public void loadAssets(){ //coming soon, assets in active search. If you can help with search send any content to misakacha2545@gmail.com or сестрёнка#8227 } private boolean showHornyConfirm(){ try{ - ui.showConfirm("@confirm", "Is you 18+ older?", () -> { + ui.showConfirm("@confirm", "Are you 18+ older?", () -> { throw new RuntimeException("Hentai is confirmed"); }); }catch (Exception confirmed){ diff --git a/src/main/code/chaos/horny/interfaces/HentaiInterfaces.java b/src/main/code/chaos/horny/interfaces/HentaiInterfaces.java new file mode 100644 index 0000000..ea67219 --- /dev/null +++ b/src/main/code/chaos/horny/interfaces/HentaiInterfaces.java @@ -0,0 +1,5 @@ +package chaos.horny.interfaces; + +public class HentaiInterfaces { + //some custom interfaces and menus should be there +}