-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
1cc09b8
commit 62dc930
Showing
35 changed files
with
639 additions
and
96 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,22 +1,19 @@ | ||
package com.projecturanus.betterp2p | ||
|
||
import com.projecturanus.betterp2p.client.ModGuiHandler | ||
import com.projecturanus.betterp2p.network.ModNetwork | ||
import net.minecraftforge.fml.common.Mod | ||
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent | ||
import net.minecraftforge.fml.common.network.NetworkRegistry | ||
import org.apache.logging.log4j.Logger | ||
|
||
const val MODID = "betterp2p" | ||
|
||
@Mod(modid = MODID, modLanguageAdapter = "net.shadowfacts.forgelin.KotlinAdapter", dependencies = "required-after: appliedenergistics2") | ||
@Mod(modid = MODID, modLanguageAdapter = "net.shadowfacts.forgelin.KotlinAdapter", dependencies = "required-after: appliedenergistics2; required-after: forgelin;") | ||
object BetterP2P { | ||
lateinit var logger: Logger | ||
|
||
@Mod.EventHandler | ||
fun preInit(event: FMLPreInitializationEvent) { | ||
logger = event.modLog | ||
NetworkRegistry.INSTANCE.registerGuiHandler(this, ModGuiHandler) | ||
ModNetwork.registerNetwork() | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/java/com/projecturanus/betterp2p/capability/MemoryInfo.kt
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,5 @@ | ||
package com.projecturanus.betterp2p.capability | ||
|
||
import com.projecturanus.betterp2p.item.BetterMemoryCardModes | ||
|
||
data class MemoryInfo(var selectedIndex: Int = -1, var mode: BetterMemoryCardModes = BetterMemoryCardModes.OUTPUT) |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/projecturanus/betterp2p/client/ClientCache.kt
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,16 @@ | ||
package com.projecturanus.betterp2p.client | ||
|
||
import net.minecraft.util.EnumFacing | ||
import net.minecraft.util.math.BlockPos | ||
|
||
object ClientCache { | ||
val positions = mutableListOf<Pair<BlockPos, EnumFacing>>() | ||
var selectedPosition: BlockPos? = null | ||
var selectedFacing: EnumFacing? = null | ||
|
||
fun clear() { | ||
positions.clear() | ||
selectedPosition = null | ||
selectedFacing = null | ||
} | ||
} |
19 changes: 0 additions & 19 deletions
19
src/main/java/com/projecturanus/betterp2p/client/ModGuiHandler.kt
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
src/main/java/com/projecturanus/betterp2p/client/RenderHandler.kt
This file was deleted.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
...anus/betterp2p/client/InfoSortStrategy.kt → .../betterp2p/client/gui/InfoSortStrategy.kt
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
2 changes: 1 addition & 1 deletion
2
...ecturanus/betterp2p/client/InfoWrapper.kt → ...ranus/betterp2p/client/gui/InfoWrapper.kt
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
3 changes: 2 additions & 1 deletion
3
...ranus/betterp2p/client/WidgetScrollBar.kt → ...rp2p/client/gui/widget/WidgetScrollBar.kt
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.