Skip to content

Commit 64025da

Browse files
committed
Consistent param names
1 parent 98a2146 commit 64025da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/aztech/modern_industrialization/machines/multiblocks/structure/StructureMultiblockInputFormatters.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ public static String casing(MachineCasing casing) {
7373
}
7474

7575
@Nullable
76-
public static BlockState preview(String inputPreview) {
77-
if (inputPreview == null || inputPreview.isEmpty()) {
76+
public static BlockState preview(String input) {
77+
if (input == null || input.isEmpty()) {
7878
return Blocks.AIR.defaultBlockState();
7979
}
8080
var registry = BuiltInRegistries.BLOCK.asLookup();
8181

8282
try {
83-
var blockResult = BlockStateParser.parseForBlock(registry, inputPreview, true);
83+
var blockResult = BlockStateParser.parseForBlock(registry, input, true);
8484
return blockResult.blockState();
8585
} catch (CommandSyntaxException ignored) {
8686
return null;
@@ -96,14 +96,14 @@ public static String preview(BlockState preview) {
9696
}
9797

9898
@Nullable
99-
public static List<StructureMemberTest> members(String inputMembers) {
100-
if (inputMembers == null || inputMembers.isEmpty()) {
99+
public static List<StructureMemberTest> members(String input) {
100+
if (input == null || input.isEmpty()) {
101101
return new ArrayList<>();
102102
}
103103
var registry = BuiltInRegistries.BLOCK.asLookup();
104104

105105
List<StructureMemberTest> members = new ArrayList<>();
106-
for (String part : inputMembers.split(";")) {
106+
for (String part : input.split(";")) {
107107
if (part.startsWith("#")) {
108108
ResourceLocation tagId = ResourceLocation.tryParse(part.substring(1));
109109
if (tagId == null) {

0 commit comments

Comments
 (0)