Skip to content

Commit 2b8a4a1

Browse files
authored
Merge pull request #1 from Minecraftbe/testpr
practise open a pr
2 parents 3d8a63b + 3e4a57b commit 2b8a4a1

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ Additional Resources:
2323
==========
2424
Community Documentation: https://docs.neoforged.net/
2525
NeoForged Discord: https://discord.neoforged.net/
26+
27+
28+
1111111111

src/main/java/cn/minecraftbe/examplemod/events/BuildMachineEventHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static void onUseItemOnBlock(UseItemOnBlockEvent event) {
1717
}
1818

1919
public static boolean checkMultiblockMachine(){
20-
20+
return true;
2121
}
2222

2323

src/main/java/cn/minecraftbe/examplemod/machine/MultiBlock.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ public class MultiBlock {
1717
private final List<Layer> structure;
1818
private final LargeMachineBlock controller;
1919

20-
public Object check()
20+
public Object check(){
21+
return null;
22+
}
2123
@Getter
2224
@Setter
2325
@AllArgsConstructor
@@ -31,16 +33,17 @@ public static class Builder {
3133
private final Block controller;
3234
private Layer previousLayer;
3335

34-
public Builder(Map<String, Block> map) {
36+
public Builder(Map<CharSequence, Block> map, Block controller) {
3537
this.map = map;
38+
this.controller = controller;
3639
}
3740

3841
public Builder newLayer(List<String> list) {
3942
if (!Objects.isNull(previousLayer)) {
40-
structure.add(previousLayer.build());
43+
structure.add(previousLayer);
4144
}
42-
previousLayer = new Layer.LayerBuilder(map);
43-
return previousLayer;
45+
previousLayer = null;
46+
return this;
4447
}
4548

4649
private List<Block> parse(String s) {

0 commit comments

Comments
 (0)