Skip to content

Commit

Permalink
Tweak spotless import order
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Jul 31, 2023
1 parent 3b18b6f commit 13bf340
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 20 deletions.
16 changes: 9 additions & 7 deletions codeformat/mega.importorder
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
8=gripe
7=me
6=appeng
5=cpw
4=net
3=io
0=java
2=org
1=com
0=java
5=net
3=it
6=cpw
7=appeng
8=appbot
9=me
10=de
11=gripe
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private static void populateTab(CreativeModeTab.ItemDisplayParameters itemDispla
var item = itemDef.asItem();

// For block items, the block controls the creative tab
if (item instanceof AEBaseBlockItem baseItem && baseItem.getBlock()instanceof AEBaseBlock baseBlock) {
if (item instanceof AEBaseBlockItem baseItem && baseItem.getBlock() instanceof AEBaseBlock baseBlock) {
baseBlock.addToMainCreativeTab(output);
} else if (item instanceof AEBaseItem baseItem) {
baseItem.addToMainCreativeTab(output);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

import java.util.List;

import appbot.ABItems;

import appeng.api.upgrades.Upgrades;
import appeng.core.localization.GuiText;

import appbot.ABItems;

public final class AppBotIntegration {
public static void initUpgrades() {
AppBotItems.getPortables()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import java.util.List;

import appbot.item.ManaCellItem;
import appbot.item.PortableManaCellItem;

import appeng.core.definitions.ItemDefinition;
import appeng.items.materials.MaterialItem;
import appeng.items.storage.StorageTier;

import appbot.item.ManaCellItem;
import appbot.item.PortableManaCellItem;

import gripe._90.megacells.definition.MEGAItems;
import gripe._90.megacells.util.Utils;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,22 @@ public class DecompressionService implements IGridService, IGridServiceProvider

@Override
public void addNode(IGridNode node) {
if (node.getOwner()instanceof ChestBlockEntity chest) {
if (node.getOwner() instanceof ChestBlockEntity chest) {
chests.add(chest);
}

if (node.getOwner()instanceof DriveBlockEntity drive) {
if (node.getOwner() instanceof DriveBlockEntity drive) {
drives.add(drive);
}
}

@Override
public void removeNode(IGridNode node) {
if (node.getOwner()instanceof ChestBlockEntity chest) {
if (node.getOwner() instanceof ChestBlockEntity chest) {
chests.remove(chest);
}

if (node.getOwner()instanceof DriveBlockEntity drive) {
if (node.getOwner() instanceof DriveBlockEntity drive) {
drives.remove(drive);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ private void portableModel(ItemDefinition<?> portable, String screenType, Resour
var tierSuffix = path.substring(path.lastIndexOf('_') + 1);
singleTexture(path, mcLoc("item/generated"), "layer0",
Utils.makeId("item/cell/portable/portable_cell_%s_screen".formatted(screenType)))
.texture("layer1", PORTABLE_CELL_LED).texture("layer2", housingTexture)
.texture("layer3", "item/cell/portable/portable_cell_side_%s".formatted(tierSuffix));
.texture("layer1", PORTABLE_CELL_LED).texture("layer2", housingTexture)
.texture("layer3", "item/cell/portable/portable_cell_side_%s".formatted(tierSuffix));
}

private void driveCell(String texture) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private CompoundTag getTag() {
public static RadioactiveCellInventory createInventory(ItemStack o, ISaveProvider container) {
Objects.requireNonNull(o, "Cannot create cell inventory for null itemstack");

if (!(o.getItem()instanceof MEGARadioactiveCell cellType)) {
if (!(o.getItem() instanceof MEGARadioactiveCell cellType)) {
return null;
}

Expand Down

0 comments on commit 13bf340

Please sign in to comment.