Edivad99 / SolarGeneration

Produce energy from the sun, use your head for recharging your inventory. This is a mod for minecraft
GNU Affero General Public License v3.0
7 stars 9 forks source link

Implement custom int tracker (Should fix #14) #15

Closed HyCraftHD closed 4 years ago

HyCraftHD commented 4 years ago

Here is a working example on a dedicated server: image

Edivad99 commented 4 years ago

It gives me this error as soon as I open the GUI. java.lang.Error: Unresolved compilation problem: The field Container.listeners is not visible at edivad.solargeneration.blocks.containers.TrackedContainer.detectAndSendChanges(TrackedContainer.java:45) ~[?:?] {re:classloading} at net.minecraft.inventory.container.Container.addListener(Container.java:98) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraftforge.fml.network.NetworkHooks.openGui(NetworkHooks.java:194) ~[?:?] {re:classloading} at net.minecraftforge.fml.network.NetworkHooks.openGui(NetworkHooks.java:154) ~[?:?] {re:classloading} at edivad.solargeneration.blocks.SolarPanel.onBlockActivated(SolarPanel.java:95) ~[?:?] {re:classloading} at net.minecraft.block.BlockState.onBlockActivated(BlockState.java:296) ~[?:?] {re:classloading} at net.minecraft.server.management.PlayerInteractionManager.func_219441_a(PlayerInteractionManager.java:331) ~[?:?] {re:classloading} at net.minecraft.network.play.ServerPlayNetHandler.processTryUseItemOnBlock(ServerPlayNetHandler.java:870) ~[?:?] {re:classloading} at net.minecraft.network.play.client.CPlayerTryUseItemOnBlockPacket.processPacket(CPlayerTryUseItemOnBlockPacket.java:42) ~[?:?] {re:classloading} at net.minecraft.network.play.client.CPlayerTryUseItemOnBlockPacket.processPacket(CPlayerTryUseItemOnBlockPacket.java:12) ~[?:?] {re:classloading} at net.minecraft.network.PacketThreadUtil.lambda$checkThreadAndEnqueue$0(PacketThreadUtil.java:19) ~[?:?] {re:classloading} at net.minecraft.util.concurrent.TickDelayedTask.run(TickDelayedTask.java:20) ~[?:?] {re:classloading} at net.minecraft.util.concurrent.ThreadTaskExecutor.run(ThreadTaskExecutor.java:140) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.concurrent.RecursiveEventLoop.run(RecursiveEventLoop.java:22) ~[?:?] {re:classloading} at net.minecraft.util.concurrent.ThreadTaskExecutor.driveOne(ThreadTaskExecutor.java:110) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServer.java:726) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.driveOne(MinecraftServer.java:720) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.concurrent.ThreadTaskExecutor.drainTasks(ThreadTaskExecutor.java:97) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.runScheduledTasks(MinecraftServer.java:705) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:650) ~[?:?] {re:classloading,pl:accesstransformer:B} at java.lang.Thread.run(Unknown Source) ~[?:1.8.0_212] {}

HyCraftHD commented 4 years ago

You need to rerun ./gradlew genEclipseRuns eclipse or the intellij thing, because I added an at transformer.