end me
This commit is contained in:
parent
5ccebb7194
commit
dce3487675
3 changed files with 41 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -3,7 +3,7 @@
|
||||||
/build/
|
/build/
|
||||||
/obf/
|
/obf/
|
||||||
/Obf/
|
/Obf/
|
||||||
|
/new-obf/
|
||||||
.classpath
|
.classpath
|
||||||
.project
|
.project
|
||||||
.settings/
|
.settings/
|
||||||
|
|
38
Client/src/main/java/com/baseband/client/ASyncRunner.java
Normal file
38
Client/src/main/java/com/baseband/client/ASyncRunner.java
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 Jess H & Daniella H. All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Unauthorized copying of this file via any medium is Strictly Prohibited.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.baseband.client;
|
||||||
|
|
||||||
|
//JessSystemV
|
||||||
|
//7:28 AM, 2023-10-05
|
||||||
|
//God fucking help me
|
||||||
|
|
||||||
|
/*
|
||||||
|
ASyncRunner aSyncRunner = new ASyncRunner(() -> {
|
||||||
|
//Do big complicated thing that we can't have on tick methods *or* render methods
|
||||||
|
//Fill CopyOnWriteArrayList with Valid Holes grabbed from world for example
|
||||||
|
//but this would be instantiated in the class not method
|
||||||
|
});
|
||||||
|
|
||||||
|
@Subscribe
|
||||||
|
public void tick(SafeTickEvent e) {
|
||||||
|
aSyncRunner.run(); //run this on every tick
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
public class ASyncRunner {
|
||||||
|
private final Thread thread;
|
||||||
|
|
||||||
|
public ASyncRunner(Runnable runnable) {
|
||||||
|
this.thread = new Thread(runnable);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void run() {
|
||||||
|
if(!thread.isAlive()) {
|
||||||
|
thread.start();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -31,6 +31,8 @@ public class Utils {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static void check() {
|
public static void check() {
|
||||||
//Check if user is banned
|
//Check if user is banned
|
||||||
String[] strings = new String[]{
|
String[] strings = new String[]{
|
||||||
|
|
Loading…
Add table
Reference in a new issue