Skip to content

Commit

Permalink
move color to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mystchonky committed Nov 11, 2023
1 parent 0eebfb2 commit ac9e163
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import net.minecraft.world.inventory.Slot;

public abstract class MachineScreen<T extends MachineMenu> extends EIOScreen<T> {
public final static int slotColor = -2130706433;

Check failure on line 13 in src/machines/java/com/enderio/machines/client/gui/screen/MachineScreen.java

View workflow job for this annotation

GitHub Actions / runner / checkstyle

[checkstyle] reported by reviewdog 🐶 'static' modifier out of order with the JLS suggestions. Raw Output: /github/workspace/./src/machines/java/com/enderio/machines/client/gui/screen/MachineScreen.java:13:18: error: 'static' modifier out of order with the JLS suggestions. (com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck)

Check failure on line 13 in src/machines/java/com/enderio/machines/client/gui/screen/MachineScreen.java

View workflow job for this annotation

GitHub Actions / runner / checkstyle

[checkstyle] reported by reviewdog 🐶 Name 'slotColor' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. Raw Output: /github/workspace/./src/machines/java/com/enderio/machines/client/gui/screen/MachineScreen.java:13:29: error: Name 'slotColor' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. (com.puppycrawl.tools.checkstyle.checks.naming.ConstantNameCheck)
protected MachineScreen(T pMenu, Inventory pPlayerInventory, Component pTitle) {
super(pMenu, pPlayerInventory, pTitle);
}
Expand All @@ -26,7 +27,7 @@ public void renderSlot(GuiGraphics guiGraphics, Slot slot) {
if (slot.hasItem()) {
guiGraphics.pose().pushPose();
guiGraphics.pose().translate(0.0F, 0.0F, 300F);
guiGraphics.fill(slot.x, slot.y, slot.x + 16, slot.y + 16, -2130706433);
guiGraphics.fill(slot.x, slot.y, slot.x + 16, slot.y + 16, slotColor);
guiGraphics.pose().popPose();
}
}
Expand Down

0 comments on commit ac9e163

Please sign in to comment.