split client and server 2

This commit is contained in:
Sen 2025-05-05 18:27:06 +02:00
parent 2fa521c3d1
commit b17efb5b07
158 changed files with 1080 additions and 515 deletions

View file

@ -0,0 +1,20 @@
package game.util;
public abstract class LazyLoadBase<T>
{
private T value;
private boolean isLoaded = false;
public T getValue()
{
if (!this.isLoaded)
{
this.isLoaded = true;
this.value = this.load();
}
return this.value;
}
protected abstract T load();
}