Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 1 addition & 69 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,72 +61,4 @@ String gtnhDev(String name, String classifier = "dev") {
return elytraModpackVersion.gtnh(name, classifier)
}

// 移动到了下方 给不会的人查看
/*
* Add your dependencies here. Supported configurations:
* - api("group:name:version:classifier"): if you use the types from this dependency in the public API of this mod
* Available at runtime and compiletime for mods depending on this mod
* - implementation("g:n:v:c"): if you need this for internal implementation details of the mod, but none of it is visible via the public API
* Available at runtime but not compiletime for mods depending on this mod
* - compileOnly("g:n:v:c"): if the mod you're building doesn't need this dependency during runtime at all, e.g. for optional mods
* Not available at all for mods depending on this mod, only visible at compiletime for this mod
* - compileOnlyApi("g:n:v:c"): like compileOnly, but also visible at compiletime for mods depending on this mod
* Available at compiletime but not runtime for mods depending on this mod
* - runtimeOnlyNonPublishable("g:n:v:c"): if you want to include a mod in this mod's runClient/runServer runs, but not publish it as a dependency
* Not available at all for mods depending on this mod, only visible at runtime for this mod
* - devOnlyNonPublishable("g:n:v:c"): a combination of runtimeOnlyNonPublishable and compileOnly for dependencies present at both compiletime and runtime,
* but not published as Maven dependencies - useful for RFG-deobfuscated dependencies or local testing
* - runtimeOnly("g:n:v:c"): if you don't need this at compile time, but want it to be present at runtime
* Available at runtime for mods depending on this mod
* - annotationProcessor("g:n:v:c"): mostly for java compiler plugins, if you know you need this, use it, otherwise don't worry
* - testCONFIG("g:n:v:c") - replace CONFIG by one of the above (except api), same as above but for the test sources instead of main
*
* - shadowImplementation("g:n:v:c"): effectively the same as API, but the dependency is included in your jar under a renamed package name
* Requires you to enable usesShadowedDependencies in gradle.properties
*
* - compile("g:n:v:c"): deprecated, replace with "api" (works like the old "compile") or "implementation" (can be more efficient)
*
* You can exclude transitive dependencies (dependencies of the chosen dependency) by appending { transitive = false } if needed,
* but use this sparingly as it can break using your mod as another mod's dependency if you're not careful.
*
* To depend on obfuscated jars you can use `devOnlyNonPublishable(rfg.deobf("dep:spec:1.2.3"))` to fetch an obfuscated jar from maven,
* or `devOnlyNonPublishable(rfg.deobf(project.files("libs/my-mod-jar.jar")))` to use a file.
*
* Gradle names for some of the configuration can be misleading, compileOnlyApi and runtimeOnly both get published as dependencies in Maven, but compileOnly does not.
* The buildscript adds runtimeOnlyNonPublishable to also have a runtime dependency that's not published.
*
* For more details, see https://docs.gradle.org/8.0.1/userguide/java_library_plugin.html#sec:java_library_configurations_graph
*/

