Architectural Design Pattern - Jacob1225/pufferfish-minecraft-mod GitHub Wiki

The main focus of the arcade machine mod requires the use of a graphical user interface (GUI). Because of this, we must use (or inherit) any GUI classes that are currently being used by Minecraft Forge. One of which is the Screen class, which has all the necessary methods to have a GUI screen.

The class is absolutely necessary for making any advancements to the mod. Minecraft Forge uses the Screen class which is an architectural pattern for all other classes that use some GUI. Therefore, the team will need to adapt to such a pattern and understand all necessary methods within that class to build our project.

Therefore, there is a Screen Pattern which helps address and solve any requirements regarding the user interface of the game, from start to finish. One example is the ability to bind an existing .jpg/.png image. Forge has methods that are able to do this, and we adapted those methods into our own code to bind our own icons (such as the invader aliens and the user's spaceship).

At the start of development, this class was heavily researched as it will be a key component in our project. Without understanding this Screen Pattern, no advancements would be made.