MCPcopy Index your code
hub / github.com/GregTech6/gregtech6

github.com/GregTech6/gregtech6 @v6.17.06

Chat with this repo
repository ↗ · DeepWiki ↗ · release v6.17.06 ↗ · + Follow
15,170 symbols 49,580 edges 1,229 files 1,508 documented · 10%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

This is the Git Repository for GregTech-6

License

This Mod is licensed under the GNU Lesser General Public License. All assets, unless otherwise stated, are dedicated to the public domain according to the CC0 1.0 Universal Public Domain Dedication. Any assets containing the GregTech logo or any derivative of it are licensed under the Creative Commons Attribution-NonCommercial 4.0 International Public License.

Support

You can use the Issue Tracker, or you can just use the Forums. Both ways will notify Greg at the very same time.

Dev Environment Setup

Once you have this project cloned then forge needs to be set up. There are 2 options:

  • If you want to just compile GT6 as quick as possible, then start by running ./gradlew setupCIWorkspace. This tasks just builds enough of Minecraft and Forge to be able to build Forge Mods, but not to do any development.
  • If you want to compile GT6 and want the full decompiled and deobfuscated source code in the development environment and want to be able to run MC from within the development environment then run ./gradlew setupDevWorkspace setupDecompWorkspace.

Once you have set up your environment then you can run the assemble task to build GT6 like: ./gradlew assemble

If you want to run the client then you can run the runClient task: ./gradlew runClient

Ditto with runServer for a server run.

To edit the code in an IDE just open the gradle project in IntelliJ or other decent IDE. Use the assemble gradle task to build or runClient or runServer tasks to be able to actively debug the running the game.

On the commandline you can combine classes altogether, for example, to just build GT6 you can do this after a fresh clone:

./gradlew setupCIWorkspace assemble

And the file will be in build/libs as usual.

Can fully get a full dev environment, build, and run the client all at once from a fresh clone with:

./gradlew setupDevWorkspace setupDecompWorkspace assemble runClient

Extension points exported contracts — how you extend this code

IOreDictListenerEvent (Interface)
@author Gregorius Techneticies [58 implementers]
src/main/java/gregapi/oredict/event/IOreDictListenerEvent.java
IItemUpdatable (Interface)
@author Gregorius Techneticies [16 implementers]
src/main/java/gregapi/item/IItemUpdatable.java
IItemGT (Interface)
Empty Interface flagging an Item as GregTech controlled Item. This essentially means that the Item is more sane and less [11 …
src/main/java/gregapi/item/IItemGT.java
IItemColorableRGB (Interface)
@author Gregorius Techneticies [11 implementers]
src/main/java/gregapi/item/IItemColorableRGB.java
IItemProjectile (Interface)
@author Gregorius Techneticies [7 implementers]
src/main/java/gregapi/item/IItemProjectile.java

Core symbols most depended-on inside this repo

make
called by 12245
src/main/java/gregapi/util/ST.java
get
called by 7201
src/main/java/gregapi/code/IItemContainer.java
add
called by 6465
src/main/java/gregapi/code/ITagDataContainer.java
mat
called by 5147
src/main/java/gregapi/oredict/OreDictPrefix.java
dat
called by 4762
src/main/java/gregapi/oredict/OreDictPrefix.java
make
called by 4706
src/main/java/gregtech/items/MultiItemBumbles.java
set
called by 3087
src/main/java/gregapi/code/IItemContainer.java
addRecipe1
called by 2988
src/main/java/gregapi/recipes/Recipe.java

Shape

Method 13,624
Class 1,265
Interface 268
Enum 13

Languages

Java100%

Modules by API surface

src/main/java/gregapi/util/UT.java438 symbols
src/main/java/gregapi/data/MT.java321 symbols
src/main/java/gregapi/block/multitileentity/IMultiTileEntity.java249 symbols
src/main/java/gregapi/tileentity/base/TileEntityBase01Root.java203 symbols
src/main/java/gregapi/block/multitileentity/MultiTileEntityBlock.java123 symbols
src/main/java/gregapi/util/ST.java120 symbols
src/main/java/gregapi/oredict/OreDictMaterial.java102 symbols
src/main/java/gregapi/old/IGT_RecipeAdder.java94 symbols
src/main/java/gregapi/tileentity/notick/TileEntityBase04Covers.java89 symbols
src/main/java/gregapi/block/multitileentity/MultiTileEntityItemInternal.java87 symbols
src/main/java/gregapi/tileentity/base/TileEntityBase06Covers.java86 symbols
src/main/java/gregapi/util/WD.java83 symbols

For agents

$ claude mcp add gregtech6 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact