Posted March 12, 20196 yr I'm trying to make a capacitor block with one side being an output and the rest of the sides being input. How would I go about implementing this? Edited March 15, 20196 yr by ProspectPyxis
March 12, 20196 yr Return a different capability depending on the side (facing) passed in. About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
March 12, 20196 yr Author So what I should do is have two capabilities, one that can only input and another that can only output, return those for the right faces, and somehow sync the two energy values?
March 12, 20196 yr No, have one normal energy storage. Then have a wrapper for that storage that can only receive and another wrapper that can only send. About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
March 13, 20196 yr Author A bit of a noob question now, but how would I do that? I'm trying to look for some code examples but I'm coming up dry.
March 13, 20196 yr 1x energy storage in an instance field 1x (anonymous) class that wraps said energy storage (all methods delegate to the energy storage except canRecieve and receiveEnergy) in an instance field 1x (anonymous) class that wraps said energy storage (all methods delegate to the energy storage except canExtract and extractEnergy) in an instance field About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
March 13, 20196 yr Author So from what I'm understanding, let's say my energy container class is named EnergyManager. I should make one primary EnergyManager instance, then have two other anonymous EnergyManager instances that override every method to only interact with the first instance. Am I going about this correctly?
March 14, 20196 yr Yes, if EnergyManager extends EnergyStorage it implements IEnergyStorage About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.