1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-12 11:10:29 +00:00
Modernized/improved/actually updated version of ComputerCraft: https://tweaked.cc
Go to file
SquidDev 4651e362c9 Add an API for wired networks
The API is composed of three primary classes:

- IWiredElement: Represents some physical entity in the network. This
   will generally be a block (such as a cable or modem), but it is not
   required to be.

   Each element can provide a series of peripherals, which will be
   exposed to other elements on the network.

- IWiredNode: Every wired element has a unique wired node. This acts
   as a thread-safe proxy for communicating with the rest of the
   network (such as sending packets). Each node is also its own packet
   network.

- IWiredNetwork: This is responsible for keeping track of nodes and
   peripherals in the network. It provides methods for forming and
   breaking connections, correctly joining and splitting networks where
   needed.

Tiles which wish to be part of a wired network should implement
IWiredElementTile or register a custom IWiredProvider. When loaded into
the world, it should connect to adjacent nodes. Similarly, when removed
(either due to being broken or chunk unloads), it should break those
connections.

There is no method to query the layout of the network, as that offers
greater flexibility in changing or extending the implementation later
on.
2018-02-21 15:26:13 +00:00
gradle/wrapper Update Gradle and build system 2017-11-14 22:42:03 +00:00
libs Move Bit32 library to LuaJ sources 2017-06-28 23:05:48 +01:00
luaj-2.0.3 Move Bit32 library to LuaJ sources 2017-06-28 23:05:48 +01:00
src/main Add an API for wired networks 2018-02-21 15:26:13 +00:00
.editorconfig Ensure we don't strip any whitespace 2017-11-19 15:04:21 +00:00
.gitignore Ignore .DS_Store files 2017-09-12 00:05:26 +01:00
.travis.yml Build against Oracle JDK 8 instead 2017-09-10 20:45:24 +01:00
build_luaj.sh ComputerCraft 1.79 initial upload 2017-05-01 14:32:39 +01:00
build.gradle Add command to reload config from disk 2018-02-16 09:33:40 +00:00
codesize.sh codesize.sh now only counts lua files 2017-05-28 12:18:12 +01:00
deploy.sh Update Gradle and build system 2017-11-14 22:42:03 +00:00
gradlew Update Gradle and build system 2017-11-14 22:42:03 +00:00
gradlew.bat Update Gradle and build system 2017-11-14 22:42:03 +00:00
LICENSE Fixed possible Typo. (#337) 2017-06-28 21:39:54 +01:00
LICENSE-luaj ComputerCraft 1.79 initial upload 2017-05-01 14:32:39 +01:00
logo.png Add a subjectively fancy logo 2017-11-15 18:20:22 +00:00
README.md Fixup README a little 2017-11-19 13:48:17 +00:00
setup.bat Added windows setup script 2017-05-04 21:14:28 +01:00
setup.sh ComputerCraft 1.80pr0 2017-05-01 14:51:26 +01:00

CC: Tweaked

Build Status

CC: Tweaked is a fork of ComputerCraft which aims to provide earlier access to the more experimental and in-development features of the mod. For a more stable experience, I recommend checking out the original mod.

What?

CC: Tweaked does not aim to create a competing fork of ComputerCraft, nor am I planning to take it in in a vastly different direction to the original mod. In fact, CC: Tweaked aims to be a nurturing ground for various features, with a pull request against the original mod being the end goal.

CC: Tweaked also includes many pull requests from the community which have not yet been merged, offering a large number of additional bug fixes and features over the original mod.

Relation to CCTweaks?

This mod has nothing to do with CCTweaks, though there is no denying the name is a throwback to it. However, I do plan to migrate some features of CCTweaks into CC: Tweaked.

Contributing

Any contribution is welcome, be that using the mod, reporting bugs or contributing code. If you do wish to contribute code, do consider submitting it to the ComputerCraft repository instead.

That being said, in order to start helping develop CC: Tweaked, you'll need to follow these steps:

  • Clone the repository: git clone https://github.com/SquidDev-CC/CC-Tweaked.git && cd CC-Tweaked
  • Setup Forge: ./gradlew setupDecompWorkspace
  • Test your changes: ./gradlew runClient (or run the GradleStart class from your IDE).

If you want to run CC: Tweaked in a normal Minecraft instance, run ./gradlew build and copy the .jar from build/libs.