reform nn_EnvironmentRequest (i did a stupid)

This commit is contained in:
2026-06-04 12:27:04 -03:00
parent f71c5493ed
commit f2db7450ba

View File

@@ -1,13 +1,21 @@
package org.neoflock.NeoNucleus;
public final class nn_EnvironmentRequest {
public final class nn_EnvironmentRequest extends PointerBackedClass {
public final nn_Computer computer;
public final nn_EnvironmentAction action;
private nn_EnvironmentRequest(nn_Computer computer, nn_EnvironmentAction action) {
// these three props below can be nullable
public final Double energy;
public final nn_Beep beep;
public final nn_MorseBeep morseBeep;
private nn_EnvironmentRequest(
nn_Computer computer, nn_EnvironmentAction action,
Double energy, nn_Beep beep, nn_MorseBeep morseBeep
) {
this.computer = computer;
this.action = action;
this.energy = energy;
this.beep = beep;
this.morseBeep = morseBeep;
}
public native double getEnergy();
public native nn_Beep getBeep();
public native nn_MorseBeep getMorseBeep();
}