-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
738 additions
and
261 deletions.
There are no files selected for viewing
Binary file not shown.
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
15 changes: 15 additions & 0 deletions
15
src/main/java/net/nussi/dedicated_applied_energistics/misc/RedisHelper.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package net.nussi.dedicated_applied_energistics.misc; | ||
|
||
import appeng.api.storage.MEStorage; | ||
import net.nussi.dedicated_applied_energistics.DedicatedAppliedEnergisticsController; | ||
import net.nussi.dedicated_applied_energistics.blockentities.InterDimensionalInterfaceBlockEntity; | ||
|
||
public class RedisHelper { | ||
|
||
public static String getPath(MEStorage storage, InterDimensionalInterfaceBlockEntity blockEntity) { | ||
return DedicatedAppliedEnergisticsController.CONFIG_VALUE_HOST_ID.get() + "/" + | ||
blockEntity.getBlockPos().getX() + "_" + blockEntity.getBlockPos().getY() + "_" + blockEntity.getBlockPos().getZ() + "/" + | ||
storage.hashCode(); | ||
} | ||
|
||
} |
Oops, something went wrong.