More standard code formatting profile
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@ -81,10 +81,11 @@ public final class Launcher extends Applet implements AppletStub {
|
||||
private final URL documentBase;
|
||||
private boolean active = false;
|
||||
|
||||
public Launcher(Applet applet) { this(applet, null); }
|
||||
public Launcher(Applet applet) {
|
||||
this(applet, null);
|
||||
}
|
||||
|
||||
public Launcher(Applet applet, URL documentBase)
|
||||
{
|
||||
public Launcher(Applet applet, URL documentBase) {
|
||||
setLayout(new BorderLayout());
|
||||
|
||||
this.add(applet, "Center");
|
||||
@ -108,8 +109,7 @@ public final class Launcher extends Applet implements AppletStub {
|
||||
}
|
||||
}
|
||||
|
||||
public void replace(Applet applet)
|
||||
{
|
||||
public void replace(Applet applet) {
|
||||
wrappedApplet = applet;
|
||||
|
||||
applet.setStub(this);
|
||||
@ -128,14 +128,17 @@ public final class Launcher extends Applet implements AppletStub {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isActive() { return active; }
|
||||
public boolean isActive() {
|
||||
return active;
|
||||
}
|
||||
|
||||
@Override
|
||||
public URL getDocumentBase() { return documentBase; }
|
||||
public URL getDocumentBase() {
|
||||
return documentBase;
|
||||
}
|
||||
|
||||
@Override
|
||||
public URL getCodeBase()
|
||||
{
|
||||
public URL getCodeBase() {
|
||||
try {
|
||||
// TODO: 2022-10-27 Can this be changed to https?
|
||||
return new URL("http://www.minecraft.net/game/");
|
||||
@ -145,8 +148,7 @@ public final class Launcher extends Applet implements AppletStub {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getParameter(String name)
|
||||
{
|
||||
public String getParameter(String name) {
|
||||
String param = params.get(name);
|
||||
|
||||
if (param != null)
|
||||
@ -161,54 +163,62 @@ public final class Launcher extends Applet implements AppletStub {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resize(int width, int height) { wrappedApplet.resize(width, height); }
|
||||
public void resize(int width, int height) {
|
||||
wrappedApplet.resize(width, height);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resize(Dimension size) { wrappedApplet.resize(size); }
|
||||
public void resize(Dimension size) {
|
||||
wrappedApplet.resize(size);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init()
|
||||
{
|
||||
public void init() {
|
||||
if (wrappedApplet != null)
|
||||
wrappedApplet.init();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start()
|
||||
{
|
||||
public void start() {
|
||||
wrappedApplet.start();
|
||||
|
||||
active = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop()
|
||||
{
|
||||
public void stop() {
|
||||
wrappedApplet.stop();
|
||||
|
||||
active = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() { wrappedApplet.destroy(); }
|
||||
public void destroy() {
|
||||
wrappedApplet.destroy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void appletResize(int width, int height) { wrappedApplet.resize(width, height); }
|
||||
public void appletResize(int width, int height) {
|
||||
wrappedApplet.resize(width, height);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVisible(boolean visible)
|
||||
{
|
||||
public void setVisible(boolean visible) {
|
||||
super.setVisible(visible);
|
||||
|
||||
wrappedApplet.setVisible(visible);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void paint(Graphics graphics) {}
|
||||
public void paint(Graphics graphics) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(Graphics graphics) {}
|
||||
public void update(Graphics graphics) {
|
||||
}
|
||||
|
||||
public void setParameter(String name, String value) { params.put(name, value); }
|
||||
public void setParameter(String name, String value) {
|
||||
params.put(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user