Skip to content

Commit

Permalink
abstract classes: Abstract prefix to A prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
201st-Luka committed Dec 22, 2024
1 parent 89fab23 commit e64c58e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CodingGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

- Use `PascalCase` for class names.
- Interface names should start with an `I` followed by a `PascalCase` class name.
- Abstract class names should start with an `Abstract` followed by a `PascalCase` class name.
- Abstract class names should start with an `A` followed by a `PascalCase` class name.

#### Class field names

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

import java.util.List;

public abstract class AbstractScreen extends Screen {
public abstract class AScreen extends Screen {
protected final Screen _parent;
protected final List<Drawable> drawables = Lists.newArrayList();
protected IModularMapClient _modularMapClient = (IModularMapClient) MinecraftClient.getInstance();
Expand All @@ -42,12 +42,12 @@ public abstract class AbstractScreen extends Screen {
TEXT_WIDTH = 120,
TEXT_HEIGHT = 24;

public AbstractScreen(String title, Screen parent) {
public AScreen(String title, Screen parent) {
super(Text.literal(title));
_parent = parent;
}

public AbstractScreen(String title) {
public AScreen(String title) {
this(title, null);
}

Expand Down
2 changes: 1 addition & 1 deletion src/client/java/luka/modularmap/gui/screens/MapScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import org.joml.Vector2i;

@Environment(EnvType.CLIENT)
public class MapScreen extends AbstractScreen {
public class MapScreen extends AScreen {
private final MapController _mapController;
private final AbstractMapRenderer _mapRenderer;
private final ClientPlayerEntity _player;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import net.minecraft.client.gui.screen.Screen;
import org.jetbrains.annotations.NotNull;

public class MenuScreen extends AbstractScreen {
public class MenuScreen extends AScreen {
public MenuScreen(String title, Screen parent) {
super(title, parent);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
import org.jetbrains.annotations.NotNull;
import org.joml.*;

public abstract class AbstractMapRenderer {
public abstract class AMapRenderer {
protected static final int GRID_COLOR = 0x40000000;
protected final MapController _mapController;

public AbstractMapRenderer(MapController map) {
public AMapRenderer(MapController map) {
_mapController = map;
}

Expand Down

0 comments on commit e64c58e

Please sign in to comment.