cottonmc / cottonenergy Goto Github PK
View Code? Open in Web Editor NEWThe Energy API.
License: MIT License
The Energy API.
License: MIT License
The EMP system is something we haven't discussed much yet. It's an IC2-style voltage shutdown, but we don't have much of a standard for what it should do, and a few folks think we shouldn't have it. Our options:
The Tesla repo had a wonderfully productive, serious, and definitely-not-silly discussion about naming, and I think it's about that time for us too. Speaking about our energy without a unit is starting to become bothersome. Does anyone have a suggestion for the energy unit name, and its abbreviation?
We've been talking on the discord for a little while and we've decided that we want to try experimenting with flavored packets. I wanna make this for organizing logistics.
I just pushed the first draft of the energy API. It still needs a proper name, but I wanna get people's thoughts:
Packet accepts any value, even if it's larger or smaller than the types min/max values. IMO it should be capped to the max value and be set to 0 if the value is smaller than the min value. All unused energy should be returned to whoever tried to set it.
Energystorage has a int getCurrentEnergy() method that returns the amount of the blocks primary energy type and a EnergyType getPrimaryEnergyType method. I would suggest that we replace them with a Map<EnergyType, Integer>. This would allow one block to store multiple kinds of energy. (e.g. A battery that can store different Voltages)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.