/// 未使用插件前声明的依赖
/*implementation('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.449:dev')
implementation("com.github.GTNewHorizons:Mobs-Info:0.5.3-GTNH:dev") { transitive = false }
implementation("com.github.GTNewHorizons:Infernal-Mobs:1.10.2-GTNH:dev")
implementation("com.github.GTNewHorizons:Galaxy-Space-GTNH:1.1.116-GTNH:dev")
implementation('com.github.GTNewHorizons:SGCraft:1.4.5-GTNH:dev')
implementation('com.github.GTNewHorizons:twilightforest:2.7.8:dev')
implementation('com.github.GTNewHorizons:amunra:0.8.2:dev')
implementation('com.github.GTNewHorizons:Angelica:1.0.0-beta53:dev')
implementation('com.github.GTNewHorizons:AE2FluidCraft-Rework:1.4.106-gtnh:dev')
implementation('com.github.GTNewHorizons:ae2stuff:0.9.6-GTNH:dev')
implementation('com.github.GTNewHorizons:Avaritia:1.70:dev')
implementation('com.github.GTNewHorizons:Avaritiaddons:1.9.0-GTNH:dev')
implementation('com.github.GTNewHorizons:neiaddons:1.16.0:dev')
implementation('com.github.GTNewHorizons:NotEnoughCharacters:1.7.10-1.5.4-GTNH:dev')
implementation('com.github.GTNewHorizons:Binnie:2.5.16:dev')
implementation('com.github.GTNewHorizons:BloodMagic:1.7.48:dev')
implementation('com.github.GTNewHorizons:Botania:1.12.21-GTNH:dev')
implementation('com.github.GTNewHorizons:Draconic-Evolution:1.4.24-GTNH:dev')
implementation('com.github.GTNewHorizons:EnderIO:2.9.22:dev')
implementation('com.github.GTNewHorizons:Eternal-Singularity:1.2.1:dev')
implementation('com.github.GTNewHorizons:ForestryMC:4.10.16:dev')
implementation('com.github.GTNewHorizons:MagicBees:2.9.4-GTNH:dev')
implementation('com.github.GTNewHorizons:NotEnoughItems:2.7.69-GTNH:dev')
implementation('com.github.GTNewHorizons:OpenComputers:1.11.16-GTNH:dev')
implementation('com.github.GTNewHorizons:supersolarpanels:1.1.4:dev')
implementation('com.github.GTNewHorizons:ThaumicEnergistics:1.7.11-GTNH:dev')
implementation('com.github.GTNewHorizons:Universal-Singularities:8.10.0:dev')
implementation('com.github.GTNewHorizons:WitcheryExtras:1.3.1:dev')
runtimeOnlyNonPublishable('com.github.GTNewHorizons:BetterP2P:1.3.1:dev')
runtimeOnlyNonPublishable('com.github.GTNewHorizons:Chisel:2.16.8-GTNH:dev')
runtimeOnlyNonPublishable('com.github.GTNewHorizons:StructureLib:1.4.15:dev')*/
//i guess no one will read the example XD
27 changes: 10 additions & 17 deletions src/main/java/com/newmaa/othtech/machine/OTEBBPlasmaForge.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,27 +81,18 @@

public class OTEBBPlasmaForge extends OTHMultiMachineBase<OTEBBPlasmaForge> implements ISurvivalConstructable {

@Override
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
super.onPostTick(aBaseMetaTileEntity, aTick);
if (aTick % 20 == 0) {
// if check structure true then continue
if (checkMachine(aBaseMetaTileEntity, null)) {
ItemStack aGuiStack = this.getControllerSlot();
if (aGuiStack != null) {
if (GTUtility
.areStacksEqual(aGuiStack, GTModHandler.getModItem("gregtech", "gt.metaitem.03", 1, 32758))) {
this.MLevel = 2;
}
} else {
this.MLevel = 1;
}
// 老大哥锻炉,老大哥的恩情还不完
protected void updatetier() {
ItemStack aGuiStack = this.getControllerSlot();
if (aGuiStack != null) {
if (GTUtility.areStacksEqual(aGuiStack, GTModHandler.getModItem("gregtech", "gt.metaitem.03", 1, 32758))) {
this.MLevel = 2;
}
} else {
this.MLevel = 1;
}
}

// 老大哥锻炉,老大哥的恩情还不完

@Override
public int getMaxParallelRecipes() {
if (MLevel == 2) {
Expand Down Expand Up @@ -733,6 +724,7 @@ protected long getActualEnergyUsage() {
@Override
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) {
// Reset heating capacity.
updatetier();
mHeatingCapacity = 0;

// Get heating capacity from coils in structure.
Expand Down Expand Up @@ -763,6 +755,7 @@ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack a
@NotNull
@Override
public CheckRecipeResult checkProcessing() {
updatetier();
setupProcessingLogic(processingLogic);

CheckRecipeResult result = doCheckRecipe();
Expand Down