Comments (3)
For initialization I'd say ModuleProvider.createModule
is well enough suited (just grab the NBT from the stack provided there). Alternatively onEnable
(read on).
For saving what you'd probably really want is to write it back to the stack in onDisable
, so it's also saved on chunk unloads and such? At least that should be called there, too... I think. If it isn't yet I just forgot. So that plus I'll add IInventory
to the Casing
interface and that should be all you need, right?
Out of curiosity, what state do you want to store in the module's item stack? (Since they're ususally non-persistent / reset when the computer powers down I didn't really expect having to store data on their items.)
from tis-3d.
I do not have any intentions to use it just yet, I just thought it might be nice if you could make the module, in case something changes "physically", keep this state even when you uninstall it and install it in some other casing, since really only data should be reset, not "phyical changes to the module itself". Resetting that too on power loss if it doesn't even "use electricity" to happen would make no sense.
from tis-3d.
from tis-3d.
Related Issues (20)
- Why custom raycast when it is allready implemented in mc HOT 3
- Feature Suggestion: Pocket Terminal HOT 1
- [1.18.2 Forge] Timer module appears to be capable of overwriting data in ROM module
- API: instruction Register
- Module output not quite working HOT 6
- Invisible Terminal Input HOT 1
- Shaders Visual Bug HOT 2
- [1.7.10] Non-working Casings cause FPS drops HOT 1
- [1.7.10] Under certain conditions, the Redstone Module does not receive a redstone signal HOT 1
- [1.7.10] Two bugs in Terminal Module HOT 1
- [1.7.10] Missing information in the Reference Manual HOT 1
- [1.7.10] Data is duplicated if transfer occurs during save/load HOT 9
- Network serialization issue - Minecraft 1.19.2
- [1.19.2] net.minecraft.client.OptionInstance becomes final HOT 1
- Some renders you are free to use
- Mod gives a ResourceLocationException error HOT 3
- Immediate crash as Minecraft is starting up HOT 3
- [Request] Impliment a way for the terminal module to output to a Create mod display link HOT 1
- Undocumented features
- [Bug? Quirk?] Output instructions "borrow" ticks from the next instruction, causing rare
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tis-3d.