Skip to content

Commit 85409ca

Browse files
committed
API: IMiniField defaults server data, remove completeCraft + doRecScan
1 parent f20b42f commit 85409ca

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/api/java/dev/compactmods/crafting/api/field/IMiniaturizationField.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,8 @@ default Stream<BlockPos> getProjectorPositions() {
3333

3434
void clearRecipe();
3535

36-
void completeCraft();
37-
3836
EnumCraftingState getCraftingState();
3937

40-
void doRecipeScan();
41-
4238
void setCraftingState(EnumCraftingState state);
4339

4440
default void tick() {
@@ -55,9 +51,11 @@ default void checkLoaded() {
5551

5652
void registerListener(LazyOptional<IFieldListener> listener);
5753

58-
CompoundNBT serverData();
54+
default CompoundNBT serverData() {
55+
return new CompoundNBT();
56+
}
5957

60-
void loadServerData(CompoundNBT nbt);
58+
default void loadServerData(CompoundNBT nbt) {}
6159

6260
default CompoundNBT clientData() {
6361
CompoundNBT data = new CompoundNBT();

0 commit comments

Comments
 (0)