mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ce7293034 | ||
|
|
0432ff0d30 | ||
|
|
180509a1a9 | ||
|
|
1f27b14054 | ||
|
|
22e8c36aae | ||
|
|
0212dd084a | ||
|
|
d54311fb11 | ||
|
|
4a20fa3b06 | ||
|
|
97e8cdf407 | ||
|
|
0c75584ccb | ||
|
|
47ffee8cd3 | ||
|
|
3660fb23b5 | ||
|
|
b1388aeb80 | ||
|
|
d922bfbdbf | ||
|
|
7c2c6b7966 | ||
|
|
acbc864d76 | ||
|
|
c762ad9915 | ||
|
|
f8fb442525 | ||
|
|
3bb2edda24 | ||
|
|
587027c24e | ||
|
|
a8259fe5cc | ||
|
|
2e906240da | ||
|
|
d79f97397a | ||
|
|
613094698d | ||
|
|
044e31d3c7 | ||
|
|
0bc9b741e3 | ||
|
|
08d1d924a0 | ||
|
|
481ec1cf32 | ||
|
|
80a42e74a1 | ||
|
|
88a211f55e | ||
|
|
f872ef50b1 | ||
|
|
508457c10a | ||
|
|
2f5c71014a | ||
|
|
be56bf2675 | ||
|
|
bd8e2d9b69 | ||
|
|
6b6b6f152c | ||
|
|
df27528048 | ||
|
|
94129319ab | ||
|
|
2ee65a298c | ||
|
|
73bf026fc0 | ||
|
|
0aad75919e | ||
|
|
d87599e38d | ||
|
|
edcac6b16d | ||
|
|
e11de173f8 | ||
|
|
dc69ee1728 | ||
|
|
13166986e3 | ||
|
|
903f158d38 | ||
|
|
9a0ffdee8c | ||
|
|
52d1767fea | ||
|
|
7ddb0889c8 | ||
|
|
caf6c961f6 | ||
|
|
acd53891c1 | ||
|
|
18d51d40f9 | ||
|
|
e3f18c365b | ||
|
|
a32b0c1dc3 | ||
|
|
28c0a749c8 | ||
|
|
672822b1b1 | ||
|
|
1505437bc4 | ||
|
|
377c5f688e | ||
|
|
d7d50f873a | ||
|
|
37f5fa4e02 | ||
|
|
2609b03e02 | ||
|
|
6c56d3c9b1 | ||
|
|
d14d2cf0a2 | ||
|
|
b605a836ea | ||
|
|
01b41b8f77 | ||
|
|
6e914be9eb | ||
|
|
6a71cd28ec | ||
|
|
3b2495870f | ||
|
|
f11fb8bad4 | ||
|
|
84b56e3f18 | ||
|
|
740c1d7fd9 | ||
|
|
73223de2dd | ||
|
|
65ba1f4464 | ||
|
|
c8fdb5747f | ||
|
|
52f872b6ad | ||
|
|
f1751ce5bc | ||
|
|
d4f5857ec0 | ||
|
|
80c1960c7c | ||
|
|
11c8199f4f | ||
|
|
dd943e80a9 | ||
|
|
4c9d2a00ab | ||
|
|
8e64099df4 | ||
|
|
60383f52df | ||
|
|
17a06b2c2d | ||
|
|
9f79fc786d | ||
|
|
bbe915413b | ||
|
|
ce9de390fd | ||
|
|
7a6f26f915 | ||
|
|
ad8e9375a9 | ||
|
|
eb36cf02dd | ||
|
|
3388dd2296 | ||
|
|
48a1cdbe07 | ||
|
|
2eaec0d010 | ||
|
|
a2b24f95cd | ||
|
|
7455daecd9 | ||
|
|
9bba1f209a | ||
|
|
8cfa60719d | ||
|
|
67ee85b77d | ||
|
|
0c4cdad475 | ||
|
|
dfec103fcf | ||
|
|
0da10ce8d4 | ||
|
|
f35d8a755f | ||
|
|
eee99a0c81 | ||
|
|
db3bb554b4 | ||
|
|
2e1794b484 | ||
|
|
579c850ca1 | ||
|
|
47896bc02d | ||
|
|
97dc338023 | ||
|
|
79f59db6f5 | ||
|
|
da0bcacdf4 | ||
|
|
d40e8585b3 | ||
|
|
aa41a8485f | ||
|
|
d179e36347 | ||
|
|
3c9322af05 | ||
|
|
9655c9b58d | ||
|
|
a9a7eabb72 |
No files matched your search
@@ -0,0 +1,19 @@
|
||||
# This is the universal Text Editor Configuration
|
||||
# for all GTNewHorizons projects
|
||||
# See: https://editorconfig.org/
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 4
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.{bat,ini}]
|
||||
end_of_line = crlf
|
||||
|
||||
[*.{dtd,json,mcmeta,md,sh,svg,xml,xsd,xsl,yaml,yml}]
|
||||
indent_size = 2
|
||||
@@ -0,0 +1,2 @@
|
||||
# Ignore spotlessApply reformat
|
||||
481ec1cf3284555e0df0eb5cfcf5cd0b84461093
|
||||
@@ -0,0 +1,44 @@
|
||||
* text eol=lf
|
||||
|
||||
*.[jJ][aA][rR] binary
|
||||
|
||||
*.[pP][nN][gG] binary
|
||||
*.[jJ][pP][gG] binary
|
||||
*.[jJ][pP][eE][gG] binary
|
||||
*.[gG][iI][fF] binary
|
||||
*.[tT][iI][fF] binary
|
||||
*.[tT][iI][fF][fF] binary
|
||||
*.[iI][cC][oO] binary
|
||||
*.[sS][vV][gG] text
|
||||
*.[eE][pP][sS] binary
|
||||
*.[xX][cC][fF] binary
|
||||
|
||||
*.[kK][aA][rR] binary
|
||||
*.[mM]4[aA] binary
|
||||
*.[mM][iI][dD] binary
|
||||
*.[mM][iI][dD][iI] binary
|
||||
*.[mM][pP]3 binary
|
||||
*.[oO][gG][gG] binary
|
||||
*.[rR][aA] binary
|
||||
|
||||
*.7[zZ] binary
|
||||
*.[gG][zZ] binary
|
||||
*.[tT][aA][rR] binary
|
||||
*.[tT][gG][zZ] binary
|
||||
*.[zZ][iI][pP] binary
|
||||
|
||||
*.[tT][cC][nN] binary
|
||||
*.[sS][oO] binary
|
||||
*.[dD][lL][lL] binary
|
||||
*.[dD][yY][lL][iI][bB] binary
|
||||
*.[pP][sS][dD] binary
|
||||
*.[tT][tT][fF] binary
|
||||
*.[oO][tT][fF] binary
|
||||
|
||||
*.[pP][aA][tT][cC][hH] -text
|
||||
|
||||
*.[bB][aA][tT] text eol=crlf
|
||||
*.[cC][mM][dD] text eol=crlf
|
||||
*.[pP][sS]1 text eol=crlf
|
||||
|
||||
*[aA][uU][tT][oO][gG][eE][nN][eE][rR][aA][tT][eE][dD]* binary
|
||||
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
RUNDIR="run"
|
||||
CRASH="crash-reports"
|
||||
SERVERLOG="server.log"
|
||||
|
||||
if [[ -d $RUNDIR/$CRASH ]]; then
|
||||
echo "Crash reports detected:"
|
||||
cat $RUNDIR/$CRASH/crash*.txt
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if grep --quiet "Fatal errors were detected" $SERVERLOG; then
|
||||
echo "Fatal errors detected:"
|
||||
cat server.log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if grep --quiet "The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED" $SERVERLOG; then
|
||||
echo "Server force stopped:"
|
||||
cat server.log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! grep --quiet -Po '.+Done \(.+\)\! For help, type "help" or "\?"' $SERVERLOG; then
|
||||
echo "Server didn't finish startup:"
|
||||
cat server.log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "No crash reports detected"
|
||||
exit 0
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
name: Build and test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master, main ]
|
||||
push:
|
||||
branches: [ master, main ]
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/build-and-test.yml@master
|
||||
secrets: inherit
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
name: Release tagged build
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: [ '*' ]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release-tags:
|
||||
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/release-tags.yml@master
|
||||
secrets: inherit
|
||||
+28
-47
@@ -1,51 +1,32 @@
|
||||
*.class
|
||||
dist
|
||||
download
|
||||
push.sh
|
||||
remotebuild.py
|
||||
|
||||
## gradle
|
||||
/.gradle
|
||||
/build
|
||||
/eclipse
|
||||
/gradlew.bat
|
||||
/libs
|
||||
|
||||
|
||||
## ForgeGradle
|
||||
/run
|
||||
/out
|
||||
/ForgeModule
|
||||
/libs/download
|
||||
|
||||
## idea
|
||||
.gradle
|
||||
.settings
|
||||
/.idea/
|
||||
/.vscode/
|
||||
/run/
|
||||
/build/
|
||||
/eclipse/
|
||||
.classpath
|
||||
.project
|
||||
/bin/
|
||||
/config/
|
||||
/crash-reports/
|
||||
/logs/
|
||||
options.txt
|
||||
/saves/
|
||||
usernamecache.json
|
||||
banned-ips.json
|
||||
banned-players.json
|
||||
eula.txt
|
||||
ops.json
|
||||
server.properties
|
||||
servers.dat
|
||||
usercache.json
|
||||
whitelist.json
|
||||
/out/
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iws
|
||||
|
||||
## eclipse
|
||||
/.settings
|
||||
/.metadata
|
||||
/.classpath
|
||||
/.project
|
||||
/bin
|
||||
/.idea
|
||||
/client/
|
||||
/Server/
|
||||
/classes/
|
||||
## misc
|
||||
/libs/Thaumcraft-deobf*.jar*
|
||||
/libs/*1.7.10*
|
||||
TCDEOBF*
|
||||
## Ignore OS cache files
|
||||
/src/main/resources/CoFH_at.cfg
|
||||
*.DS_Store
|
||||
_MACOSX
|
||||
Thumbs.db
|
||||
/forgelibs
|
||||
|
||||
## Ignore unnecessary files
|
||||
*.log
|
||||
*.lck
|
||||
/target/
|
||||
src/main/resources/mixins.*([!.]).json
|
||||
*.bat
|
||||
*.DS_Store
|
||||
!gradlew.bat
|
||||
@@ -1,51 +0,0 @@
|
||||
*.class
|
||||
dist
|
||||
download
|
||||
push.sh
|
||||
remotebuild.py
|
||||
|
||||
## gradle
|
||||
/.gradle
|
||||
/build
|
||||
/eclipse
|
||||
/gradlew.bat
|
||||
|
||||
## ForgeGradle
|
||||
/run
|
||||
/out
|
||||
/ForgeModule
|
||||
/libs/download
|
||||
|
||||
## idea
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iws
|
||||
|
||||
## eclipse
|
||||
/.settings
|
||||
/.metadata
|
||||
/.classpath
|
||||
/.project
|
||||
/bin
|
||||
/.idea
|
||||
/client/
|
||||
/Server/
|
||||
/classes/
|
||||
## misc
|
||||
/libs/Thaumcraft-deobf*.jar*
|
||||
<<<<<<< HEAD
|
||||
/libs/Ender*
|
||||
=======
|
||||
/libs/*1.7.10*
|
||||
>>>>>>> develop
|
||||
TCDEOBF*
|
||||
## Ignore OS cache files
|
||||
*.DS_Store
|
||||
_MACOSX
|
||||
Thumbs.db
|
||||
/forgelibs
|
||||
|
||||
## Ignore unnecessary files
|
||||
*.log
|
||||
*.lck
|
||||
/target/
|
||||
@@ -0,0 +1,3 @@
|
||||
# Any Github changes require admin approval
|
||||
/.github/** @GTNewHorizons/admin
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<profiles version="2">
|
||||
<profile kind="CleanUpProfile" name="ThaumicTinkererCleanup" version="2">
|
||||
<setting id="cleanup.remove_unused_private_fields" value="true"/>
|
||||
<setting id="cleanup.always_use_parentheses_in_expressions" value="false"/>
|
||||
<setting id="cleanup.never_use_blocks" value="false"/>
|
||||
<setting id="cleanup.add_missing_deprecated_annotations" value="true"/>
|
||||
<setting id="cleanup.remove_unused_private_methods" value="true"/>
|
||||
<setting id="cleanup.convert_to_enhanced_for_loop" value="true"/>
|
||||
<setting id="cleanup.remove_unnecessary_nls_tags" value="true"/>
|
||||
<setting id="cleanup.sort_members" value="false"/>
|
||||
<setting id="cleanup.remove_unused_local_variables" value="true"/>
|
||||
<setting id="cleanup.remove_unused_private_members" value="true"/>
|
||||
<setting id="cleanup.never_use_parentheses_in_expressions" value="true"/>
|
||||
<setting id="cleanup.remove_unnecessary_casts" value="true"/>
|
||||
<setting id="cleanup.make_parameters_final" value="false"/>
|
||||
<setting id="cleanup.use_this_for_non_static_field_access" value="true"/>
|
||||
<setting id="cleanup.use_blocks" value="false"/>
|
||||
<setting id="cleanup.remove_private_constructors" value="true"/>
|
||||
<setting id="cleanup.always_use_this_for_non_static_method_access" value="false"/>
|
||||
<setting id="cleanup.remove_trailing_whitespaces_all" value="true"/>
|
||||
<setting id="cleanup.always_use_this_for_non_static_field_access" value="false"/>
|
||||
<setting id="cleanup.use_this_for_non_static_field_access_only_if_necessary" value="true"/>
|
||||
<setting id="cleanup.add_default_serial_version_id" value="false"/>
|
||||
<setting id="cleanup.make_type_abstract_if_missing_method" value="false"/>
|
||||
<setting id="cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class" value="true"/>
|
||||
<setting id="cleanup.make_variable_declarations_final" value="false"/>
|
||||
<setting id="cleanup.add_missing_nls_tags" value="false"/>
|
||||
<setting id="cleanup.format_source_code" value="false"/>
|
||||
<setting id="cleanup.add_missing_override_annotations" value="true"/>
|
||||
<setting id="cleanup.qualify_static_method_accesses_with_declaring_class" value="false"/>
|
||||
<setting id="cleanup.remove_unused_private_types" value="true"/>
|
||||
<setting id="cleanup.make_local_variable_final" value="true"/>
|
||||
<setting id="cleanup.add_missing_methods" value="false"/>
|
||||
<setting id="cleanup.add_missing_override_annotations_interface_methods" value="true"/>
|
||||
<setting id="cleanup.correct_indentation" value="false"/>
|
||||
<setting id="cleanup.remove_unused_imports" value="true"/>
|
||||
<setting id="cleanup.remove_trailing_whitespaces_ignore_empty" value="false"/>
|
||||
<setting id="cleanup.make_private_fields_final" value="true"/>
|
||||
<setting id="cleanup.add_generated_serial_version_id" value="true"/>
|
||||
<setting id="cleanup.organize_imports" value="true"/>
|
||||
<setting id="cleanup.sort_members_all" value="false"/>
|
||||
<setting id="cleanup.remove_trailing_whitespaces" value="true"/>
|
||||
<setting id="cleanup.use_blocks_only_for_return_and_throw" value="false"/>
|
||||
<setting id="cleanup.use_parentheses_in_expressions" value="true"/>
|
||||
<setting id="cleanup.add_missing_annotations" value="true"/>
|
||||
<setting id="cleanup.qualify_static_field_accesses_with_declaring_class" value="false"/>
|
||||
<setting id="cleanup.use_this_for_non_static_method_access_only_if_necessary" value="true"/>
|
||||
<setting id="cleanup.use_this_for_non_static_method_access" value="true"/>
|
||||
<setting id="cleanup.qualify_static_member_accesses_through_instances_with_declaring_class" value="true"/>
|
||||
<setting id="cleanup.add_serial_version_id" value="true"/>
|
||||
<setting id="cleanup.always_use_blocks" value="true"/>
|
||||
<setting id="cleanup.qualify_static_member_accesses_with_declaring_class" value="true"/>
|
||||
<setting id="cleanup.format_source_code_changes_only" value="false"/>
|
||||
</profile>
|
||||
</profiles>
|
||||
@@ -1,80 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<templates>
|
||||
<template autoinsert="false" context="gettercomment_context" deleted="false" description="Comment for getter method"
|
||||
enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name="gettercomment"/>
|
||||
<template autoinsert="false" context="settercomment_context" deleted="false" description="Comment for setter method"
|
||||
enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.settercomment" name="settercomment"/>
|
||||
<template autoinsert="false" context="constructorcomment_context" deleted="false"
|
||||
description="Comment for created constructors" enabled="true"
|
||||
id="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name="constructorcomment"/>
|
||||
<template autoinsert="false" context="filecomment_context" deleted="false"
|
||||
description="Comment for created Java files" enabled="true"
|
||||
id="org.eclipse.jdt.ui.text.codetemplates.filecomment" name="filecomment">/**
|
||||
* This class was created by <Vazkii>. It's distributed as
|
||||
* part of the ${project_name} Mod.
|
||||
*
|
||||
* ${project_name} is Open Source and distributed under a
|
||||
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
|
||||
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
|
||||
*
|
||||
* ${project_name} is a Derivative Work on Thaumcraft 4.
|
||||
* Thaumcraft 4 (c) Azanor 2012
|
||||
* (http://www.minecraftforum.net/topic/1585216-)
|
||||
*
|
||||
* File Created @ [${date}, ${time} (GMT)]
|
||||
*/
|
||||
</template>
|
||||
<template autoinsert="false" context="typecomment_context" deleted="false" description="Comment for created types"
|
||||
enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.typecomment" name="typecomment"/>
|
||||
<template autoinsert="false" context="fieldcomment_context" deleted="false" description="Comment for fields"
|
||||
enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name="fieldcomment"/>
|
||||
<template autoinsert="false" context="methodcomment_context" deleted="false"
|
||||
description="Comment for non-overriding methods" enabled="true"
|
||||
id="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name="methodcomment"/>
|
||||
<template autoinsert="false" context="overridecomment_context" deleted="false"
|
||||
description="Comment for overriding methods" enabled="true"
|
||||
id="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name="overridecomment"/>
|
||||
<template autoinsert="false" context="delegatecomment_context" deleted="false"
|
||||
description="Comment for delegate methods" enabled="true"
|
||||
id="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name="delegatecomment"/>
|
||||
<template autoinsert="true" context="newtype_context" deleted="false" description="Newly created files"
|
||||
enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.newtype" name="newtype">${filecomment}
|
||||
${package_declaration}
|
||||
|
||||
${typecomment}
|
||||
${type_declaration}
|
||||
</template>
|
||||
<template autoinsert="true" context="classbody_context" deleted="false" description="Code in new class type bodies"
|
||||
enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.classbody" name="classbody">
|
||||
</template>
|
||||
<template autoinsert="true" context="interfacebody_context" deleted="false"
|
||||
description="Code in new interface type bodies" enabled="true"
|
||||
id="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name="interfacebody">
|
||||
</template>
|
||||
<template autoinsert="true" context="enumbody_context" deleted="false" description="Code in new enum type bodies"
|
||||
enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.enumbody" name="enumbody">
|
||||
</template>
|
||||
<template autoinsert="true" context="annotationbody_context" deleted="false"
|
||||
description="Code in new annotation type bodies" enabled="true"
|
||||
id="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name="annotationbody">
|
||||
</template>
|
||||
<template autoinsert="true" context="catchblock_context" deleted="false" description="Code in new catch blocks"
|
||||
enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.catchblock" name="catchblock">// ${todo}
|
||||
Auto-generated catch block
|
||||
${exception_var}.printStackTrace();
|
||||
</template>
|
||||
<template autoinsert="false" context="methodbody_context" deleted="false" description="Code in created method stubs"
|
||||
enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.methodbody" name="methodbody"/>
|
||||
<template autoinsert="true" context="constructorbody_context" deleted="false"
|
||||
description="Code in created constructor stubs" enabled="true"
|
||||
id="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name="constructorbody">${body_statement}
|
||||
// ${todo} Auto-generated constructor stub
|
||||
</template>
|
||||
<template autoinsert="true" context="getterbody_context" deleted="false" description="Code in created getters"
|
||||
enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.getterbody" name="getterbody">return ${field};
|
||||
</template>
|
||||
<template autoinsert="true" context="setterbody_context" deleted="false" description="Code in created setters"
|
||||
enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.setterbody" name="setterbody">${field} =
|
||||
${param};
|
||||
</template>
|
||||
</templates>
|
||||
@@ -1,29 +0,0 @@
|
||||
package thaumcraft.common.lib;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.PlayerCapabilities;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class Utils {
|
||||
public static boolean breakFurthestBlock(World world, int x,int y,int z,int blockid,EntityPlayer player)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public static MovingObjectPosition getTargetBlock(World world, Entity entity, boolean par3)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public static float getWalkSpeed(PlayerCapabilities pc) {
|
||||
return 0.0f;
|
||||
}
|
||||
public static void setWalkSpeed(PlayerCapabilities pc, float ws)
|
||||
{
|
||||
|
||||
}
|
||||
public static boolean isWoodLog(World world, int x, int y, int z)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
+360
@@ -0,0 +1,360 @@
|
||||
Creative Commons Legal Code
|
||||
|
||||
Attribution-NonCommercial-ShareAlike 3.0 Unported
|
||||
|
||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
||||
LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN
|
||||
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
||||
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
||||
REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR
|
||||
DAMAGES RESULTING FROM ITS USE.
|
||||
|
||||
License
|
||||
|
||||
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
|
||||
COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
|
||||
COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
|
||||
AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
|
||||
|
||||
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE
|
||||
TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY
|
||||
BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS
|
||||
CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
|
||||
CONDITIONS.
|
||||
|
||||
1. Definitions
|
||||
|
||||
a. "Adaptation" means a work based upon the Work, or upon the Work and
|
||||
other pre-existing works, such as a translation, adaptation,
|
||||
derivative work, arrangement of music or other alterations of a
|
||||
literary or artistic work, or phonogram or performance and includes
|
||||
cinematographic adaptations or any other form in which the Work may be
|
||||
recast, transformed, or adapted including in any form recognizably
|
||||
derived from the original, except that a work that constitutes a
|
||||
Collection will not be considered an Adaptation for the purpose of
|
||||
this License. For the avoidance of doubt, where the Work is a musical
|
||||
work, performance or phonogram, the synchronization of the Work in
|
||||
timed-relation with a moving image ("synching") will be considered an
|
||||
Adaptation for the purpose of this License.
|
||||
b. "Collection" means a collection of literary or artistic works, such as
|
||||
encyclopedias and anthologies, or performances, phonograms or
|
||||
broadcasts, or other works or subject matter other than works listed
|
||||
in Section 1(g) below, which, by reason of the selection and
|
||||
arrangement of their contents, constitute intellectual creations, in
|
||||
which the Work is included in its entirety in unmodified form along
|
||||
with one or more other contributions, each constituting separate and
|
||||
independent works in themselves, which together are assembled into a
|
||||
collective whole. A work that constitutes a Collection will not be
|
||||
considered an Adaptation (as defined above) for the purposes of this
|
||||
License.
|
||||
c. "Distribute" means to make available to the public the original and
|
||||
copies of the Work or Adaptation, as appropriate, through sale or
|
||||
other transfer of ownership.
|
||||
d. "License Elements" means the following high-level license attributes
|
||||
as selected by Licensor and indicated in the title of this License:
|
||||
Attribution, Noncommercial, ShareAlike.
|
||||
e. "Licensor" means the individual, individuals, entity or entities that
|
||||
offer(s) the Work under the terms of this License.
|
||||
f. "Original Author" means, in the case of a literary or artistic work,
|
||||
the individual, individuals, entity or entities who created the Work
|
||||
or if no individual or entity can be identified, the publisher; and in
|
||||
addition (i) in the case of a performance the actors, singers,
|
||||
musicians, dancers, and other persons who act, sing, deliver, declaim,
|
||||
play in, interpret or otherwise perform literary or artistic works or
|
||||
expressions of folklore; (ii) in the case of a phonogram the producer
|
||||
being the person or legal entity who first fixes the sounds of a
|
||||
performance or other sounds; and, (iii) in the case of broadcasts, the
|
||||
organization that transmits the broadcast.
|
||||
g. "Work" means the literary and/or artistic work offered under the terms
|
||||
of this License including without limitation any production in the
|
||||
literary, scientific and artistic domain, whatever may be the mode or
|
||||
form of its expression including digital form, such as a book,
|
||||
pamphlet and other writing; a lecture, address, sermon or other work
|
||||
of the same nature; a dramatic or dramatico-musical work; a
|
||||
choreographic work or entertainment in dumb show; a musical
|
||||
composition with or without words; a cinematographic work to which are
|
||||
assimilated works expressed by a process analogous to cinematography;
|
||||
a work of drawing, painting, architecture, sculpture, engraving or
|
||||
lithography; a photographic work to which are assimilated works
|
||||
expressed by a process analogous to photography; a work of applied
|
||||
art; an illustration, map, plan, sketch or three-dimensional work
|
||||
relative to geography, topography, architecture or science; a
|
||||
performance; a broadcast; a phonogram; a compilation of data to the
|
||||
extent it is protected as a copyrightable work; or a work performed by
|
||||
a variety or circus performer to the extent it is not otherwise
|
||||
considered a literary or artistic work.
|
||||
h. "You" means an individual or entity exercising rights under this
|
||||
License who has not previously violated the terms of this License with
|
||||
respect to the Work, or who has received express permission from the
|
||||
Licensor to exercise rights under this License despite a previous
|
||||
violation.
|
||||
i. "Publicly Perform" means to perform public recitations of the Work and
|
||||
to communicate to the public those public recitations, by any means or
|
||||
process, including by wire or wireless means or public digital
|
||||
performances; to make available to the public Works in such a way that
|
||||
members of the public may access these Works from a place and at a
|
||||
place individually chosen by them; to perform the Work to the public
|
||||
by any means or process and the communication to the public of the
|
||||
performances of the Work, including by public digital performance; to
|
||||
broadcast and rebroadcast the Work by any means including signs,
|
||||
sounds or images.
|
||||
j. "Reproduce" means to make copies of the Work by any means including
|
||||
without limitation by sound or visual recordings and the right of
|
||||
fixation and reproducing fixations of the Work, including storage of a
|
||||
protected performance or phonogram in digital form or other electronic
|
||||
medium.
|
||||
|
||||
2. Fair Dealing Rights. Nothing in this License is intended to reduce,
|
||||
limit, or restrict any uses free from copyright or rights arising from
|
||||
limitations or exceptions that are provided for in connection with the
|
||||
copyright protection under copyright law or other applicable laws.
|
||||
|
||||
3. License Grant. Subject to the terms and conditions of this License,
|
||||
Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
|
||||
perpetual (for the duration of the applicable copyright) license to
|
||||
exercise the rights in the Work as stated below:
|
||||
|
||||
a. to Reproduce the Work, to incorporate the Work into one or more
|
||||
Collections, and to Reproduce the Work as incorporated in the
|
||||
Collections;
|
||||
b. to create and Reproduce Adaptations provided that any such Adaptation,
|
||||
including any translation in any medium, takes reasonable steps to
|
||||
clearly label, demarcate or otherwise identify that changes were made
|
||||
to the original Work. For example, a translation could be marked "The
|
||||
original work was translated from English to Spanish," or a
|
||||
modification could indicate "The original work has been modified.";
|
||||
c. to Distribute and Publicly Perform the Work including as incorporated
|
||||
in Collections; and,
|
||||
d. to Distribute and Publicly Perform Adaptations.
|
||||
|
||||
The above rights may be exercised in all media and formats whether now
|
||||
known or hereafter devised. The above rights include the right to make
|
||||
such modifications as are technically necessary to exercise the rights in
|
||||
other media and formats. Subject to Section 8(f), all rights not expressly
|
||||
granted by Licensor are hereby reserved, including but not limited to the
|
||||
rights described in Section 4(e).
|
||||
|
||||
4. Restrictions. The license granted in Section 3 above is expressly made
|
||||
subject to and limited by the following restrictions:
|
||||
|
||||
a. You may Distribute or Publicly Perform the Work only under the terms
|
||||
of this License. You must include a copy of, or the Uniform Resource
|
||||
Identifier (URI) for, this License with every copy of the Work You
|
||||
Distribute or Publicly Perform. You may not offer or impose any terms
|
||||
on the Work that restrict the terms of this License or the ability of
|
||||
the recipient of the Work to exercise the rights granted to that
|
||||
recipient under the terms of the License. You may not sublicense the
|
||||
Work. You must keep intact all notices that refer to this License and
|
||||
to the disclaimer of warranties with every copy of the Work You
|
||||
Distribute or Publicly Perform. When You Distribute or Publicly
|
||||
Perform the Work, You may not impose any effective technological
|
||||
measures on the Work that restrict the ability of a recipient of the
|
||||
Work from You to exercise the rights granted to that recipient under
|
||||
the terms of the License. This Section 4(a) applies to the Work as
|
||||
incorporated in a Collection, but this does not require the Collection
|
||||
apart from the Work itself to be made subject to the terms of this
|
||||
License. If You create a Collection, upon notice from any Licensor You
|
||||
must, to the extent practicable, remove from the Collection any credit
|
||||
as required by Section 4(d), as requested. If You create an
|
||||
Adaptation, upon notice from any Licensor You must, to the extent
|
||||
practicable, remove from the Adaptation any credit as required by
|
||||
Section 4(d), as requested.
|
||||
b. You may Distribute or Publicly Perform an Adaptation only under: (i)
|
||||
the terms of this License; (ii) a later version of this License with
|
||||
the same License Elements as this License; (iii) a Creative Commons
|
||||
jurisdiction license (either this or a later license version) that
|
||||
contains the same License Elements as this License (e.g.,
|
||||
Attribution-NonCommercial-ShareAlike 3.0 US) ("Applicable License").
|
||||
You must include a copy of, or the URI, for Applicable License with
|
||||
every copy of each Adaptation You Distribute or Publicly Perform. You
|
||||
may not offer or impose any terms on the Adaptation that restrict the
|
||||
terms of the Applicable License or the ability of the recipient of the
|
||||
Adaptation to exercise the rights granted to that recipient under the
|
||||
terms of the Applicable License. You must keep intact all notices that
|
||||
refer to the Applicable License and to the disclaimer of warranties
|
||||
with every copy of the Work as included in the Adaptation You
|
||||
Distribute or Publicly Perform. When You Distribute or Publicly
|
||||
Perform the Adaptation, You may not impose any effective technological
|
||||
measures on the Adaptation that restrict the ability of a recipient of
|
||||
the Adaptation from You to exercise the rights granted to that
|
||||
recipient under the terms of the Applicable License. This Section 4(b)
|
||||
applies to the Adaptation as incorporated in a Collection, but this
|
||||
does not require the Collection apart from the Adaptation itself to be
|
||||
made subject to the terms of the Applicable License.
|
||||
c. You may not exercise any of the rights granted to You in Section 3
|
||||
above in any manner that is primarily intended for or directed toward
|
||||
commercial advantage or private monetary compensation. The exchange of
|
||||
the Work for other copyrighted works by means of digital file-sharing
|
||||
or otherwise shall not be considered to be intended for or directed
|
||||
toward commercial advantage or private monetary compensation, provided
|
||||
there is no payment of any monetary compensation in con-nection with
|
||||
the exchange of copyrighted works.
|
||||
d. If You Distribute, or Publicly Perform the Work or any Adaptations or
|
||||
Collections, You must, unless a request has been made pursuant to
|
||||
Section 4(a), keep intact all copyright notices for the Work and
|
||||
provide, reasonable to the medium or means You are utilizing: (i) the
|
||||
name of the Original Author (or pseudonym, if applicable) if supplied,
|
||||
and/or if the Original Author and/or Licensor designate another party
|
||||
or parties (e.g., a sponsor institute, publishing entity, journal) for
|
||||
attribution ("Attribution Parties") in Licensor's copyright notice,
|
||||
terms of service or by other reasonable means, the name of such party
|
||||
or parties; (ii) the title of the Work if supplied; (iii) to the
|
||||
extent reasonably practicable, the URI, if any, that Licensor
|
||||
specifies to be associated with the Work, unless such URI does not
|
||||
refer to the copyright notice or licensing information for the Work;
|
||||
and, (iv) consistent with Section 3(b), in the case of an Adaptation,
|
||||
a credit identifying the use of the Work in the Adaptation (e.g.,
|
||||
"French translation of the Work by Original Author," or "Screenplay
|
||||
based on original Work by Original Author"). The credit required by
|
||||
this Section 4(d) may be implemented in any reasonable manner;
|
||||
provided, however, that in the case of a Adaptation or Collection, at
|
||||
a minimum such credit will appear, if a credit for all contributing
|
||||
authors of the Adaptation or Collection appears, then as part of these
|
||||
credits and in a manner at least as prominent as the credits for the
|
||||
other contributing authors. For the avoidance of doubt, You may only
|
||||
use the credit required by this Section for the purpose of attribution
|
||||
in the manner set out above and, by exercising Your rights under this
|
||||
License, You may not implicitly or explicitly assert or imply any
|
||||
connection with, sponsorship or endorsement by the Original Author,
|
||||
Licensor and/or Attribution Parties, as appropriate, of You or Your
|
||||
use of the Work, without the separate, express prior written
|
||||
permission of the Original Author, Licensor and/or Attribution
|
||||
Parties.
|
||||
e. For the avoidance of doubt:
|
||||
|
||||
i. Non-waivable Compulsory License Schemes. In those jurisdictions in
|
||||
which the right to collect royalties through any statutory or
|
||||
compulsory licensing scheme cannot be waived, the Licensor
|
||||
reserves the exclusive right to collect such royalties for any
|
||||
exercise by You of the rights granted under this License;
|
||||
ii. Waivable Compulsory License Schemes. In those jurisdictions in
|
||||
which the right to collect royalties through any statutory or
|
||||
compulsory licensing scheme can be waived, the Licensor reserves
|
||||
the exclusive right to collect such royalties for any exercise by
|
||||
You of the rights granted under this License if Your exercise of
|
||||
such rights is for a purpose or use which is otherwise than
|
||||
noncommercial as permitted under Section 4(c) and otherwise waives
|
||||
the right to collect royalties through any statutory or compulsory
|
||||
licensing scheme; and,
|
||||
iii. Voluntary License Schemes. The Licensor reserves the right to
|
||||
collect royalties, whether individually or, in the event that the
|
||||
Licensor is a member of a collecting society that administers
|
||||
voluntary licensing schemes, via that society, from any exercise
|
||||
by You of the rights granted under this License that is for a
|
||||
purpose or use which is otherwise than noncommercial as permitted
|
||||
under Section 4(c).
|
||||
f. Except as otherwise agreed in writing by the Licensor or as may be
|
||||
otherwise permitted by applicable law, if You Reproduce, Distribute or
|
||||
Publicly Perform the Work either by itself or as part of any
|
||||
Adaptations or Collections, You must not distort, mutilate, modify or
|
||||
take other derogatory action in relation to the Work which would be
|
||||
prejudicial to the Original Author's honor or reputation. Licensor
|
||||
agrees that in those jurisdictions (e.g. Japan), in which any exercise
|
||||
of the right granted in Section 3(b) of this License (the right to
|
||||
make Adaptations) would be deemed to be a distortion, mutilation,
|
||||
modification or other derogatory action prejudicial to the Original
|
||||
Author's honor and reputation, the Licensor will waive or not assert,
|
||||
as appropriate, this Section, to the fullest extent permitted by the
|
||||
applicable national law, to enable You to reasonably exercise Your
|
||||
right under Section 3(b) of this License (right to make Adaptations)
|
||||
but not otherwise.
|
||||
|
||||
5. Representations, Warranties and Disclaimer
|
||||
|
||||
UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING AND TO THE
|
||||
FULLEST EXTENT PERMITTED BY APPLICABLE LAW, LICENSOR OFFERS THE WORK AS-IS
|
||||
AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE
|
||||
WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT
|
||||
LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS,
|
||||
ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT
|
||||
DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED
|
||||
WARRANTIES, SO THIS EXCLUSION MAY NOT APPLY TO YOU.
|
||||
|
||||
6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE
|
||||
LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR
|
||||
ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES
|
||||
ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS
|
||||
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
7. Termination
|
||||
|
||||
a. This License and the rights granted hereunder will terminate
|
||||
automatically upon any breach by You of the terms of this License.
|
||||
Individuals or entities who have received Adaptations or Collections
|
||||
from You under this License, however, will not have their licenses
|
||||
terminated provided such individuals or entities remain in full
|
||||
compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will
|
||||
survive any termination of this License.
|
||||
b. Subject to the above terms and conditions, the license granted here is
|
||||
perpetual (for the duration of the applicable copyright in the Work).
|
||||
Notwithstanding the above, Licensor reserves the right to release the
|
||||
Work under different license terms or to stop distributing the Work at
|
||||
any time; provided, however that any such election will not serve to
|
||||
withdraw this License (or any other license that has been, or is
|
||||
required to be, granted under the terms of this License), and this
|
||||
License will continue in full force and effect unless terminated as
|
||||
stated above.
|
||||
|
||||
8. Miscellaneous
|
||||
|
||||
a. Each time You Distribute or Publicly Perform the Work or a Collection,
|
||||
the Licensor offers to the recipient a license to the Work on the same
|
||||
terms and conditions as the license granted to You under this License.
|
||||
b. Each time You Distribute or Publicly Perform an Adaptation, Licensor
|
||||
offers to the recipient a license to the original Work on the same
|
||||
terms and conditions as the license granted to You under this License.
|
||||
c. If any provision of this License is invalid or unenforceable under
|
||||
applicable law, it shall not affect the validity or enforceability of
|
||||
the remainder of the terms of this License, and without further action
|
||||
by the parties to this agreement, such provision shall be reformed to
|
||||
the minimum extent necessary to make such provision valid and
|
||||
enforceable.
|
||||
d. No term or provision of this License shall be deemed waived and no
|
||||
breach consented to unless such waiver or consent shall be in writing
|
||||
and signed by the party to be charged with such waiver or consent.
|
||||
e. This License constitutes the entire agreement between the parties with
|
||||
respect to the Work licensed here. There are no understandings,
|
||||
agreements or representations with respect to the Work not specified
|
||||
here. Licensor shall not be bound by any additional provisions that
|
||||
may appear in any communication from You. This License may not be
|
||||
modified without the mutual written agreement of the Licensor and You.
|
||||
f. The rights granted under, and the subject matter referenced, in this
|
||||
License were drafted utilizing the terminology of the Berne Convention
|
||||
for the Protection of Literary and Artistic Works (as amended on
|
||||
September 28, 1979), the Rome Convention of 1961, the WIPO Copyright
|
||||
Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996
|
||||
and the Universal Copyright Convention (as revised on July 24, 1971).
|
||||
These rights and subject matter take effect in the relevant
|
||||
jurisdiction in which the License terms are sought to be enforced
|
||||
according to the corresponding provisions of the implementation of
|
||||
those treaty provisions in the applicable national law. If the
|
||||
standard suite of rights granted under applicable copyright law
|
||||
includes additional rights not granted under this License, such
|
||||
additional rights are deemed to be included in the License; this
|
||||
License is not intended to restrict the license of any rights under
|
||||
applicable law.
|
||||
|
||||
|
||||
Creative Commons Notice
|
||||
|
||||
Creative Commons is not a party to this License, and makes no warranty
|
||||
whatsoever in connection with the Work. Creative Commons will not be
|
||||
liable to You or any party on any legal theory for any damages
|
||||
whatsoever, including without limitation any general, special,
|
||||
incidental or consequential damages arising in connection to this
|
||||
license. Notwithstanding the foregoing two (2) sentences, if Creative
|
||||
Commons has expressly identified itself as the Licensor hereunder, it
|
||||
shall have all rights and obligations of Licensor.
|
||||
|
||||
Except for the limited purpose of indicating to the public that the
|
||||
Work is licensed under the CCPL, Creative Commons does not authorize
|
||||
the use by either party of the trademark "Creative Commons" or any
|
||||
related trademark or logo of Creative Commons without the prior
|
||||
written consent of Creative Commons. Any permitted use will be in
|
||||
compliance with Creative Commons' then-current trademark usage
|
||||
guidelines, as may be published on its website or otherwise made
|
||||
available upon request from time to time. For the avoidance of doubt,
|
||||
this trademark restriction does not form part of this License.
|
||||
|
||||
Creative Commons may be contacted at https://creativecommons.org/.
|
||||
@@ -1,15 +1,22 @@
|
||||

|
||||

|
||||
|
||||
Welcome to the Thaumic Tinkerer Github Repo.
|
||||
|
||||
Thaumic Tinkerer is a Thaumcraft addon, it's intention is to add new content to Thaumcraft, and bring back some oldies, but goodies.
|
||||
|
||||
[Thaumic Tinkerer MCF Thread](http://www.minecraftforum.net/topic/1813058-)
|
||||
[Thaumic Tinkerer MCF Thread](https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/1289299-thaumic-tinkerer-thaumcraft-addon-evolve-knowledge-)
|
||||
|
||||
Thaumcraft © Azanor 2012
|
||||
[Thaumcraft MCF Thread](http://www.minecraftforum.net/topic/1585216-)
|
||||
Thaumcraft © Azanor 2012-2015
|
||||
[Thaumcraft Curseforge Page](https://www.curseforge.com/minecraft/mc-mods/thaumcraft)
|
||||
|
||||
This mod is made with a Deobfuscated version of Thaumcraft, loaded as a Library. You can get a deobfuscated version of Thaumcraft using immibis' [Bearded Octo Nemesis](https://github.com/immibis/bearded-octo-nemesis).
|
||||

|
||||
This mod is made with a Deobfuscated version of Thaumcraft, loaded as a Library, and will automatically get one for you via `gradlew`.
|
||||
|
||||

|
||||
|
||||
Thaumic Tinkerer Was originally by Vazkii and is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License](http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
|
||||
|
||||
|
||||
# Fork
|
||||
This mod was forked by the GTNH Team to continue the development of the 1.7.10 Branch.
|
||||
|
||||
The up-to-date Master branch can be found on our [Jenkins](http://jenkins.usrv.eu:8080/job/Thaumic-Tinker/).
|
||||
+4
-177
@@ -1,178 +1,5 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
name = "forge"
|
||||
url = "http://files.minecraftforge.net/maven"
|
||||
}
|
||||
maven {
|
||||
name = "sonatype"
|
||||
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
||||
}
|
||||
maven {
|
||||
url 'https://oss.sonatype.org/content/groups/public'
|
||||
}
|
||||
maven { url 'https://plugins.gradle.org/m2/' }
|
||||
mavenLocal()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
||||
classpath 'com.gradle:build-scan-plugin:1.3'
|
||||
}
|
||||
}
|
||||
apply plugin: 'com.gradle.build-scan'
|
||||
|
||||
buildScan {
|
||||
licenseAgreementUrl = 'https://gradle.com/terms-of-service'
|
||||
licenseAgree = 'yes'
|
||||
}
|
||||
repositories {
|
||||
ivy {
|
||||
|
||||
name 'Forge FS legacy'
|
||||
artifactPattern "http://files.minecraftforge.net/[module]/[module]-dev-[revision].[ext]"
|
||||
}
|
||||
|
||||
maven {
|
||||
name 'ForgeFS'
|
||||
url 'http://files.minecraftforge.net/maven'
|
||||
}
|
||||
maven {
|
||||
name 'MinecraftS3'
|
||||
url 'http://s3.amazonaws.com/Minecraft.Download/libraries'
|
||||
}
|
||||
maven {
|
||||
name 'DVS1 Maven FS'
|
||||
url 'http://dvs1.progwml6.com/files/maven'
|
||||
}
|
||||
maven { // the repo from which to get NEI and stuff
|
||||
name 'CB Repo'
|
||||
url "http://chickenbones.net/maven/"
|
||||
}
|
||||
maven { // The repo from which to get waila
|
||||
name "Mobius Repo"
|
||||
url "http://mobiusstrip.eu/maven"
|
||||
}
|
||||
maven {
|
||||
|
||||
url 'http://maven.cil.li/'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
String changelogLoc = 'https://raw.github.com/Thaumic-Tinkerer/ThaumicTinkerer/changelog/web/changelog'
|
||||
|
||||
apply plugin: 'forge'
|
||||
//apply plugin: "curseforge"
|
||||
|
||||
|
||||
|
||||
group = "thaumic.tinkerer" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
|
||||
|
||||
ext.configFile = file('build.properties')
|
||||
|
||||
ext.config = parseConfig(configFile)
|
||||
|
||||
version = "${config.version}-${config.build_number}"
|
||||
//version = "${config.version}"
|
||||
archivesBaseName = config.mod_name
|
||||
|
||||
minecraft {
|
||||
version = "1.7.10-10.13.4.1614-1.7.10"
|
||||
//minecraftVersion="1.7.10"
|
||||
runDir = "eclipse"
|
||||
replace '${version}', project.version
|
||||
//coreMod("tconstruct.preloader.TConstructLoaderContainer")
|
||||
if (project.hasProperty("pass"))
|
||||
replace "INSERTPASSWORDHERE", project.pass
|
||||
|
||||
|
||||
}
|
||||
|
||||
//version = 'project.version'
|
||||
//if (System.getenv("BUILD_NUMBER")!=null)
|
||||
// version = "$version-${System.getenv().BUILD_NUMBER}"
|
||||
//if (project.hasProperty("releaseType"))
|
||||
// if (project.releaseType == "ALPHA")
|
||||
// version = "alpha-" + version
|
||||
|
||||
//curse {
|
||||
// projectId="75598"
|
||||
// version = "2.5-${minecraft.version}"
|
||||
// if (System.getenv("BUILD_NUMBER")!=null)
|
||||
// version = "$version-${System.getenv().BUILD_NUMBER}"
|
||||
// if(project.hasProperty("apiKey"))
|
||||
// apiKey=project.apiKey
|
||||
// changelog=" "
|
||||
// releaseType="release"
|
||||
// addGameVersion "{minecraft.version}"
|
||||
//}
|
||||
|
||||
|
||||
dependencies {
|
||||
compile "codechicken:CodeChickenLib:1.7.10-1.1.3.140:dev"
|
||||
compile "codechicken:CodeChickenCore:1.7.10-1.0.7.47:dev"
|
||||
compile "mcp.mobius.waila:Waila:1.5.10_1.7.10"
|
||||
compile "codechicken:ForgeMultipart:1.7.10-1.1.2.331:dev"
|
||||
|
||||
compile 'com.mod-buildcraft:buildcraft:6.4.8:dev'
|
||||
compile "codechicken:NotEnoughItems:1.7.10-1.0.5.118:dev"
|
||||
compile "codechicken:EnderStorage:1.7.10-1.4.7.37:dev"
|
||||
compile "mantle:Mantle:1.7.10-0.3.2.jenkins187:deobf"
|
||||
compile "li.cil.oc:OpenComputers:MC1.7.10-1.5.7.536-dev:api"
|
||||
compile "li.cil.oc:OpenComputers:MC1.7.10-1.5.7.536-dev:dev"
|
||||
compile("tconstruct:TConstruct:1.7.10-1.8.3.build927:deobf") {
|
||||
}
|
||||
}
|
||||
// some crazy stuff to make sure the chicken stuff is in the mods folder...
|
||||
// because it wont work otherwise... because FML doesnt laod coremods from the classpath
|
||||
|
||||
task copyChicken(type: Copy, dependsOn: "extractUserDev") {
|
||||
from { configurations.compile }
|
||||
include "**/*Chicken*.jar", "**/*NotEnoughItems*.jar"
|
||||
exclude "**/CodeChickenLib*" // because CCC downloads it anyways.. -_-
|
||||
into file(minecraft.runDir + "/mods")
|
||||
|
||||
mustRunAfter "deobfBinJar"
|
||||
mustRunAfter "repackMinecraft"
|
||||
}
|
||||
//tasks.setupDevWorkspace.dependsOn copyChicken
|
||||
//tasks.setupDecompWorkspace.dependsOn copyChicken
|
||||
|
||||
processResources
|
||||
{
|
||||
// replace stuff in mcmod.info, nothing else
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
include 'mcmod.info'
|
||||
// replace version and mcversion
|
||||
expand 'version': project.version, 'MCversion': project.minecraft.version
|
||||
}
|
||||
|
||||
// copy everything else, thats not the mcmod.info
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
exclude 'mcmod.info'
|
||||
}
|
||||
}
|
||||
jar {
|
||||
manifest {
|
||||
attributes 'FMLCorePlugin': 'thaumic.tinkerer.preloader.ThaumicTLoaderContainer'
|
||||
attributes 'FMLCorePluginContainsFMLMod': 'true'
|
||||
}
|
||||
//rename the default output, for some better... sanity with scipts
|
||||
archiveName = "${baseName} ${version}.${extension}"
|
||||
}
|
||||
|
||||
def parseConfig(File config) {
|
||||
config.withReader {
|
||||
def prop = new Properties()
|
||||
prop.load(it)
|
||||
return (new ConfigSlurper().parse(prop))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
task deobfJar(type: Jar) {
|
||||
from sourceSets.main.output
|
||||
classifier = 'dev'
|
||||
//version: 1707058017
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhconvention'
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
#Thu, 30 Jan 2014 18:26:58 +0000
|
||||
version=2.5-552-K
|
||||
build_number=0
|
||||
mc_version=1.7.10
|
||||
mod_name=ThaumicTinkerer-[1.7.10]
|
||||
dir.repo=./
|
||||
dir.gradle=../MCP1710/forge
|
||||
dir.output=../ANT Output
|
||||
dir.temp=../temp
|
||||
file.version=./web/version.json
|
||||
@@ -1,306 +0,0 @@
|
||||
<project name="ThaumicTinkerer" default="install" basedir=".">
|
||||
<!-- Buildscript thanks to CoFH -->
|
||||
<property environment="env"/>
|
||||
<!-- Basic directories -->
|
||||
<property name="src.dir" value="src/main/java"/>
|
||||
<property name="api.dir" value="src/api/java"/>
|
||||
<property name="library.dir" value="libs"/>
|
||||
<property name="library.download.dir" value="${library.dir}/downloads"/>
|
||||
<property name="resources.dir" value="src/main/resources"/>
|
||||
<property name="build.dir" value="build"/>
|
||||
<property name="download.dir" value="${build.dir}/downloads"/>
|
||||
<!-- Project information -->
|
||||
<property name="build.name" value="${ant.project.name}"/>
|
||||
<property name="class.pckg" value="thaumic/tinkerer"/>
|
||||
<!-- Version file -->
|
||||
<property name="verclass.dir" value="${src.dir}/${class.pckg}/common/lib"/>
|
||||
<property name="verclass.name" value="LibMisc.java"/>
|
||||
<!-- Forge version -->
|
||||
<property name="mc.version" value="1.7.10"/>
|
||||
<property name="forge.major" value="10"/>
|
||||
<property name="forge.minor" value="13"/>
|
||||
<property name="forge.patch" value="0"/>
|
||||
<property name="forge.build" value="1199"/>
|
||||
<!-- Packaging -->
|
||||
<property name="dist.dir" value="${build.dir}/dist"/>
|
||||
<property name="classes.dir" value="${build.dir}/packaging"/>
|
||||
<property name="apiclasses.dir" value="${build.dir}/api-packaging"/>
|
||||
<!-- Forge paths -->
|
||||
<property name="forge.version" value="${mc.version}-${forge.major}.${forge.minor}.${forge.patch}.${forge.build}"/>
|
||||
<property name="forge.dir" value="${build.dir}/forge"/>
|
||||
<property name="forgebuild.dir" value="${forge.dir}/build"/>
|
||||
<property name="compile.dir" value="${forgebuild.dir}/tmp/compile"/>
|
||||
<property name="lib.dir" value="${forgebuild.dir}/libs"/>
|
||||
<property name="sources.dir" value="${forgebuild.dir}/sources/minecraft"/>
|
||||
<property name="transformers.dir" value="${forge.dir}/src/main/resources/"/>
|
||||
<property name="forge.stsh"
|
||||
value="${build.dir}/.gradle/caches/minecraft/net/minecraftforge/forge/${forge.version}"/>
|
||||
<property name="forge.jar" value="${forge.stsh}/forgeSrc-${forge.version}.jar"/>
|
||||
<property name="reobf.cmd" value="${download.dir}/bon.jar"/>
|
||||
<property name="forge.url"
|
||||
value="http://files.minecraftforge.net/maven/net/minecraftforge/forge/${forge.version}/forge-${forge.version}-src.zip"/>
|
||||
<!-- Classpaths -->
|
||||
<path id="lib.classpath">
|
||||
<pathelement location="${forge.jar}"/>
|
||||
<fileset dir="${lib.dir}">
|
||||
<include name="*.jar"/>
|
||||
<include name="**/*.jar"/>
|
||||
<exclude name="${reobf.jar}"/>
|
||||
</fileset>
|
||||
<fileset dir="libs">
|
||||
<include name="*.jar"/>
|
||||
<include name="**/*.jar"/>
|
||||
</fileset>
|
||||
<!--fileset dir="${build.dir}/.gradle/caches">
|
||||
<include name="modules*/files*/**/*.jar"/>
|
||||
|
||||
<exclude name="commons-io-1.4.jar"/>
|
||||
<exclude name="commons-lang3-3.1.jar"/>
|
||||
<exclude name="modules*/files*/commons-io/commons-io/1.4/**/*.jar"/>
|
||||
<exclude name="modules*/files*/com.google.guava/guava/14*/**/*.jar"/>
|
||||
<exclude name="modules*/files*/com.google.guava/guava/15*/**/*.jar"/>
|
||||
</fileset-->
|
||||
</path>
|
||||
<path id="gson">
|
||||
<!--fileset dir="${build.dir}/.gradle/caches">
|
||||
<include name="modules*/files*/com.google.code.gson/**/*.jar"/>
|
||||
</fileset-->
|
||||
</path>
|
||||
<!-- Task skipping -->
|
||||
<target name="properties">
|
||||
<!-- Enforce some paths -->
|
||||
<mkdir dir="${build.dir}"/>
|
||||
<mkdir dir="${download.dir}"/>
|
||||
<!-- Set properties -->
|
||||
<available property="has.api" file="${src.dir}/${class.pckg}/api"/>
|
||||
<available property="forge.exists" file="${download.dir}/forge-${forge.version}-src.zip"/>
|
||||
<available property="bon.exists" file="${reobf.cmd}"/>
|
||||
<condition property="forge.already.installed">
|
||||
<available file="${forge.jar}" type="file"/>
|
||||
</condition>
|
||||
<condition property="have.libs">
|
||||
<and>
|
||||
<istrue value="${
|
||||
}"/>
|
||||
</and>
|
||||
</condition>
|
||||
</target>
|
||||
<!-- Dependency downloading -->
|
||||
<target name="download-core" depends="properties">
|
||||
</target>
|
||||
<target name="get-dependencies" depends="get-version" unless="have.libs">
|
||||
<delete dir="${library.download.dir}/"/>
|
||||
<mkdir dir="${library.download.dir}/"/>
|
||||
<echo message="Downloading libs"/>
|
||||
|
||||
<get src="http://files.minecraftforge.net/maven/codechicken/ForgeMultipart/1.7.2-1.1.0.268/ForgeMultipart-1.7.2-1.1.0.268-dev.jar"
|
||||
dest="${library.download.dir}/FMP.jar"/>
|
||||
<get src="http://dvs1.progwml6.com/files/maven/tconstruct/TConstruct/1.7.2-1.6.0.jenkins494/TConstruct-1.7.2-1.6.0.jenkins494-deobf.jar"
|
||||
dest="${library.download.dir}/TCONSTRUCT.jar"/>
|
||||
<get src="http://dvs1.progwml6.com/files/maven/mantle/Mantle/1.7.2-145.3a637c2/Mantle-1.7.2-145.3a637c2-deobf.jar"
|
||||
dest="${library.download.dir}/MANTLE.jar"/>
|
||||
<!-- Begin hack -->
|
||||
<delete dir="${compile.dir}" failonerror="false"/>
|
||||
<!-- End hack -->
|
||||
</target>
|
||||
<!-- Building process -->
|
||||
<target name="install" depends="build">
|
||||
<!-- Cleanup -->
|
||||
<delete dir="${apiclasses.dir}"/>
|
||||
<delete dir="${classes.dir}"/>
|
||||
<delete>
|
||||
<fileset dir="${dist.dir}">
|
||||
<exclude name="${build.name}${build.full}${build.number}.jar"/>
|
||||
<exclude name="${build.name}${build.full}dev-${build.number}.jar"/>
|
||||
<exclude name="${build.name}-API${build.full}${build.number}.zip"/>
|
||||
</fileset>
|
||||
</delete>
|
||||
</target>
|
||||
<macrodef name="install-lite">
|
||||
<attribute name="build"/>
|
||||
<attribute name="classes" default="${compile.dir}"/>
|
||||
<sequential>
|
||||
<copy todir="${classes.dir}" preservelastmodified="true">
|
||||
<fileset dir="@{classes}">
|
||||
<include name="**/*.class"/>
|
||||
</fileset>
|
||||
<fileset dir="${resources.dir}"/>
|
||||
</copy>
|
||||
<update-languages/>
|
||||
<manifest file="${classes.dir}/MANIFEST.MF">
|
||||
<attribute name="FMLCorePlugin" value="cofh.asm.LoadingPlugin"/>
|
||||
<attribute name="FMLCorePluginContainsFMLMod" value="true"/>
|
||||
</manifest>
|
||||
<jar destfile="${dist.dir}/${build.name}${build.full}@{build}.jar"
|
||||
compress="true" level="9" basedir="${classes.dir}"
|
||||
manifest="${classes.dir}/MANIFEST.MF">
|
||||
<exclude name="MANIFEST.MF"/>
|
||||
</jar>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
<target name="build" depends="get-dependencies,get-build-number,copy-sources">
|
||||
<!-- Recompile -->
|
||||
<echo message="Compiling..."/>
|
||||
<mkdir dir="${compile.dir}"/>
|
||||
<depend srcdir="${sources.dir}" destdir="${compile.dir}"
|
||||
cache="${forgebuild.dir}/tmp/depcache" closure="true">
|
||||
<include name="**/*.java"/>
|
||||
</depend>
|
||||
|
||||
<!--Print out detailed classpath-->
|
||||
<pathconvert pathsep="${line.separator}| |-- "
|
||||
property="echo.path.compile"
|
||||
refid="lib.classpath">
|
||||
</pathconvert>
|
||||
<echo message="|-- compile classpath"/>
|
||||
<echo message="| |"/>
|
||||
<echo message="| |-- ${echo.path.compile}"/>
|
||||
|
||||
<javac srcdir="${sources.dir}" destdir="${compile.dir}" target="1.6" source="1.6"
|
||||
classpathref="lib.classpath" debug="true" debuglevel="lines,source" includeAntRuntime="false">
|
||||
<include name="**/*.java"/>
|
||||
</javac>
|
||||
<!-- Dev jar -->
|
||||
<echo message="Building jar..."/>
|
||||
<local name="build"/>
|
||||
<property name="build" value="dev-${build.number}"/>
|
||||
<install-lite build="${build}"/>
|
||||
<!-- Reobf -->
|
||||
<echo message="Reobfuscating..."/>
|
||||
<java classpath="${reobf.cmd}" classname="immibis.bon.cui.MCPRemap">
|
||||
<arg line="-q -m"/>
|
||||
<arg value="-to SRG"/>
|
||||
<arg value="-from MCP"/>
|
||||
<arg value="-mcp ${forge.stsh}/unpacked"/>
|
||||
<arg value="-in ${dist.dir}/${build.name}${build.full}${build}.jar"/>
|
||||
<arg value="-out ${dist.dir}/${build.name}${build.full}${build.number}.jar"/>
|
||||
<arg value="-ref ${forge.jar}"/>
|
||||
<arg value="-jref ${lib.dir}"/>
|
||||
</java>
|
||||
</target>
|
||||
<target name="copy-sources" depends="package-api">
|
||||
<!-- Copy source -->
|
||||
<mkdir dir="${sources.dir}"/>
|
||||
<sync todir="${sources.dir}">
|
||||
<fileset dir="${src.dir}"/>
|
||||
<fileset dir="${api.dir}"/>
|
||||
</sync>
|
||||
</target>
|
||||
<target name="package-api" depends="get-version" if="has.api">
|
||||
<!-- Copy & package API -->
|
||||
<copy todir="${apiclasses.dir}/${class.pckg}/api">
|
||||
<fileset dir="${src.dir}/${class.pckg}/api"/>
|
||||
</copy>
|
||||
<zip destfile="${dist.dir}/${build.name}-API${build.full}${build.number}.zip" basedir="${apiclasses.dir}"/>
|
||||
</target>
|
||||
<target name="setup-forge" depends="download-forge" unless="forge.already.installed">
|
||||
<delete dir="${forge.dir}" failonerror="false"/>
|
||||
<mkdir dir="${forge.dir}"/>
|
||||
<unzip dest="${forge.dir}">
|
||||
<fileset dir="${download.dir}">
|
||||
<include name="forge-${forge.version}-src.zip"/>
|
||||
</fileset>
|
||||
</unzip>
|
||||
<!-- Cleanup -->
|
||||
<delete>
|
||||
<fileset dir="${forge.dir}">
|
||||
<include name="*.txt"/>
|
||||
<include name="src/**/*.info"/>
|
||||
</fileset>
|
||||
</delete>
|
||||
<delete dir="${forge.dir}/eclipse" failonerror="false"/>
|
||||
<delete dir="${forge.dir}/src/main/java" failonerror="false"/>
|
||||
<delete dir="${build.dir}/.gradle/caches/minecraft/net/minecraftforge/forge/${forge.version}/srgs"
|
||||
failonerror="false"/>
|
||||
<!-- Change executables' permissions -->
|
||||
<chmod file="${forge.dir}/gradlew" perm="+x"/>
|
||||
<copy file="${resources.dir}/ThaumicTinkerer_at.cfg" tofile="${transformers.dir}/ThaumicTinkerer_at.cfg"/>
|
||||
<!-- Install forge -->
|
||||
<exec executable="./gradlew" failonerror="true" dir="${forge.dir}/" vmlauncher="false">
|
||||
<arg line="-g ../.gradle"/>
|
||||
<arg line="extractMinecraftSrc"/>
|
||||
<arg line="eclipseClasspath"/>
|
||||
</exec>
|
||||
<mkdir dir="${compile.dir}"/>
|
||||
<mkdir dir="${lib.dir}"/>
|
||||
<javac srcdir="${forgebuild.dir}/tmp/recompSrc" destdir="${compile.dir}" target="1.6" source="1.6"
|
||||
classpathref="lib.classpath" debug="true" debuglevel="lines,source" includeAntRuntime="false"/>
|
||||
<jar destfile="${forge.jar}" compress="true" level="9" basedir="${compile.dir}"/>
|
||||
<copy file="${forge.jar}" todir="${forgebuild.dir}/dirtyArtifacts/"/>
|
||||
<delete dir="${compile.dir}"/>
|
||||
</target>
|
||||
<target name="download-forge" depends="setup-bon,download-core">
|
||||
<echo message="Downloading forge... "/>
|
||||
<get src="${forge.url}" dest="${download.dir}/forge-${forge.version}-src.zip"/>
|
||||
</target>
|
||||
<target name="setup-bon" depends="properties" unless="bon.exists">
|
||||
<echo message="Downloading BON..."/>
|
||||
<get src="https://github.com/skyboy/bearded-octo-nemesis/releases/download/1.1/BON.jar" dest="${reobf.cmd}"/>
|
||||
</target>
|
||||
<macrodef name="update-languages">
|
||||
<sequential>
|
||||
<script language="javascript"><![CDATA[
|
||||
importPackage(java.io);
|
||||
var path = "/assets/cofh/language/";
|
||||
var languages = new File(project.getProperty("resources.dir") + path);
|
||||
if (languages.exists() && languages.isDirectory()) {
|
||||
var out = "";
|
||||
for each(var i in languages.list()) {
|
||||
if (i != null && i.length() > 5 && i.indexOf(".lang") == i.length() - 5) {
|
||||
out += i.substring(0, i.length() - 5) + ", ";
|
||||
}
|
||||
}
|
||||
if (out.length > 0) {
|
||||
var os = new PrintWriter(project.getProperty("classes.dir") + path + ".languages");
|
||||
os.write("["+out.substring(0, out.length - 2)+"]");
|
||||
os.flush();
|
||||
os.close();
|
||||
}
|
||||
}
|
||||
]]></script>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
<target name="verify-version">
|
||||
<script language="javascript"><![CDATA[
|
||||
var name = project.getProperty("build.full");
|
||||
if (name == null || name == "") {
|
||||
name = project.getProperty("verclass.name");
|
||||
if (name == null || name == "") {
|
||||
project.setProperty("build.full", "-");
|
||||
}
|
||||
}
|
||||
]]></script>
|
||||
</target>
|
||||
<target name="get-version" depends="verify-version,setup-forge" unless="build.full">
|
||||
<local name="grep.out"/>
|
||||
<local name="mfrv"/>
|
||||
<local name="mcv"/>
|
||||
<!-- Read version out of file -->
|
||||
<property name="version" value="2.4"/>
|
||||
<!-- Split mod&mc version, update mcmod -->
|
||||
<property name="build.full" value="-[${mcv}]${mfrv}-"/>
|
||||
</target>
|
||||
<target name="get-build-number" depends="build-number-there" unless="build.number">
|
||||
<echo message="!! No build number set !!"/>
|
||||
<property name="build.number" value="CUSTOM_BUILD"/>
|
||||
</target>
|
||||
<target name="build-number-there" depends="get-version" if="env.BUILD_NUMBER" unless="build.number">
|
||||
<echo message="Using build number ${env.BUILD_NUMBER}..."/>
|
||||
<property name="build.number" value="${env.BUILD_NUMBER}"/>
|
||||
</target>
|
||||
<target name="clean">
|
||||
<delete dir="${build.dir}"/>
|
||||
</target>
|
||||
<target name="rebuild">
|
||||
<delete file="${forge.jar}" failonerror="false"/>
|
||||
<delete dir="${forge.dir}"/>
|
||||
<delete dir="${download.dir}"/>
|
||||
<antcall target="install"/>
|
||||
</target>
|
||||
<target name="refresh-deps">
|
||||
<delete dir="${lib.dir}"/>
|
||||
<delete dir="${download.dir}"/>
|
||||
<antcall target="install"/>
|
||||
</target>
|
||||
<target name="jar" depends="install"/>
|
||||
</project>
|
||||
@@ -0,0 +1,23 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
api('com.github.GTNewHorizons:Baubles:1.0.4:dev')
|
||||
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-349-GTNH:api')
|
||||
|
||||
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
|
||||
|
||||
compileOnly('com.github.GTNewHorizons:Botania:1.10.12-GTNH:dev') {transitive=false}
|
||||
compileOnly('com.github.GTNewHorizons:EnderCore:0.4.6:dev') {transitive=false}
|
||||
compileOnly('com.github.GTNewHorizons:EnderIO:2.7.3:dev') {transitive=false}
|
||||
compileOnly('com.github.GTNewHorizons:EnderStorage:1.5.0:dev') {transitive=false}
|
||||
compileOnly('com.github.GTNewHorizons:waila:1.7.3:api') {transitive=false}
|
||||
compileOnly('com.github.GTNewHorizons:TinkersConstruct:1.11.15-GTNH:dev') {transitive=false}
|
||||
compileOnly('com.github.GTNewHorizons:ForgeMultipart:1.4.8:dev') {transitive=false}
|
||||
compileOnly('com.github.GTNewHorizons:CodeChickenLib:1.2.1:dev') {transitive=false}
|
||||
compileOnly('com.github.GTNewHorizons:OpenComputers:1.10.11-GTNH:api') {transitive=false}
|
||||
|
||||
compileOnly('curse.maven:computercraft-67504:2269339')
|
||||
compileOnly('curse.maven:cofh-lib-220333:2388748')
|
||||
compileOnly('curse.maven:cofh-core-69162:2388751')
|
||||
compileOnly('net.industrial-craft:industrialcraft-2:2.2.828-experimental:api') {transitive=false}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
FMLCorePlugin: tconstruct.preloader.TConstructLoaderContainer
|
||||
FMLCorePluginContainsFMLMod: true
|
||||
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,192 @@
|
||||
# ExampleMod tag to use as Blowdryer (Spotless, etc.) settings version, leave empty to disable.
|
||||
# LOCAL to test local config updates.
|
||||
gtnh.settings.blowdryerTag = 0.2.0
|
||||
|
||||
# Human-readable mod name, available for mcmod.info population.
|
||||
modName = Thaumic Tinkerer
|
||||
|
||||
# Case-sensitive identifier string, available for mcmod.info population and used for automatic mixin JSON generation.
|
||||
# Conventionally lowercase.
|
||||
modId = ThaumicTinkerer
|
||||
|
||||
# Root package of the mod, used to find various classes in other properties,
|
||||
# mcmod.info substitution, enabling assertions in run tasks, etc.
|
||||
modGroup = thaumic.tinkerer
|
||||
|
||||
# Whether to use modGroup as the maven publishing group.
|
||||
# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods.
|
||||
useModGroupForPublishing = false
|
||||
|
||||
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
|
||||
autoUpdateBuildScript = false
|
||||
|
||||
# Version of Minecraft to target
|
||||
minecraftVersion = 1.7.10
|
||||
|
||||
# Version of Minecraft Forge to target
|
||||
forgeVersion = 10.13.4.1614
|
||||
|
||||
# Specify an MCP channel for dependency deobfuscation and the deobfParams task.
|
||||
channel = stable
|
||||
|
||||
# Specify an MCP mappings version for dependency deobfuscation and the deobfParams task.
|
||||
mappingsVersion = 12
|
||||
|
||||
# Defines other MCP mappings for dependency deobfuscation.
|
||||
remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/
|
||||
|
||||
# Select a default username for testing your mod. You can always override this per-run by running
|
||||
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
|
||||
developmentEnvironmentUserName = Developer
|
||||
|
||||
# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
|
||||
# See https://github.com/bsideup/jabel for details on how this works.
|
||||
enableModernJavaSyntax = false
|
||||
|
||||
# Enables injecting missing generics into the decompiled source code for a better coding experience.
|
||||
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
|
||||
enableGenericInjection = false
|
||||
|
||||
# Generate a class with a String field for the mod version named as defined below.
|
||||
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
|
||||
# If gradleTokenVersion is empty or missing, the field will not be present in the class.
|
||||
generateGradleTokenClass =
|
||||
|
||||
# Name of the token containing the project's current version to generate/replace.
|
||||
gradleTokenVersion = GRADLETOKEN_VERSION
|
||||
|
||||
# [DEPRECATED] Mod ID replacement token.
|
||||
gradleTokenModId =
|
||||
|
||||
# [DEPRECATED] Mod name replacement token.
|
||||
gradleTokenModName =
|
||||
|
||||
# [DEPRECATED] Mod Group replacement token.
|
||||
gradleTokenGroupName =
|
||||
|
||||
# [DEPRECATED]
|
||||
# Multiple source files can be defined here by providing a comma-separated list: Class1.java,Class2.java,Class3.java
|
||||
# public static final String VERSION = "GRADLETOKEN_VERSION";
|
||||
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
|
||||
# version in @Mod([...], version = VERSION, [...]).
|
||||
# Leave these properties empty to skip individual token replacements.
|
||||
replaceGradleTokenInFile = LibMisc.java
|
||||
|
||||
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
|
||||
# leave this property empty.
|
||||
# Example value: (apiPackage = api) + (modGroup = com.myname.mymodid) -> com.myname.mymodid.api
|
||||
apiPackage = api
|
||||
|
||||
# Specify the configuration file for Forge's access transformers here. It must be placed into /src/main/resources/META-INF/
|
||||
# There can be multiple files in a space-separated list.
|
||||
# Example value: mymodid_at.cfg nei_at.cfg
|
||||
accessTransformersFile = ThaumicTinkerer_at.cfg
|
||||
|
||||
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
|
||||
usesMixins = true
|
||||
|
||||
# Adds some debug arguments like verbose output and class export.
|
||||
usesMixinDebug = true
|
||||
|
||||
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
|
||||
mixinPlugin =
|
||||
|
||||
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
|
||||
mixinsPackage = mixins
|
||||
|
||||
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
|
||||
# This parameter is for legacy compatibility only
|
||||
# Example value: (coreModClass = asm.FMLPlugin) + (modGroup = com.myname.mymodid) -> com.myname.mymodid.asm.FMLPlugin
|
||||
coreModClass = preloader.ThaumicTLoaderContainer
|
||||
|
||||
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
|
||||
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
|
||||
containsMixinsAndOrCoreModOnly = false
|
||||
|
||||
# Enables Mixins even if this mod doesn't use them, useful if one of the dependencies uses mixins.
|
||||
forceEnableMixins = false
|
||||
|
||||
# If enabled, you may use 'shadowCompile' for dependencies. They will be integrated into your jar. It is your
|
||||
# responsibility to check the license and request permission for distribution if required.
|
||||
usesShadowedDependencies = false
|
||||
|
||||
# If disabled, won't remove unused classes from shadowed dependencies. Some libraries use reflection to access
|
||||
# their own classes, making the minimization unreliable.
|
||||
minimizeShadowedDependencies = true
|
||||
|
||||
# If disabled, won't rename the shadowed classes.
|
||||
relocateShadowedDependencies = true
|
||||
|
||||
# Adds the GTNH maven, CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
|
||||
includeWellKnownRepositories = true
|
||||
|
||||
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
|
||||
# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
|
||||
# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
|
||||
usesMavenPublishing = true
|
||||
|
||||
# Maven repository to publish the mod to.
|
||||
# mavenPublishUrl = https\://nexus.gtnewhorizons.com/repository/releases/
|
||||
|
||||
# Publishing to Modrinth requires you to set the MODRINTH_TOKEN environment variable to your current Modrinth API token.
|
||||
#
|
||||
# The project's ID on Modrinth. Can be either the slug or the ID.
|
||||
# Leave this empty if you don't want to publish to Modrinth.
|
||||
modrinthProjectId =
|
||||
|
||||
# The project's relations on Modrinth. You can use this to refer to other projects on Modrinth.
|
||||
# Syntax: scope1-type1:name1;scope2-type2:name2;...
|
||||
# Where scope can be one of [required, optional, incompatible, embedded],
|
||||
# type can be one of [project, version],
|
||||
# and the name is the Modrinth project or version slug/id of the other mod.
|
||||
# Example: required-project:fplib;optional-project:gasstation;incompatible-project:gregtech
|
||||
# Note: GTNH Mixins is automatically set as a required dependency if usesMixins = true
|
||||
modrinthRelations =
|
||||
|
||||
# Publishing to CurseForge requires you to set the CURSEFORGE_TOKEN environment variable to one of your CurseForge API tokens.
|
||||
#
|
||||
# The project's numeric ID on CurseForge. You can find this in the About Project box.
|
||||
# Leave this empty if you don't want to publish on CurseForge.
|
||||
curseForgeProjectId =
|
||||
|
||||
# The project's relations on CurseForge. You can use this to refer to other projects on CurseForge.
|
||||
# Syntax: type1:name1;type2:name2;...
|
||||
# Where type can be one of [requiredDependency, embeddedLibrary, optionalDependency, tool, incompatible],
|
||||
# and the name is the CurseForge project slug of the other mod.
|
||||
# Example: requiredDependency:railcraft;embeddedLibrary:cofhlib;incompatible:buildcraft
|
||||
# Note: UniMixins is automatically set as a required dependency if usesMixins = true.
|
||||
curseForgeRelations =
|
||||
|
||||
# Optional parameter to customize the produced artifacts. Use this to preserve artifact naming when migrating older
|
||||
# projects. New projects should not use this parameter.
|
||||
# customArchiveBaseName =
|
||||
|
||||
# Optional parameter to have the build automatically fail if an illegal version is used.
|
||||
# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
|
||||
# The check is ONLY performed if the version is a git tag.
|
||||
# Note: the specified string must be escaped, so e.g. 1\\.1\\.\\d+ instead of 1\.1\.\d+
|
||||
# versionPattern =
|
||||
|
||||
# Uncomment to prevent the source code from being published.
|
||||
# noPublishedSources = true
|
||||
|
||||
# Uncomment this to disable Spotless checks.
|
||||
# This should only be uncommented to keep it easier to sync with upstream/other forks.
|
||||
# That is, if there is no other active fork/upstream, NEVER change this.
|
||||
# disableSpotless = true
|
||||
|
||||
# Uncomment this to disable Checkstyle checks (currently wildcard import check).
|
||||
# disableCheckstyle = true
|
||||
|
||||
# Override the IDEA build type. Valid values are: "" (leave blank, do not override), "idea" (force use native IDEA build), "gradle"
|
||||
# (force use delegated build).
|
||||
# This is meant to be set in $HOME/.gradle/gradle.properties.
|
||||
# e.g. add "systemProp.org.gradle.project.ideaOverrideBuildType=idea" will override the build type to be native build.
|
||||
# WARNING: If you do use this option, it will overwrite whatever you have in your existing projects. This might not be what you want!
|
||||
# Usually there is no need to uncomment this here as other developers do not necessarily use the same build type as you.
|
||||
# ideaOverrideBuildType = idea
|
||||
|
||||
# Whether IDEA should run spotless checks when pressing the Build button.
|
||||
# This is meant to be set in $HOME/.gradle/gradle.properties.
|
||||
# ideaCheckSpotlessOnBuild = true
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
#Sun Jun 29 10:07:24 EDT 2014
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
@@ -1,6 +0,0 @@
|
||||
#Sun Jun 29 10:07:25 EDT 2014
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-1.12-bin.zip
|
||||
Vendored
-164
@@ -1,164 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
##############################################################################
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS=""
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
|
||||
warn ( ) {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
die ( ) {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
esac
|
||||
|
||||
# For Cygwin, ensure paths are in UNIX format before anything is touched.
|
||||
if $cygwin ; then
|
||||
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||
fi
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >&-
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >&-
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=$((i+1))
|
||||
done
|
||||
case $i in
|
||||
(0) set -- ;;
|
||||
(1) set -- "$args0" ;;
|
||||
(2) set -- "$args0" "$args1" ;;
|
||||
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
|
||||
function splitJvmOpts() {
|
||||
JVM_OPTS=("$@")
|
||||
}
|
||||
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
|
||||
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
|
||||
|
||||
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
|
||||
Vendored
BIN
Binary file not shown.
+3
-2
@@ -1,6 +1,7 @@
|
||||
#Wed Jul 02 15:54:47 CDT 2014
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=http\://services.gradle.org/distributions/gradle-2.10-all.zip
|
||||
@@ -1,79 +1,127 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Copyright © 2015-2021 the original authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
#
|
||||
# Gradle start up script for POSIX generated by Gradle.
|
||||
#
|
||||
# Important for running:
|
||||
#
|
||||
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
||||
# noncompliant, but you have some other compliant shell such as ksh or
|
||||
# bash, then to run this script, type that shell name before the whole
|
||||
# command line, like:
|
||||
#
|
||||
# ksh Gradle
|
||||
#
|
||||
# Busybox and similar reduced shells will NOT work, because this script
|
||||
# requires all of these POSIX shell features:
|
||||
# * functions;
|
||||
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
||||
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
||||
# * compound commands having a testable exit status, especially «case»;
|
||||
# * various built-in commands including «command», «set», and «ulimit».
|
||||
#
|
||||
# Important for patching:
|
||||
#
|
||||
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
||||
# by Bash, Ksh, etc; in particular arrays are avoided.
|
||||
#
|
||||
# The "traditional" practice of packing multiple parameters into a
|
||||
# space-separated string is a well documented source of bugs and security
|
||||
# problems, so this is (mostly) avoided, by progressively accumulating
|
||||
# options in "$@", and eventually passing that to Java.
|
||||
#
|
||||
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
||||
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
||||
# see the in-line comments for details.
|
||||
#
|
||||
# There are tweaks for specific operating systems such as AIX, CygWin,
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS=""
|
||||
# Attempt to set APP_HOME
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
# Resolve links: $0 may be a link
|
||||
app_path=$0
|
||||
|
||||
# Need this for daisy-chained symlinks.
|
||||
while
|
||||
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
||||
[ -h "$app_path" ]
|
||||
do
|
||||
ls=$( ls -ld "$app_path" )
|
||||
link=${ls#*' -> '}
|
||||
case $link in #(
|
||||
/*) app_path=$link ;; #(
|
||||
*) app_path=$APP_HOME$link ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# This is normally unused
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
MAX_FD=maximum
|
||||
|
||||
warn ( ) {
|
||||
warn () {
|
||||
echo "$*"
|
||||
}
|
||||
} >&2
|
||||
|
||||
die ( ) {
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
} >&2
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
nonstop=false
|
||||
case "$( uname )" in #(
|
||||
CYGWIN* ) cygwin=true ;; #(
|
||||
Darwin* ) darwin=true ;; #(
|
||||
MSYS* | MINGW* ) msys=true ;; #(
|
||||
NONSTOP* ) nonstop=true ;;
|
||||
esac
|
||||
|
||||
# For Cygwin, ensure paths are in UNIX format before anything is touched.
|
||||
if $cygwin ; then
|
||||
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||
fi
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >&-
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >&-
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
JAVACMD=$JAVA_HOME/jre/sh/java
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
JAVACMD=$JAVA_HOME/bin/java
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
@@ -82,83 +130,120 @@ Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
JAVACMD=java
|
||||
if ! command -v java >/dev/null 2>&1
|
||||
then
|
||||
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=$((i+1))
|
||||
done
|
||||
case $i in
|
||||
(0) set -- ;;
|
||||
(1) set -- "$args0" ;;
|
||||
(2) set -- "$args0" "$args1" ;;
|
||||
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||
case $MAX_FD in #(
|
||||
max*)
|
||||
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC2039,SC3045
|
||||
MAX_FD=$( ulimit -H -n ) ||
|
||||
warn "Could not query maximum file descriptor limit"
|
||||
esac
|
||||
case $MAX_FD in #(
|
||||
'' | soft) :;; #(
|
||||
*)
|
||||
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC2039,SC3045
|
||||
ulimit -n "$MAX_FD" ||
|
||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||
esac
|
||||
fi
|
||||
|
||||
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
|
||||
function splitJvmOpts() {
|
||||
JVM_OPTS=("$@")
|
||||
}
|
||||
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
|
||||
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
|
||||
# Collect all arguments for the java command, stacking in reverse order:
|
||||
# * args from the command line
|
||||
# * the main class name
|
||||
# * -classpath
|
||||
# * -D...appname settings
|
||||
# * --module-path (only if needed)
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
||||
|
||||
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if "$cygwin" || "$msys" ; then
|
||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
||||
|
||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
for arg do
|
||||
if
|
||||
case $arg in #(
|
||||
-*) false ;; # don't mess with options #(
|
||||
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
||||
[ -e "$t" ] ;; #(
|
||||
*) false ;;
|
||||
esac
|
||||
then
|
||||
arg=$( cygpath --path --ignore --mixed "$arg" )
|
||||
fi
|
||||
# Roll the args list around exactly as many times as the number of
|
||||
# args, so each arg winds up back in the position where it started, but
|
||||
# possibly modified.
|
||||
#
|
||||
# NB: a `for` loop captures its iteration list before it begins, so
|
||||
# changing the positional parameters here affects neither the number of
|
||||
# iterations, nor the values presented in `arg`.
|
||||
shift # remove old arg
|
||||
set -- "$@" "$arg" # push replacement arg
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Collect all arguments for the java command:
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||
# and any embedded shellness will be escaped.
|
||||
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||
# treated as '${Hostname}' itself on the command line.
|
||||
|
||||
set -- \
|
||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||
-classpath "$CLASSPATH" \
|
||||
org.gradle.wrapper.GradleWrapperMain \
|
||||
"$@"
|
||||
|
||||
# Stop when "xargs" is not available.
|
||||
if ! command -v xargs >/dev/null 2>&1
|
||||
then
|
||||
die "xargs is not available"
|
||||
fi
|
||||
|
||||
# Use "xargs" to parse quoted args.
|
||||
#
|
||||
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
||||
#
|
||||
# In Bash we could simply go:
|
||||
#
|
||||
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
||||
# set -- "${ARGS[@]}" "$@"
|
||||
#
|
||||
# but POSIX shell has neither arrays nor command substitution, so instead we
|
||||
# post-process each arg (as a line of input to sed) to backslash-escape any
|
||||
# character that might be a shell metacharacter, then use eval to reverse
|
||||
# that process (while maintaining the separation between arguments), and wrap
|
||||
# the whole thing up as a single "set" statement.
|
||||
#
|
||||
# This will of course break if any of these variables contains a newline or
|
||||
# an unmatched quote.
|
||||
#
|
||||
|
||||
eval "set -- $(
|
||||
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
||||
xargs -n1 |
|
||||
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
||||
tr '\n' ' '
|
||||
)" '"$@"'
|
||||
|
||||
exec "$JAVACMD" "$@"
|
||||
Vendored
+44
-42
@@ -1,4 +1,20 @@
|
||||
@if "%DEBUG%" == "" @echo off
|
||||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@@ -8,26 +24,30 @@
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS=
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
if "%DIRNAME%"=="" set DIRNAME=.
|
||||
@rem This is normally unused
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto init
|
||||
if %ERRORLEVEL% equ 0 goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
echo. 1>&2
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
||||
echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
goto fail
|
||||
|
||||
@@ -35,54 +55,36 @@ goto fail
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto init
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
echo. 1>&2
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
||||
echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
goto fail
|
||||
|
||||
:init
|
||||
@rem Get command-line arguments, handling Windowz variants
|
||||
|
||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
||||
if "%@eval[2+2]" == "4" goto 4NT_args
|
||||
|
||||
:win9xME_args
|
||||
@rem Slurp the command line arguments.
|
||||
set CMD_LINE_ARGS=
|
||||
set _SKIP=2
|
||||
|
||||
:win9xME_args_slurp
|
||||
if "x%~1" == "x" goto execute
|
||||
|
||||
set CMD_LINE_ARGS=%*
|
||||
goto execute
|
||||
|
||||
:4NT_args
|
||||
@rem Get arguments from the 4NT Shell from JP Software
|
||||
set CMD_LINE_ARGS=%$
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||
exit /b 1
|
||||
set EXIT_CODE=%ERRORLEVEL%
|
||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||
exit /b %EXIT_CODE%
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
@@ -0,0 +1,2 @@
|
||||
before_install:
|
||||
- ./gradlew setupCIWorkspace
|
||||
@@ -0,0 +1,4 @@
|
||||
// Add any additional repositories for your dependencies here
|
||||
|
||||
repositories {
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
|
||||
pluginManagement {
|
||||
repositories {
|
||||
maven {
|
||||
// RetroFuturaGradle
|
||||
name "GTNH Maven"
|
||||
url "https://nexus.gtnewhorizons.com/repository/public/"
|
||||
mavenContent {
|
||||
includeGroup("com.gtnewhorizons")
|
||||
includeGroupByRegex("com\\.gtnewhorizons\\..+")
|
||||
}
|
||||
}
|
||||
gradlePluginPortal()
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.21'
|
||||
}
|
||||
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
package appeng.api;
|
||||
|
||||
/**
|
||||
*
|
||||
* Entry point for api.
|
||||
*
|
||||
* Available IMCs:
|
||||
*
|
||||
*/
|
||||
public class AEApi
|
||||
{
|
||||
|
||||
static private IAppEngApi api = null;
|
||||
|
||||
/**
|
||||
* API Entry Point.
|
||||
*
|
||||
* @return the {@link IAppEngApi} or null if the instance could not be retrieved
|
||||
*/
|
||||
public static IAppEngApi instance()
|
||||
{
|
||||
if ( api == null )
|
||||
{
|
||||
try
|
||||
{
|
||||
Class c = Class.forName( "appeng.core.Api" );
|
||||
api = (IAppEngApi) c.getField( "instance" ).get( c );
|
||||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
return api;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
package appeng.api;
|
||||
|
||||
import appeng.api.definitions.Blocks;
|
||||
import appeng.api.definitions.Items;
|
||||
import appeng.api.definitions.Materials;
|
||||
import appeng.api.definitions.Parts;
|
||||
import appeng.api.exceptions.FailedConnection;
|
||||
import appeng.api.features.IRegistryContainer;
|
||||
import appeng.api.networking.IGridBlock;
|
||||
import appeng.api.networking.IGridConnection;
|
||||
import appeng.api.networking.IGridHost;
|
||||
import appeng.api.networking.IGridNode;
|
||||
import appeng.api.parts.IPartHelper;
|
||||
import appeng.api.storage.IStorageHelper;
|
||||
|
||||
public interface IAppEngApi
|
||||
{
|
||||
|
||||
/**
|
||||
* @return Registry Container for the numerous registries in AE2.
|
||||
*/
|
||||
IRegistryContainer registries();
|
||||
|
||||
/**
|
||||
* @return helper for working with storage data types.
|
||||
*/
|
||||
IStorageHelper storage();
|
||||
|
||||
/**
|
||||
* @return helper for working with grids, and buses.
|
||||
*/
|
||||
IPartHelper partHelper();
|
||||
|
||||
/**
|
||||
* @return an accessible list of all of AE's Items
|
||||
*/
|
||||
Items items();
|
||||
|
||||
/**
|
||||
* @return an accessible list of all of AE's materials; materials are items
|
||||
*/
|
||||
Materials materials();
|
||||
|
||||
/**
|
||||
* @return an accessible list of all of AE's blocks
|
||||
*/
|
||||
Blocks blocks();
|
||||
|
||||
/**
|
||||
* @return an accessible list of all of AE's parts, parts are items
|
||||
*/
|
||||
Parts parts();
|
||||
|
||||
/**
|
||||
* create a grid node for your {@link IGridHost}
|
||||
*
|
||||
* @param block grid block
|
||||
* @return grid node of block
|
||||
*/
|
||||
IGridNode createGridNode(IGridBlock block);
|
||||
|
||||
/**
|
||||
* create a connection between two {@link IGridNode}
|
||||
*
|
||||
* @param a to be connected gridnode
|
||||
* @param b to be connected gridnode
|
||||
* @throws FailedConnection
|
||||
*/
|
||||
IGridConnection createGridConnection(IGridNode a, IGridNode b) throws FailedConnection;
|
||||
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum AccessRestriction
|
||||
{
|
||||
NO_ACCESS(0), READ(1), WRITE(2), READ_WRITE(3);
|
||||
|
||||
private final int permissionBit;
|
||||
|
||||
private AccessRestriction(int v) {
|
||||
permissionBit = v;
|
||||
}
|
||||
|
||||
public boolean hasPermission(AccessRestriction ar)
|
||||
{
|
||||
return (permissionBit & ar.permissionBit) == ar.permissionBit;
|
||||
}
|
||||
|
||||
public AccessRestriction restrictPermissions(AccessRestriction ar)
|
||||
{
|
||||
return getPermByBit( permissionBit & ar.permissionBit);
|
||||
}
|
||||
|
||||
public AccessRestriction addPermissions(AccessRestriction ar)
|
||||
{
|
||||
return getPermByBit( permissionBit | ar.permissionBit);
|
||||
}
|
||||
|
||||
public AccessRestriction removePermissions(AccessRestriction ar)
|
||||
{
|
||||
return getPermByBit( permissionBit & (~ar.permissionBit) );
|
||||
}
|
||||
|
||||
private AccessRestriction getPermByBit(int bit)
|
||||
{
|
||||
switch (bit)
|
||||
{
|
||||
default:
|
||||
case 0:
|
||||
return NO_ACCESS;
|
||||
case 1:
|
||||
return READ;
|
||||
case 2:
|
||||
return WRITE;
|
||||
case 3:
|
||||
return READ_WRITE;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum ActionItems
|
||||
{
|
||||
WRENCH, CLOSE, STASH, ENCODE, SUBSTITUTION
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum Actionable
|
||||
{
|
||||
/**
|
||||
* Perform the intended action.
|
||||
*/
|
||||
MODULATE,
|
||||
|
||||
/**
|
||||
* Pretend to perform the action.
|
||||
*/
|
||||
SIMULATE
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
|
||||
public enum CondenserOutput
|
||||
{
|
||||
|
||||
TRASH, // 0
|
||||
|
||||
MATTER_BALLS, // 256
|
||||
|
||||
SINGULARITY; // 250,000
|
||||
|
||||
public int requiredPower = 0;
|
||||
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum CopyMode
|
||||
{
|
||||
CLEAR_ON_REMOVE, KEEP_ON_REMOVE
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum FullnessMode
|
||||
{
|
||||
EMPTY, HALF, FULL
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum FuzzyMode
|
||||
{
|
||||
// Note that percentage damaged, is the inverse of percentage durability.
|
||||
IGNORE_ALL(-1), PERCENT_99(0), PERCENT_75(25), PERCENT_50(50), PERCENT_25(75);
|
||||
|
||||
final public float breakPoint;
|
||||
final public float percentage;
|
||||
|
||||
private FuzzyMode(float p) {
|
||||
percentage = p;
|
||||
breakPoint = p / 100.0f;
|
||||
}
|
||||
|
||||
public int calculateBreakPoint(int maxDamage)
|
||||
{
|
||||
return (int) ((percentage * maxDamage) / 100.0f);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum IncludeExclude
|
||||
{
|
||||
WHITELIST, BLACKLIST
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum LevelEmitterMode
|
||||
{
|
||||
|
||||
STORED_AMOUNT,
|
||||
|
||||
STORABLE_AMOUNT
|
||||
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum LevelType
|
||||
{
|
||||
|
||||
ITEM_LEVEL,
|
||||
|
||||
ENERGY_LEVEL
|
||||
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum ModSettings
|
||||
{
|
||||
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum NetworkEmitterMode
|
||||
{
|
||||
|
||||
POWER_LEVEL,
|
||||
|
||||
BOOTING,
|
||||
|
||||
CHANNEL_ERROR
|
||||
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum OperationMode
|
||||
{
|
||||
FILL, EMPTY
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum OutputMode
|
||||
{
|
||||
EXPORT_ONLY, EXPORT_OR_CRAFT, CRAFT_ONLY
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum PowerMultiplier
|
||||
{
|
||||
ONE, CONFIG;
|
||||
|
||||
/**
|
||||
* please do not edit this value, it is set when AE loads its config files.
|
||||
*/
|
||||
public double multiplier = 1.0;
|
||||
|
||||
public double multiply(double in)
|
||||
{
|
||||
return in * multiplier;
|
||||
}
|
||||
|
||||
public double divide(double in)
|
||||
{
|
||||
return in / multiplier;
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum PowerUnits
|
||||
{
|
||||
AE("gui.appliedenergistics2.units.appliedenergstics"), // Native Units - AE Energy
|
||||
MJ("gui.appliedenergistics2.units.buildcraft"), // BuildCraft - Minecraft Joules
|
||||
EU("gui.appliedenergistics2.units.ic2"), // IndustrialCraft 2 - Energy Units
|
||||
WA("gui.appliedenergistics2.units.rotarycraft"), // RotaryCraft - Watts
|
||||
RF("gui.appliedenergistics2.units.thermalexpansion"), // ThermalExpansion - Redstone Flux
|
||||
MK("gui.appliedenergistics2.units.mekanism"); // Mekanism - Joules
|
||||
|
||||
private PowerUnits(String un) {
|
||||
unlocalizedName = un;
|
||||
}
|
||||
|
||||
/**
|
||||
* please do not edit this value, it is set when AE loads its config files.
|
||||
*/
|
||||
public double conversionRatio = 1.0;
|
||||
|
||||
/**
|
||||
* unlocalized name for the power unit.
|
||||
*/
|
||||
final public String unlocalizedName;
|
||||
|
||||
/**
|
||||
* do power conversion using AE's conversion rates.
|
||||
*
|
||||
* Example: PowerUnits.EU.convertTo( PowerUnits.AE, 32 );
|
||||
*
|
||||
* will normally returns 64, as it will convert the EU, to AE with AE's power settings.
|
||||
*
|
||||
* @param target target power unit
|
||||
* @param value value
|
||||
* @return value converted to target units, from this units.
|
||||
*/
|
||||
public double convertTo(PowerUnits target, double value)
|
||||
{
|
||||
return (value * conversionRatio) / target.conversionRatio;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum RedstoneMode
|
||||
{
|
||||
IGNORE, LOW_SIGNAL, HIGH_SIGNAL, SIGNAL_PULSE
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum RelativeDirection
|
||||
{
|
||||
LEFT, RIGHT, UP, DOW
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum SearchBoxMode
|
||||
{
|
||||
AUTOSEARCH, MANUAL_SEARCH, NEI_AUTOSEARCH, NEI_MANUAL_SEARCH
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
/**
|
||||
* Represent the security systems basic permissions, these are not for anti-griefing, they are part of the mod as a
|
||||
* gameplay feature.
|
||||
*/
|
||||
public enum SecurityPermissions
|
||||
{
|
||||
/**
|
||||
* required to insert items into the network via terminal ( also used for machines based on the owner of the
|
||||
* network, which is determined by its Security Block. )
|
||||
*/
|
||||
INJECT,
|
||||
|
||||
/**
|
||||
* required to extract items from the network via terminal ( also used for machines based on the owner of the
|
||||
* network, which is determined by its Security Block. )
|
||||
*/
|
||||
EXTRACT,
|
||||
|
||||
/**
|
||||
* required to request crafting from the network via terminal.
|
||||
*/
|
||||
CRAFT,
|
||||
|
||||
/**
|
||||
* required to modify automation, and make modifications to the networks physical layout.
|
||||
*/
|
||||
BUILD,
|
||||
|
||||
/**
|
||||
* required to modify the security blocks settings.
|
||||
*/
|
||||
SECURITY;
|
||||
|
||||
final private String unlocalizedName = "gui.appliedenergistics2.security." + name().toLowerCase();
|
||||
|
||||
public String getUnlocalizedName()
|
||||
{
|
||||
return unlocalizedName + ".name";
|
||||
}
|
||||
|
||||
public String getUnlocalizedTip()
|
||||
{
|
||||
return unlocalizedName + ".tip";
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
public enum Settings
|
||||
{
|
||||
LEVEL_EMITTER_MODE(EnumSet.allOf( LevelEmitterMode.class )),
|
||||
|
||||
REDSTONE_EMITTER(EnumSet.of( RedstoneMode.HIGH_SIGNAL, RedstoneMode.LOW_SIGNAL )), REDSTONE_CONTROLLED(EnumSet.allOf( RedstoneMode.class )),
|
||||
|
||||
CONDENSER_OUTPUT(EnumSet.allOf( CondenserOutput.class )),
|
||||
|
||||
POWER_UNITS(EnumSet.allOf( PowerUnits.class )), ACCESS(EnumSet.of( AccessRestriction.READ_WRITE, AccessRestriction.READ, AccessRestriction.WRITE )),
|
||||
|
||||
SORT_DIRECTION(EnumSet.allOf( SortDir.class )), SORT_BY(EnumSet.allOf( SortOrder.class )),
|
||||
|
||||
SEARCH_TOOLTIPS(EnumSet.of( YesNo.YES, YesNo.NO )), VIEW_MODE(EnumSet.allOf( ViewItems.class )), SEARCH_MODE(EnumSet.allOf( SearchBoxMode.class )),
|
||||
|
||||
ACTIONS(EnumSet.allOf( ActionItems.class )), IO_DIRECTION(EnumSet.of( RelativeDirection.LEFT, RelativeDirection.RIGHT )),
|
||||
|
||||
BLOCK(EnumSet.of( YesNo.YES, YesNo.NO )), OPERATION_MODE(EnumSet.allOf( OperationMode.class )),
|
||||
|
||||
FULLNESS_MODE(EnumSet.allOf( FullnessMode.class )), CRAFT_ONLY(EnumSet.of( YesNo.YES, YesNo.NO )),
|
||||
|
||||
FUZZY_MODE(EnumSet.allOf( FuzzyMode.class )), LEVEL_TYPE(EnumSet.allOf( LevelType.class )),
|
||||
|
||||
TERMINAL_STYLE(EnumSet.of( TerminalStyle.TALL, TerminalStyle.SMALL )), COPY_MODE(EnumSet.allOf( CopyMode.class )),
|
||||
|
||||
INTERFACE_TERMINAL(EnumSet.of( YesNo.YES, YesNo.NO )), CRAFT_VIA_REDSTONE(EnumSet.of( YesNo.YES, YesNo.NO )),
|
||||
|
||||
STORAGE_FILTER(EnumSet.allOf( StorageFilter.class ));
|
||||
|
||||
private EnumSet values;
|
||||
|
||||
public EnumSet getPossibleValues()
|
||||
{
|
||||
return values;
|
||||
}
|
||||
|
||||
private Settings(EnumSet set) {
|
||||
if ( set == null || set.isEmpty() )
|
||||
throw new RuntimeException( "Invalid configuration." );
|
||||
values = set;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum SortDir
|
||||
{
|
||||
ASCENDING, DESCENDING
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum SortOrder
|
||||
{
|
||||
NAME, AMOUNT, MOD, INVTWEAKS
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum StorageFilter
|
||||
{
|
||||
|
||||
NONE,
|
||||
|
||||
EXTRACTABLE_ONLY
|
||||
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum TerminalStyle
|
||||
{
|
||||
|
||||
TALL,
|
||||
|
||||
FULL,
|
||||
|
||||
SMALL
|
||||
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum TunnelType
|
||||
{
|
||||
ME, // Network Tunnel
|
||||
BC_POWER, // MJ Tunnel
|
||||
IC2_POWER, // EU Tunnel
|
||||
RF_POWER, // RF Tunnel
|
||||
REDSTONE, // Redstone Tunnel
|
||||
FLUID, // Fluid Tunnel
|
||||
ITEM, // Item Tunnel
|
||||
LIGHT, // Light Tunnel
|
||||
BUNDLED_REDSTONE, // Bundled Redstone Tunnel
|
||||
COMPUTER_MESSAGE // Computer Message Tunnel
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public enum Upgrades
|
||||
{
|
||||
/**
|
||||
* Gold Tier Upgrades.
|
||||
*/
|
||||
CAPACITY(0), REDSTONE(0), CRAFTING(0),
|
||||
|
||||
/**
|
||||
* Diamond Tier Upgrades.
|
||||
*/
|
||||
FUZZY(1), SPEED(1), INVERTER(1);
|
||||
|
||||
public final int myTier;
|
||||
public final HashMap<ItemStack, Integer> supportedMax = new HashMap<ItemStack, Integer>();
|
||||
|
||||
private Upgrades(int tier) {
|
||||
myTier = tier;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return list of Items/Blocks that support this upgrade, and how many it supports.
|
||||
*/
|
||||
public HashMap<ItemStack, Integer> getSupported()
|
||||
{
|
||||
return supportedMax;
|
||||
}
|
||||
|
||||
public void registerItem(ItemStack myItem, int maxSupported)
|
||||
{
|
||||
if ( myItem != null )
|
||||
supportedMax.put( myItem, maxSupported );
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum ViewItems
|
||||
{
|
||||
ALL, STORED, CRAFTABLE
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package appeng.api.config;
|
||||
|
||||
public enum YesNo
|
||||
{
|
||||
YES, NO, UNDECIDED
|
||||
}
|
||||
@@ -1,89 +0,0 @@
|
||||
package appeng.api.definitions;
|
||||
|
||||
import appeng.api.util.AEItemDefinition;
|
||||
|
||||
public class Blocks
|
||||
{
|
||||
|
||||
/*
|
||||
* World Gen
|
||||
*/
|
||||
public AEItemDefinition blockQuartzOre;
|
||||
public AEItemDefinition blockQuartzOreCharged;
|
||||
public AEItemDefinition blockMatrixFrame;
|
||||
|
||||
/*
|
||||
* Decorative
|
||||
*/
|
||||
public AEItemDefinition blockQuartz;
|
||||
public AEItemDefinition blockQuartzPillar;
|
||||
public AEItemDefinition blockQuartzChiseled;
|
||||
public AEItemDefinition blockQuartzGlass;
|
||||
public AEItemDefinition blockQuartzVibrantGlass;
|
||||
public AEItemDefinition blockQuartzTorch;
|
||||
public AEItemDefinition blockFluix;
|
||||
public AEItemDefinition blockSkyStone;
|
||||
public AEItemDefinition blockSkyChest;
|
||||
public AEItemDefinition blockSkyCompass;
|
||||
|
||||
/*
|
||||
* Misc
|
||||
*/
|
||||
public AEItemDefinition blockGrindStone;
|
||||
public AEItemDefinition blockCrankHandle;
|
||||
public AEItemDefinition blockInscriber;
|
||||
public AEItemDefinition blockWireless;
|
||||
public AEItemDefinition blockCharger;
|
||||
public AEItemDefinition blockTinyTNT;
|
||||
public AEItemDefinition blockSecurity;
|
||||
|
||||
/*
|
||||
* Quantum Network Bridge
|
||||
*/
|
||||
public AEItemDefinition blockQuantumRing;
|
||||
public AEItemDefinition blockQuantumLink;
|
||||
|
||||
/*
|
||||
* Spatial IO
|
||||
*/
|
||||
public AEItemDefinition blockSpatialPylon;
|
||||
public AEItemDefinition blockSpatialIOPort;
|
||||
|
||||
/*
|
||||
* Bus / Cables
|
||||
*/
|
||||
public AEItemDefinition blockMultiPart;
|
||||
|
||||
/*
|
||||
* Machines
|
||||
*/
|
||||
public AEItemDefinition blockController;
|
||||
public AEItemDefinition blockDrive;
|
||||
public AEItemDefinition blockChest;
|
||||
public AEItemDefinition blockInterface;
|
||||
public AEItemDefinition blockCellWorkbench;
|
||||
public AEItemDefinition blockIOPort;
|
||||
public AEItemDefinition blockCondenser;
|
||||
public AEItemDefinition blockEnergyAcceptor;
|
||||
public AEItemDefinition blockVibrationChamber;
|
||||
public AEItemDefinition blockQuartzGrowthAccelerator;
|
||||
|
||||
public AEItemDefinition blockEnergyCell;
|
||||
public AEItemDefinition blockEnergyCellDense;
|
||||
public AEItemDefinition blockEnergyCellCreative;
|
||||
|
||||
// rv1
|
||||
public AEItemDefinition blockCraftingUnit;
|
||||
public AEItemDefinition blockCraftingAccelerator;
|
||||
public AEItemDefinition blockCraftingStorage1k;
|
||||
public AEItemDefinition blockCraftingStorage4k;
|
||||
public AEItemDefinition blockCraftingStorage16k;
|
||||
public AEItemDefinition blockCraftingStorage64k;
|
||||
public AEItemDefinition blockCraftingMonitor;
|
||||
|
||||
public AEItemDefinition blockMolecularAssembler;
|
||||
|
||||
public AEItemDefinition blockLightDetector;
|
||||
public AEItemDefinition blockPaint;
|
||||
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
package appeng.api.definitions;
|
||||
|
||||
import appeng.api.util.AEColoredItemDefinition;
|
||||
import appeng.api.util.AEItemDefinition;
|
||||
|
||||
public class Items
|
||||
{
|
||||
|
||||
public AEItemDefinition itemCertusQuartzAxe;
|
||||
public AEItemDefinition itemCertusQuartzHoe;
|
||||
public AEItemDefinition itemCertusQuartzShovel;
|
||||
public AEItemDefinition itemCertusQuartzPick;
|
||||
public AEItemDefinition itemCertusQuartzSword;
|
||||
public AEItemDefinition itemCertusQuartzWrench;
|
||||
public AEItemDefinition itemCertusQuartzKnife;
|
||||
|
||||
public AEItemDefinition itemNetherQuartzAxe;
|
||||
public AEItemDefinition itemNetherQuartzHoe;
|
||||
public AEItemDefinition itemNetherQuartzShovel;
|
||||
public AEItemDefinition itemNetherQuartzPick;
|
||||
public AEItemDefinition itemNetherQuartzSword;
|
||||
public AEItemDefinition itemNetherQuartzWrench;
|
||||
public AEItemDefinition itemNetherQuartzKnife;
|
||||
|
||||
public AEItemDefinition itemEntropyManipulator;
|
||||
public AEItemDefinition itemWirelessTerminal;
|
||||
public AEItemDefinition itemBiometricCard;
|
||||
public AEItemDefinition itemChargedStaff;
|
||||
public AEItemDefinition itemMassCannon;
|
||||
public AEItemDefinition itemMemoryCard;
|
||||
public AEItemDefinition itemNetworkTool;
|
||||
public AEItemDefinition itemPortableCell;
|
||||
|
||||
public AEItemDefinition itemCellCreative;
|
||||
public AEItemDefinition itemViewCell;
|
||||
|
||||
public AEItemDefinition itemCell1k;
|
||||
public AEItemDefinition itemCell4k;
|
||||
public AEItemDefinition itemCell16k;
|
||||
public AEItemDefinition itemCell64k;
|
||||
|
||||
public AEItemDefinition itemSpatialCell2;
|
||||
public AEItemDefinition itemSpatialCell16;
|
||||
public AEItemDefinition itemSpatialCell128;
|
||||
|
||||
public AEItemDefinition itemFacade;
|
||||
public AEItemDefinition itemCrystalSeed;
|
||||
|
||||
// rv1
|
||||
public AEItemDefinition itemEncodedPattern;
|
||||
public AEItemDefinition itemColorApplicator;
|
||||
public AEColoredItemDefinition itemPaintBall;
|
||||
public AEColoredItemDefinition itemLumenPaintBall;
|
||||
}
|
||||
@@ -1,80 +0,0 @@
|
||||
package appeng.api.definitions;
|
||||
|
||||
import appeng.api.util.AEItemDefinition;
|
||||
|
||||
public class Materials
|
||||
{
|
||||
|
||||
public AEItemDefinition materialCell2SpatialPart;
|
||||
public AEItemDefinition materialCell16SpatialPart;
|
||||
public AEItemDefinition materialCell128SpatialPart;
|
||||
|
||||
public AEItemDefinition materialSilicon;
|
||||
public AEItemDefinition materialSkyDust;
|
||||
|
||||
public AEItemDefinition materialCalcProcessorPress;
|
||||
public AEItemDefinition materialEngProcessorPress;
|
||||
public AEItemDefinition materialLogicProcessorPress;
|
||||
|
||||
public AEItemDefinition materialCalcProcessorPrint;
|
||||
public AEItemDefinition materialEngProcessorPrint;
|
||||
public AEItemDefinition materialLogicProcessorPrint;
|
||||
|
||||
public AEItemDefinition materialSiliconPress;
|
||||
public AEItemDefinition materialSiliconPrint;
|
||||
|
||||
public AEItemDefinition materialNamePress;
|
||||
|
||||
public AEItemDefinition materialLogicProcessor;
|
||||
public AEItemDefinition materialCalcProcessor;
|
||||
public AEItemDefinition materialEngProcessor;
|
||||
|
||||
public AEItemDefinition materialBasicCard;
|
||||
public AEItemDefinition materialAdvCard;
|
||||
|
||||
public AEItemDefinition materialPurifiedCertusQuartzCrystal;
|
||||
public AEItemDefinition materialPurifiedNetherQuartzCrystal;
|
||||
public AEItemDefinition materialPurifiedFluixCrystal;
|
||||
|
||||
public AEItemDefinition materialCell1kPart;
|
||||
public AEItemDefinition materialCell4kPart;
|
||||
public AEItemDefinition materialCell16kPart;
|
||||
public AEItemDefinition materialCell64kPart;
|
||||
public AEItemDefinition materialEmptyStorageCell;
|
||||
|
||||
public AEItemDefinition materialCardRedstone;
|
||||
public AEItemDefinition materialCardSpeed;
|
||||
public AEItemDefinition materialCardCapacity;
|
||||
public AEItemDefinition materialCardFuzzy;
|
||||
public AEItemDefinition materialCardInverter;
|
||||
public AEItemDefinition materialCardCrafting;
|
||||
|
||||
public AEItemDefinition materialEnderDust;
|
||||
public AEItemDefinition materialFlour;
|
||||
public AEItemDefinition materialGoldDust;
|
||||
public AEItemDefinition materialIronDust;
|
||||
public AEItemDefinition materialFluixDust;
|
||||
public AEItemDefinition materialCertusQuartzDust;
|
||||
public AEItemDefinition materialNetherQuartzDust;
|
||||
|
||||
public AEItemDefinition materialMatterBall;
|
||||
public AEItemDefinition materialIronNugget;
|
||||
|
||||
public AEItemDefinition materialCertusQuartzCrystal;
|
||||
public AEItemDefinition materialCertusQuartzCrystalCharged;
|
||||
public AEItemDefinition materialFluixCrystal;
|
||||
public AEItemDefinition materialFluixPearl;
|
||||
|
||||
public AEItemDefinition materialWoodenGear;
|
||||
|
||||
public AEItemDefinition materialWireless;
|
||||
public AEItemDefinition materialWirelessBooster;
|
||||
|
||||
public AEItemDefinition materialAnnihilationCore;
|
||||
public AEItemDefinition materialFormationCore;
|
||||
|
||||
public AEItemDefinition materialSingularity;
|
||||
public AEItemDefinition materialQESingularity;
|
||||
public AEItemDefinition materialBlankPattern;
|
||||
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
package appeng.api.definitions;
|
||||
|
||||
import appeng.api.util.AEColoredItemDefinition;
|
||||
import appeng.api.util.AEItemDefinition;
|
||||
|
||||
public class Parts
|
||||
{
|
||||
|
||||
public AEColoredItemDefinition partCableSmart;
|
||||
public AEColoredItemDefinition partCableCovered;
|
||||
public AEColoredItemDefinition partCableGlass;
|
||||
public AEColoredItemDefinition partCableDense;
|
||||
|
||||
public AEColoredItemDefinition partLumenCableSmart;
|
||||
public AEColoredItemDefinition partLumenCableCovered;
|
||||
public AEColoredItemDefinition partLumenCableGlass;
|
||||
public AEColoredItemDefinition partLumenCableDense;
|
||||
|
||||
public AEItemDefinition partQuartzFiber;
|
||||
public AEItemDefinition partToggleBus;
|
||||
public AEItemDefinition partInvertedToggleBus;
|
||||
|
||||
public AEItemDefinition partStorageBus;
|
||||
public AEItemDefinition partImportBus;
|
||||
public AEItemDefinition partExportBus;
|
||||
public AEItemDefinition partInterface;
|
||||
|
||||
public AEItemDefinition partLevelEmitter;
|
||||
|
||||
public AEItemDefinition partAnnihilationPlane;
|
||||
public AEItemDefinition partFormationPlane;
|
||||
|
||||
public AEItemDefinition partP2PTunnelME;
|
||||
public AEItemDefinition partP2PTunnelRedstone;
|
||||
public AEItemDefinition partP2PTunnelItems;
|
||||
public AEItemDefinition partP2PTunnelLiquids;
|
||||
public AEItemDefinition partP2PTunnelMJ;
|
||||
public AEItemDefinition partP2PTunnelEU;
|
||||
public AEItemDefinition partP2PTunnelRF;
|
||||
public AEItemDefinition partP2PTunnelLight;
|
||||
|
||||
public AEItemDefinition partCableAnchor;
|
||||
public AEItemDefinition partMonitor;
|
||||
public AEItemDefinition partSemiDarkMonitor;
|
||||
public AEItemDefinition partDarkMonitor;
|
||||
|
||||
public AEItemDefinition partInterfaceTerminal;
|
||||
public AEItemDefinition partPatternTerminal;
|
||||
public AEItemDefinition partCraftingTerminal;
|
||||
public AEItemDefinition partTerminal;
|
||||
public AEItemDefinition partStorageMonitor;
|
||||
public AEItemDefinition partConversionMonitor;
|
||||
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
package appeng.api.events;
|
||||
|
||||
import appeng.api.features.ILocatable;
|
||||
import cpw.mods.fml.common.eventhandler.Event;
|
||||
|
||||
/**
|
||||
* Input Event:
|
||||
*
|
||||
* Used to Notify the Location Registry of objects, and their availability.
|
||||
*/
|
||||
public class LocatableEventAnnounce extends Event
|
||||
{
|
||||
|
||||
public enum LocatableEvent
|
||||
{
|
||||
Register, // Adds the locatable to the registry
|
||||
Unregister // Removes the locatable from the registry
|
||||
}
|
||||
|
||||
final public ILocatable target;
|
||||
final public LocatableEvent change;
|
||||
|
||||
public LocatableEventAnnounce(ILocatable o, LocatableEvent ev) {
|
||||
target = o;
|
||||
change = ev;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
package appeng.api.exceptions;
|
||||
|
||||
public class AppEngException extends Exception
|
||||
{
|
||||
|
||||
private static final long serialVersionUID = -9051434206368465494L;
|
||||
|
||||
public AppEngException(String t) {
|
||||
super( t );
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
package appeng.api.exceptions;
|
||||
|
||||
public class FailedConnection extends Exception
|
||||
{
|
||||
|
||||
private static final long serialVersionUID = -2544208090248293753L;
|
||||
|
||||
public FailedConnection() {
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
package appeng.api.exceptions;
|
||||
|
||||
public class MissingIngredientError extends Exception {
|
||||
|
||||
private static final long serialVersionUID = -998858343831371697L;
|
||||
|
||||
public MissingIngredientError(String n) {
|
||||
super( n );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package appeng.api.exceptions;
|
||||
|
||||
public class ModNotInstalled extends Exception
|
||||
{
|
||||
|
||||
private static final long serialVersionUID = -9052435206368425494L;
|
||||
|
||||
public ModNotInstalled(String t) {
|
||||
super( t );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package appeng.api.exceptions;
|
||||
|
||||
public class RecipeError extends Exception
|
||||
{
|
||||
|
||||
private static final long serialVersionUID = -6602870588617670262L;
|
||||
|
||||
public RecipeError(String n) {
|
||||
super( n );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package appeng.api.exceptions;
|
||||
|
||||
public class RegistrationError extends Exception
|
||||
{
|
||||
|
||||
private static final long serialVersionUID = -6602870588617670263L;
|
||||
|
||||
public RegistrationError(String n) {
|
||||
super( n );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,96 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* Registration Records for {@link IGrinderRegistry}
|
||||
*/
|
||||
public interface IGrinderEntry
|
||||
{
|
||||
|
||||
/**
|
||||
* the current input
|
||||
*
|
||||
* @return input that the grinder will accept.
|
||||
*/
|
||||
public ItemStack getInput();
|
||||
|
||||
/**
|
||||
* lets you change the grinder recipe by changing its input.
|
||||
*
|
||||
* @param input input item
|
||||
*/
|
||||
public void setInput(ItemStack input);
|
||||
|
||||
/**
|
||||
* gets the current output
|
||||
*
|
||||
* @return output that the grinder will produce
|
||||
*/
|
||||
public ItemStack getOutput();
|
||||
|
||||
/**
|
||||
* gets the current output
|
||||
*
|
||||
* @return output that the grinder will produce
|
||||
*/
|
||||
public ItemStack getOptionalOutput();
|
||||
|
||||
/**
|
||||
* gets the current output
|
||||
*
|
||||
* @return output that the grinder will produce
|
||||
*/
|
||||
public ItemStack getSecondOptionalOutput();
|
||||
|
||||
/**
|
||||
* allows you to change the output.
|
||||
*
|
||||
* @param output output item
|
||||
*/
|
||||
public void setOutput(ItemStack output);
|
||||
|
||||
/**
|
||||
* stack, and 0.0-1.0 chance that it will be generated.
|
||||
*
|
||||
* @param output output item
|
||||
* @param chance generation chance
|
||||
*/
|
||||
public void setOptionalOutput(ItemStack output, float chance);
|
||||
|
||||
/**
|
||||
* 0.0 - 1.0 the chance that the optional output will be generated.
|
||||
*
|
||||
* @return chance of optional output
|
||||
*/
|
||||
public float getOptionalChance();
|
||||
|
||||
/**
|
||||
* stack, and 0.0-1.0 chance that it will be generated.
|
||||
*
|
||||
* @param output second optional output item
|
||||
* @param chance second optional output chance
|
||||
*/
|
||||
public void setSecondOptionalOutput(ItemStack output, float chance);
|
||||
|
||||
/**
|
||||
* 0.0 - 1.0 the chance that the optional output will be generated.
|
||||
*
|
||||
* @return second optional output chance
|
||||
*/
|
||||
public float getSecondOptionalChance();
|
||||
|
||||
/**
|
||||
* Energy cost, in turns.
|
||||
*
|
||||
* @return number of turns it takes to produce the output from the input.
|
||||
*/
|
||||
public int getEnergyCost();
|
||||
|
||||
/**
|
||||
* Allows you to adjust the number of turns
|
||||
*
|
||||
* @param c number of turns to produce output.
|
||||
*/
|
||||
public void setEnergyCost(int c);
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Lets you manipulate Grinder Recipes, by adding or editing existing ones.
|
||||
*/
|
||||
public interface IGrinderRegistry
|
||||
{
|
||||
|
||||
/**
|
||||
* Current list of registered recipes, you can modify this if you want too.
|
||||
*
|
||||
* @return currentlyRegisteredRecipes
|
||||
*/
|
||||
public List<IGrinderEntry> getRecipes();
|
||||
|
||||
/**
|
||||
* add a new recipe the easy way, in → out, how many turns., duplicates will not be added.
|
||||
*
|
||||
* @param in input
|
||||
* @param out output
|
||||
* @param turns amount of turns to turn the input into the output
|
||||
*/
|
||||
public void addRecipe(ItemStack in, ItemStack out, int turns);
|
||||
|
||||
/**
|
||||
* add a new recipe with optional outputs, duplicates will not be added.
|
||||
*
|
||||
* @param in input
|
||||
* @param out output
|
||||
* @param optional optional output
|
||||
* @param chance chance to get the optional output within 0.0 - 1.0
|
||||
* @param turns amount of turns to turn the input into the outputs
|
||||
*/
|
||||
void addRecipe(ItemStack in, ItemStack out, ItemStack optional, float chance, int turns);
|
||||
|
||||
/**
|
||||
* add a new recipe with optional outputs, duplicates will not be added.
|
||||
*
|
||||
* @param in input
|
||||
* @param out output
|
||||
* @param optional optional output
|
||||
* @param chance chance to get the optional output within 0.0 - 1.0
|
||||
* @param optional2 second optional output
|
||||
* @param chance2 chance to get the second optional output within 0.0 - 1.0
|
||||
* @param turns amount of turns to turn the input into the outputs
|
||||
*/
|
||||
void addRecipe(ItemStack in, ItemStack out, ItemStack optional, float chance, ItemStack optional2, float chance2, int turns);
|
||||
|
||||
/**
|
||||
* Searches for a recipe for a given input, and returns it.
|
||||
*
|
||||
* @param input input
|
||||
* @return identified recipe or null
|
||||
*/
|
||||
public IGrinderEntry getRecipeForInput(ItemStack input);
|
||||
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
public interface IItemComparison
|
||||
{
|
||||
|
||||
public boolean sameAsPrecise(IItemComparison comp);
|
||||
|
||||
public boolean sameAsFuzzy(IItemComparison comp);
|
||||
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* Provider for special comparisons. when an item is encountered AE Will request
|
||||
* if the comparison function handles the item, by trying to request a
|
||||
* IItemComparison class.
|
||||
*/
|
||||
public interface IItemComparisonProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* should return a new IItemComparison, or return null if it doesn't handle
|
||||
* the supplied item.
|
||||
*
|
||||
* @param is item
|
||||
* @return IItemComparison, or null
|
||||
*/
|
||||
IItemComparison getComparison(ItemStack is);
|
||||
|
||||
/**
|
||||
* Simple test for support ( AE generally skips this and calls the above function. )
|
||||
*
|
||||
* @param stack item
|
||||
* @return true, if getComparison will return a valid IItemComparison Object
|
||||
*/
|
||||
public boolean canHandle(ItemStack stack);
|
||||
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
import appeng.api.events.LocatableEventAnnounce;
|
||||
|
||||
/**
|
||||
* A registration record for the {@link ILocatableRegistry} use the {@link LocatableEventAnnounce} event on the Forge
|
||||
* Event bus to update the registry.
|
||||
*/
|
||||
public interface ILocatable
|
||||
{
|
||||
|
||||
/**
|
||||
* @return the serial for a locatable object
|
||||
*/
|
||||
long getLocatableSerial();
|
||||
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
/**
|
||||
* A Registry for locatable items, works based on serial numbers.
|
||||
*/
|
||||
public interface ILocatableRegistry
|
||||
{
|
||||
|
||||
/**
|
||||
* Attempts to find the object with the serial specified, if it can it
|
||||
* returns the object.
|
||||
*
|
||||
* @param serial serial
|
||||
* @return requestedObject, or null
|
||||
*/
|
||||
public abstract Object findLocatableBySerial(long serial);
|
||||
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface IMatterCannonAmmoRegistry
|
||||
{
|
||||
|
||||
/**
|
||||
* register a new ammo, generally speaking this is based off of atomic weight to make it easier to guess at
|
||||
*
|
||||
* @param ammo new ammo
|
||||
* @param weight atomic weight
|
||||
*/
|
||||
void registerAmmo(ItemStack ammo, double weight);
|
||||
|
||||
/**
|
||||
* get the penetration value for a particular ammo, 0 indicates a non-ammo.
|
||||
*
|
||||
* @param is ammo
|
||||
* @return 0 or a valid penetration value.
|
||||
*/
|
||||
float getPenetration(ItemStack is);
|
||||
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface INetworkEncodable {
|
||||
|
||||
/**
|
||||
* Used to get the current key from the item.
|
||||
*
|
||||
* @param item item
|
||||
* @return string key of item
|
||||
*/
|
||||
String getEncryptionKey(ItemStack item);
|
||||
|
||||
/**
|
||||
* Encode the wireless frequency via the Controller.
|
||||
*
|
||||
* @param item
|
||||
* the wireless terminal.
|
||||
* @param encKey
|
||||
* the wireless encryption key.
|
||||
* @param name
|
||||
* null for now.
|
||||
*/
|
||||
void setEncryptionKey(ItemStack item, String encKey, String name);
|
||||
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
import appeng.api.config.TunnelType;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* A Registry for how p2p Tunnels are attuned
|
||||
*/
|
||||
public interface IP2PTunnelRegistry
|
||||
{
|
||||
|
||||
/**
|
||||
* Allows third parties to register items from their mod as potential
|
||||
* attunements for AE's P2P Tunnels
|
||||
*
|
||||
* @param trigger
|
||||
* - the item which triggers attunement
|
||||
* @param type
|
||||
* - the type of tunnel
|
||||
*/
|
||||
public abstract void addNewAttunement(ItemStack trigger, TunnelType type);
|
||||
|
||||
/**
|
||||
* returns null if no attunement can be found.
|
||||
*
|
||||
* @param trigger attunement trigger
|
||||
* @return null if no attunement can be found or attunement
|
||||
*/
|
||||
TunnelType getTunnelTypeByItem(ItemStack trigger);
|
||||
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
import com.mojang.authlib.GameProfile;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
||||
/**
|
||||
* Maintains a save specific list of userids and username combinations this greatly simplifies storage internally and
|
||||
* gives a common place to look up and get IDs for the security framework.
|
||||
*/
|
||||
public interface IPlayerRegistry
|
||||
{
|
||||
|
||||
/**
|
||||
* @param gameProfile user game profile
|
||||
* @return user id of a username.
|
||||
*/
|
||||
int getID(GameProfile gameProfile);
|
||||
|
||||
/**
|
||||
* @param player player
|
||||
* @return user id of a player entity.
|
||||
*/
|
||||
int getID(EntityPlayer player);
|
||||
|
||||
/**
|
||||
* @param playerID to be found player id
|
||||
* @return PlayerEntity, or null if the player could not be found.
|
||||
*/
|
||||
EntityPlayer findPlayer(int playerID);
|
||||
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
import appeng.api.recipes.ICraftHandler;
|
||||
import appeng.api.recipes.IRecipeHandler;
|
||||
import appeng.api.recipes.ISubItemResolver;
|
||||
|
||||
public interface IRecipeHandlerRegistry
|
||||
{
|
||||
|
||||
/**
|
||||
* Add a new Recipe Handler to the parser.
|
||||
*
|
||||
* MUST BE CALLED IN PRE-INIT
|
||||
*
|
||||
* @param name name of crafthandler
|
||||
* @param handler class of crafthandler
|
||||
*/
|
||||
void addNewCraftHandler(String name, Class<? extends ICraftHandler> handler);
|
||||
|
||||
/**
|
||||
* Add a new resolver to the parser.
|
||||
*
|
||||
* MUST BE CALLED IN PRE-INIT
|
||||
*
|
||||
* @param sir sub item resolver
|
||||
*/
|
||||
void addNewSubItemResolver(ISubItemResolver sir);
|
||||
|
||||
/**
|
||||
* @param name name of crafting handler
|
||||
* @return A recipe handler by name, returns null on failure.
|
||||
*/
|
||||
ICraftHandler getCraftHandlerFor(String name);
|
||||
|
||||
/**
|
||||
* @return a new recipe handler, which can be used to parse, and read recipe files.
|
||||
*/
|
||||
public IRecipeHandler createNewRecipehandler();
|
||||
|
||||
/**
|
||||
* resolve sub items by name.
|
||||
*
|
||||
* @param nameSpace namespace of item
|
||||
* @param itemName full name of item
|
||||
* @return ResolverResult or ResolverResultSet
|
||||
*/
|
||||
Object resolveItem(String nameSpace, String itemName);
|
||||
|
||||
}
|
||||
@@ -1,76 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
import appeng.api.movable.IMovableRegistry;
|
||||
import appeng.api.networking.IGridCacheRegistry;
|
||||
import appeng.api.storage.ICellRegistry;
|
||||
import appeng.api.storage.IExternalStorageRegistry;
|
||||
|
||||
public interface IRegistryContainer
|
||||
{
|
||||
|
||||
/**
|
||||
* Use the movable registry to white list your tiles.
|
||||
*/
|
||||
IMovableRegistry movable();
|
||||
|
||||
/**
|
||||
* Add new Grid Caches for use during run time, only use during loading phase.
|
||||
*/
|
||||
IGridCacheRegistry gridCache();
|
||||
|
||||
/**
|
||||
* Add additional storage bus handlers to improve interplay with mod blocks that contains special inventories that
|
||||
* function unlike vanilla chests. AE uses this internally for barrels, DSU's, quantum chests, AE Networks and more.
|
||||
*/
|
||||
IExternalStorageRegistry externalStorage();
|
||||
|
||||
/**
|
||||
* Add additional special comparison functionality, AE Uses this internally for Bees.
|
||||
*/
|
||||
ISpecialComparisonRegistry specialComparison();
|
||||
|
||||
/**
|
||||
* Lets you register your items as wireless terminals
|
||||
*/
|
||||
IWirelessTermRegistry wireless();
|
||||
|
||||
/**
|
||||
* Allows you to register new cell types, these will function in drives
|
||||
*/
|
||||
ICellRegistry cell();
|
||||
|
||||
/**
|
||||
* Manage grinder recipes via API
|
||||
*/
|
||||
IGrinderRegistry grinder();
|
||||
|
||||
/**
|
||||
* get access to the locatable registry
|
||||
*/
|
||||
ILocatableRegistry locatable();
|
||||
|
||||
/**
|
||||
* get access to the p2p tunnel registry.
|
||||
*/
|
||||
IP2PTunnelRegistry p2pTunnel();
|
||||
|
||||
/**
|
||||
* get access to the ammo registry.
|
||||
*/
|
||||
IMatterCannonAmmoRegistry matterCannon();
|
||||
|
||||
/**
|
||||
* get access to the player registry
|
||||
*/
|
||||
IPlayerRegistry players();
|
||||
|
||||
/**
|
||||
* get access to the ae2 recipe api
|
||||
*/
|
||||
IRecipeHandlerRegistry recipes();
|
||||
|
||||
/**
|
||||
* get access to the world-gen api.
|
||||
*/
|
||||
IWorldGen worldgen();
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* A Registry of any special comparison handlers for AE To use.
|
||||
*
|
||||
*/
|
||||
public interface ISpecialComparisonRegistry
|
||||
{
|
||||
|
||||
/**
|
||||
* return TheHandler or null.
|
||||
*
|
||||
* @param stack item
|
||||
* @return a handler it found for a specific item
|
||||
*/
|
||||
IItemComparison getSpecialComparison(ItemStack stack);
|
||||
|
||||
/**
|
||||
* Register a new special comparison function with AE.
|
||||
*
|
||||
* @param prov comparison provider
|
||||
*/
|
||||
public void addComparisonProvider(IItemComparisonProvider prov);
|
||||
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
import appeng.api.util.IConfigManager;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* A handler for a wireless terminal.
|
||||
*/
|
||||
public interface IWirelessTermHandler extends INetworkEncodable
|
||||
{
|
||||
|
||||
/**
|
||||
* @param is wireless terminal
|
||||
* @return true, if usePower, hasPower, etc... can be called for the provided item
|
||||
*/
|
||||
boolean canHandle(ItemStack is);
|
||||
|
||||
/**
|
||||
* use an amount of power, in AE units
|
||||
*
|
||||
* @param amount
|
||||
* is in AE units ( 5 per MJ ), if you return false, the item should be dead and return false for
|
||||
* hasPower
|
||||
* @param is wireless terminal
|
||||
* @return true if wireless terminal uses power
|
||||
*/
|
||||
boolean usePower(EntityPlayer player, double amount, ItemStack is);
|
||||
|
||||
/**
|
||||
* gets the power status of the item.
|
||||
*
|
||||
* @param is wireless terminal
|
||||
* @return returns true if there is any power left.
|
||||
*/
|
||||
boolean hasPower(EntityPlayer player, double amount, ItemStack is);
|
||||
|
||||
/**
|
||||
* Return the config manager for the wireless terminal.
|
||||
*
|
||||
* @param is wireless terminal
|
||||
* @return config manager of wireless terminal
|
||||
*/
|
||||
IConfigManager getConfigManager(ItemStack is);
|
||||
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
/**
|
||||
* Registration record for a Custom Cell handler.
|
||||
*/
|
||||
public interface IWirelessTermRegistry
|
||||
{
|
||||
|
||||
/**
|
||||
* add this handler to the list of other wireless handler.
|
||||
*
|
||||
* @param handler wireless handler
|
||||
*/
|
||||
void registerWirelessHandler(IWirelessTermHandler handler);
|
||||
|
||||
/**
|
||||
* @param is item which might have a handler
|
||||
* @return true if there is a handler for this item
|
||||
*/
|
||||
boolean isWirelessTerminal(ItemStack is);
|
||||
|
||||
/**
|
||||
* @param is item with handler
|
||||
* @return a register handler for the item in question, or null if there
|
||||
* isn't one
|
||||
*/
|
||||
IWirelessTermHandler getWirelessTerminalHandler(ItemStack is);
|
||||
|
||||
/**
|
||||
* opens the wireless terminal gui, the wireless terminal item, must be in
|
||||
* the active slot on the tool bar.
|
||||
*/
|
||||
void openWirelessTerminalGui(ItemStack item, World w, EntityPlayer player);
|
||||
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
package appeng.api.features;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.WorldProvider;
|
||||
|
||||
public interface IWorldGen
|
||||
{
|
||||
|
||||
public enum WorldGenType
|
||||
{
|
||||
CertusQuartz, ChargedCertusQuartz, Meteorites
|
||||
}
|
||||
|
||||
public void disableWorldGenForProviderID(WorldGenType type, Class<? extends WorldProvider> provider);
|
||||
|
||||
public void enableWorldGenForDimension(WorldGenType type, int dimID);
|
||||
|
||||
public void disableWorldGenForDimension(WorldGenType type, int dimID);
|
||||
|
||||
boolean isWorldGenEnabled(WorldGenType type, World w);
|
||||
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
package appeng.api.implementations;
|
||||
|
||||
import appeng.api.networking.crafting.ICraftingPatternDetails;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
/**
|
||||
* Implemented on {@link Item}
|
||||
*/
|
||||
public interface ICraftingPatternItem
|
||||
{
|
||||
|
||||
/**
|
||||
* Access Details about a pattern
|
||||
*
|
||||
* @param is pattern
|
||||
* @param w crafting world
|
||||
* @return details of pattern
|
||||
*/
|
||||
ICraftingPatternDetails getPatternForItem(ItemStack is, World w);
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package appeng.api.implementations;
|
||||
|
||||
/**
|
||||
* This is intended for use on the client side to provide details to WAILA.
|
||||
*/
|
||||
public interface IPowerChannelState
|
||||
{
|
||||
|
||||
/**
|
||||
* @return true if the part/tile is powered.
|
||||
*/
|
||||
boolean isPowered();
|
||||
|
||||
/**
|
||||
* @return true if the part/tile isActive
|
||||
*/
|
||||
boolean isActive();
|
||||
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
package appeng.api.implementations;
|
||||
|
||||
import appeng.api.config.Upgrades;
|
||||
import appeng.api.implementations.tiles.ISegmentedInventory;
|
||||
import appeng.api.util.IConfigurableObject;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public interface IUpgradeableHost extends IConfigurableObject, ISegmentedInventory
|
||||
{
|
||||
|
||||
/**
|
||||
* determine how many of an upgrade are installed.
|
||||
*/
|
||||
int getInstalledUpgrades(Upgrades u);
|
||||
|
||||
/**
|
||||
* the tile...
|
||||
*
|
||||
* @return tile entity
|
||||
*/
|
||||
TileEntity getTile();
|
||||
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
package appeng.api.implementations;
|
||||
|
||||
/**
|
||||
* Defines the result of performing a transition from the world into a storage
|
||||
* cell, if its possible, and what the energy usage is.
|
||||
*/
|
||||
public class TransitionResult
|
||||
{
|
||||
public final boolean success;
|
||||
public final double energyUsage;
|
||||
|
||||
public TransitionResult(boolean _success, double power) {
|
||||
success = _success;
|
||||
energyUsage = power;
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package appeng.api.implementations.guiobjects;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
/**
|
||||
* Implemented on Item objects, to return objects used to manage, and interact
|
||||
* with the contents.
|
||||
*/
|
||||
public interface IGuiItem
|
||||
{
|
||||
|
||||
IGuiItemObject getGuiObject(ItemStack is, World world, int x, int y, int z);
|
||||
|
||||
}
|
||||
Loaded 100 of 804 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user