-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Computer program cleanup #647
base: main
Are you sure you want to change the base?
Conversation
…ore message and button texts separately
…Data(), replacing ButtonListProgram.onButtonPressed()
…d SburbServerData
src/main/java/com/mraof/minestuck/blockentity/ComputerBlockEntity.java
Outdated
Show resolved
Hide resolved
public ComputerScreen gui; | ||
@Nullable | ||
public PlayerIdentifier owner; | ||
//client side only | ||
public int ownerId; | ||
public Hashtable<Integer, String> latestmessage = new Hashtable<>(); | ||
public CompoundTag programData = new CompoundTag(); | ||
private SburbClientData sburbClientProgramData = new SburbClientData(this::markDirtyAndResend); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable 'latestmessage' must be private and have accessor methods.
src/main/java/com/mraof/minestuck/blockentity/ComputerBlockEntity.java
Outdated
Show resolved
Hide resolved
src/main/java/com/mraof/minestuck/blockentity/ComputerBlockEntity.java
Outdated
Show resolved
Hide resolved
src/main/java/com/mraof/minestuck/blockentity/ComputerBlockEntity.java
Outdated
Show resolved
Hide resolved
src/main/java/com/mraof/minestuck/blockentity/ComputerBlockEntity.java
Outdated
Show resolved
Hide resolved
src/main/java/com/mraof/minestuck/blockentity/ComputerBlockEntity.java
Outdated
Show resolved
Hide resolved
# Conflicts: # src/main/java/com/mraof/minestuck/blockentity/ComputerBlockEntity.java
private Runnable guiCallback = null; | ||
|
||
@Nullable | ||
private PlayerIdentifier owner; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable 'gui' must be private and have accessor methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general this looks a lot cleaner, very satisfying!
{ | ||
//TODO The implementation of this class need a serious rewrite | ||
private static final Logger LOGGER = LogManager.getLogger(); | ||
private static final int PROGRAM_DISK_CAPACITY = 2, BLANK_DISK_CAPACITY = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying to understand why there is a hard coded limit on the number of program disks. If a computer already contains a server disk and a client disk, then would it not be possible to insert a disk with a 3rd program like GristTorrent?
No description provided.