Skip to content

Commit

Permalink
Add superdense to nei diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
FourIsTheNumber committed Sep 15, 2024
1 parent f89c241 commit a3757ad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
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,15 @@ 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 a3757ad

Please sign in to comment.