-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next-4.3.0' into 1.18.x
- Loading branch information
Showing
145 changed files
with
4,593 additions
and
3,002 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,5 @@ logs/ | |
*.dot | ||
|
||
src/generated/ | ||
|
||
raw-assets/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 9 additions & 5 deletions
14
src/api/java/dev/compactmods/machines/api/room/MachineRoomConnections.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
package dev.compactmods.machines.api.room; | ||
|
||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.resources.ResourceKey; | ||
import net.minecraft.server.level.ServerLevel; | ||
import net.minecraft.world.level.ChunkPos; | ||
import net.minecraft.world.level.Level; | ||
|
||
import javax.annotation.Nonnull; | ||
import java.util.Collection; | ||
import java.util.Optional; | ||
|
||
public interface MachineRoomConnections { | ||
@Nonnull | ||
Optional<ChunkPos> getConnectedRoom(int machineId); | ||
Optional<ChunkPos> getConnectedRoom(ResourceKey<Level> machineLevel, BlockPos machinePos); | ||
|
||
@Nonnull Collection<Integer> getMachinesFor(ChunkPos chunkPos); | ||
|
||
void registerMachine(int machine); | ||
void registerMachine(ResourceKey<Level> machineLevel, BlockPos machinePos); | ||
|
||
void registerRoom(ChunkPos roomChunk); | ||
|
||
void connectMachineToRoom(int machine, ChunkPos room); | ||
void changeMachineLink(int machine, ChunkPos newRoom); | ||
void connectMachineToRoom(ResourceKey<Level> machineLevel, BlockPos machinePos, ChunkPos room); | ||
void changeMachineLink(ResourceKey<Level> machineLevel, BlockPos machinePos, ChunkPos newRoom); | ||
|
||
void disconnect(int machine); | ||
void disconnect(ResourceKey<Level> level, BlockPos pos); | ||
|
||
void unregisterRoom(ChunkPos room); | ||
} |
3 changes: 2 additions & 1 deletion
3
src/api/java/dev/compactmods/machines/api/room/history/IRoomHistoryItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
package dev.compactmods.machines.api.room.history; | ||
|
||
import dev.compactmods.machines.api.location.IDimensionalBlockPosition; | ||
import dev.compactmods.machines.api.location.IDimensionalPosition; | ||
|
||
public interface IRoomHistoryItem { | ||
|
||
IDimensionalPosition getEntryLocation(); | ||
|
||
int getMachine(); | ||
IDimensionalBlockPosition getMachine(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.