Skip to content

Commit

Permalink
Add superdense plates to the nei diagram + update dependencies (#38)
Browse files Browse the repository at this point in the history
* Update deps

* Add superdense to nei diagram

* spotlessApply (#39)

Co-authored-by: GitHub GTNH Actions <>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
FourIsTheNumber and github-actions[bot] authored Sep 15, 2024
1 parent c8e23e6 commit 8fa76e4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ dependencies {
api('com.github.GTNewHorizons:NotEnoughItems:2.6.34-GTNH:dev')

api('com.github.GTNewHorizons:EnderStorage:1.6.0:dev') {transitive=false}
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.49.60:dev')
api('com.github.GTNewHorizons:NewHorizonsCoreMod:2.6.18:dev')
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.49.105:dev')
api('com.github.GTNewHorizons:NewHorizonsCoreMod:2.6.44:dev')

compileOnly('com.github.GTNewHorizons:ForestryMC:4.9.10:dev')
compileOnly('com.github.GTNewHorizons:ForestryMC:4.9.16:dev')
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ private enum MaterialPart {
PLATES(LayoutHandler.SlotGroupKeys.PLATES, OrePrefixes.plate, OrePrefixes.foil, OrePrefixes.plateDense),
MULTI_PLATES(LayoutHandler.SlotGroupKeys.MULTI_PLATES, OrePrefixes.plateDouble, OrePrefixes.plateTriple,
OrePrefixes.plateQuadruple, OrePrefixes.plateQuintuple),
SUPERDENSE_PLATES(LayoutHandler.SlotKeys.SUPERDENSE_PLATES, OrePrefixes.plateSuperdense),

RODS(LayoutHandler.SlotGroupKeys.RODS, OrePrefixes.stick, OrePrefixes.stickLong),
BOLTS(LayoutHandler.SlotGroupKeys.BOLTS, OrePrefixes.bolt, OrePrefixes.screw),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ static final class SlotKeys {
static final Layout.SlotKey NANITES = Layout.SlotKey.create("nanites");
static final Layout.SlotKey HOT_INGOT = Layout.SlotKey.create("hot-ingot");
static final Layout.SlotKey ALLOY_PLATE = Layout.SlotKey.create("alloy-plate");
static final Layout.SlotKey SUPERDENSE_PLATES = Layout.SlotKey.create("superdense-plates");

static final Layout.SlotKey RING = Layout.SlotKey.create("ring");
static final Layout.SlotKey ROUND = Layout.SlotKey.create("round");
Expand Down Expand Up @@ -95,6 +96,7 @@ void initialize() {
optionalLayoutsBuilder.add(buildAlloyPlateLayout());
optionalLayoutsBuilder.add(buildPlatesLayout());
optionalLayoutsBuilder.add(buildMultiPlatesLayout());
optionalLayoutsBuilder.add(buildSuperdensePlateLayout());
optionalLayoutsBuilder.add(buildRodsLayout());
optionalLayoutsBuilder.add(buildBoltsLayout());
optionalLayoutsBuilder.add(buildRingLayout());
Expand Down Expand Up @@ -275,6 +277,19 @@ private Layout buildPlatesLayout() {
.build();
}

private Layout buildSuperdensePlateLayout() {
return Layout.builder()
.putSlot(
SlotKeys.SUPERDENSE_PLATES,
Slot.builder(Grid.GRID.grid(10, 11))
.setTooltip(
Tooltip.create(
Lang.GREGTECH_5_MATERIAL_PARTS.trans("superdenseplateslot"),
Tooltip.SLOT_FORMATTING))
.build())
.build();
}

private Layout buildMultiPlatesLayout() {
return Layout.builder()
.addLines(Lines.builder(Grid.GRID.grid(8, 8)).addArrow(Grid.GRID.edge(10, 8, Grid.Direction.W)).build())
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/neicustomdiagram/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ neicustomdiagram.generators.gregtech5.materialparts.multiingotsslot=Multi-ingots
neicustomdiagram.generators.gregtech5.materialparts.platesslot=Plates
neicustomdiagram.generators.gregtech5.materialparts.multiplatesslot=Multi-plates
neicustomdiagram.generators.gregtech5.materialparts.alloyplateslot=Alloy plate
neicustomdiagram.generators.gregtech5.materialparts.superdenseplateslot=Superdense plate
neicustomdiagram.generators.gregtech5.materialparts.rodsslot=Rods
neicustomdiagram.generators.gregtech5.materialparts.boltsslot=Bolts
neicustomdiagram.generators.gregtech5.materialparts.ringslot=Ring
Expand Down

0 comments on commit 8fa76e4

Please sign in to comment.