Compare commits

...
67 Commits
Author SHA1 Message Date
Ruling-0 2ab98749cb Bump GT5-Unofficial to 5.99.99-mu60 2026-11-21 17:35:43 -06:00
Ruling-0 ca02e2d91f Merge remote-tracking branch 'origin/master' into mu 2026-11-21 15:50:44 -06:00
Armisael5 24e473018e Fix empowering bee not seeing nodes correctly (#71) 2026-11-20 09:40:45 -05:00
d635a7a406 Protect some calls that lead to loadChunk with blockExists (#53)
Co-authored-by: Martin Robertz <[email protected]>
Co-authored-by: micvog <[email protected]>
2026-11-14 18:54:46 +01:00
UltraProdigy f82ed6358a ci: run build and test on release branches 2026-11-09 01:10:46 -05:00
Armisael5 1ed50ed660 Fix apiary crash (#70) 2026-11-01 06:15:52 -06:00
Yucheng-0909 f38854d65e Fix Thaumaturge's Backpack T2 English name (#69) 2026-10-28 07:47:23 +01:00
Ruling-0 294e579aa7 Bump GT5-Unofficial to 5.99.99-mu57 2026-10-12 16:25:59 -05:00
Ruling-0 18f7074caa Bump GT5-Unofficial to 5.99.99-mu56 2026-10-12 15:04:37 -05:00
Ruling-0 fb96b5f764 Bump GT5-Unofficial to 5.99.99-mu54 2026-10-12 11:35:51 -05:00
Ruling-0 eedc659dbb Bump MaterialLib to 0.24.0-mu and GT5-Unofficial to 5.99.99-mu53 2026-10-11 18:25:28 -05:00
Ruling-0 a8a32c9763 Bump GT5-Unofficial to 5.99.99-mu52 2026-10-10 00:56:10 -05:00
Ruling-0 6ba6d066a2 Bump GT5-Unofficial to 5.99.99-mu51 2026-10-09 22:46:16 -05:00
Ruling-0 20ce9aa472 Bump GT5-Unofficial to 5.99.99-mu50 2026-10-09 21:19:31 -05:00
Ruling-0 65e3ad1871 Bump MaterialLib to 0.21.0-mu 2026-10-09 21:16:37 -05:00
Ruling-0 edfdc477eb Bump GT5-Unofficial to 5.99.99-mu49 2026-10-09 19:06:58 -05:00
Ruling-0 c782a9bf34 Bump MaterialLib to 0.20.0-mu 2026-10-09 19:02:58 -05:00
Ruling-0 8a6eb5068b Bump GT5-Unofficial to 5.99.99-mu41 and MaterialLib to 0.19.0-mu 2026-10-06 15:01:05 -05:00
Ruling-0 e6b536b05c Bump GT5-Unofficial to 5.99.99-mu36 2026-10-05 13:30:26 -05:00
Ruling-0 58eb38d7c1 Bump MaterialLib to 0.18.0-mu 2026-10-04 12:34:57 -05:00
Ruling-0 49617a2900 Bump MaterialLib to 0.17.0-mu 2026-10-04 12:15:58 -05:00
Ruling-0 5176a61f98 Bump MaterialLib to 0.16.0-mu 2026-10-04 02:48:27 -05:00
Ruling-0 44f8d4d90d Bump MaterialLib to 0.15.0-mu 2026-09-30 13:01:50 -05:00
Ruling-0 0fca525643 Bump GT5-Unofficial to 5.99.99-mu32 2026-09-30 11:49:01 -05:00
Ruling-0 67d259b365 Bump GT5-Unofficial to 5.99.99-mu31 2026-09-30 11:07:06 -05:00
Ruling-0 19221a6075 Bump MaterialLib to 0.14.0-mu 2026-09-30 11:03:29 -05:00
Ruling-0 8ace30decd Bump GT5-Unofficial to 5.99.99-mu30 2026-09-30 09:26:49 -05:00
Ruling-0 9beaf61993 Bump GT5-Unofficial to 5.99.99-mu27 2026-09-29 23:08:35 -05:00
Ruling-0 7f381a7729 Bump GT5-Unofficial to 5.99.99-mu26 2026-09-29 22:26:27 -05:00
Ruling-0 a8296f2ecf Bump GT5-Unofficial to 5.99.99-mu25 and MaterialLib to 0.13.0-mu 2026-09-29 16:57:34 -05:00
Ruling-0 90b36cca2a Bump GT5-Unofficial to 5.99.99-mu24 2026-09-29 11:04:50 -05:00
Ruling-0 94faecf80e Bump GT5-Unofficial to 5.99.99-mu23 2026-09-29 10:42:39 -05:00
Ruling-0 82249614d4 Bump GT5-Unofficial to 5.99.99-mu22 2026-09-29 08:40:08 -05:00
Ruling-0 e1b4c3073f Bump MaterialLib to 0.12.0-mu 2026-09-29 07:22:39 -05:00
Ruling-0 2775665493 Bump GT5-Unofficial to 5.99.99-mu21 2026-09-28 22:04:51 -05:00
Ruling-0 5fa28362b6 Bump GT5-Unofficial to 5.99.99-mu20 2026-09-28 15:46:37 -05:00
Ruling-0 e61f57e6f3 Bump GT5-Unofficial to 5.99.99-mu19 2026-09-28 15:27:59 -05:00
Ruling-0 354a09449c Bump GT5-Unofficial to 5.99.99-mu18 2026-09-28 14:12:05 -05:00
Ruling-0 11cad05353 Bump GT5-Unofficial to 5.99.99-mu17 2026-09-28 13:28:55 -05:00
Ruling-0 c917b9fae2 Bump GT5-Unofficial to 5.99.99-mu16 2026-09-28 11:43:53 -05:00
Ruling-0 4fff7eb524 Bump GT5-Unofficial to 5.99.99-mu15 2026-09-28 07:56:11 -05:00
Ruling-0 da4ced5fca Bump GT5-Unofficial to 5.99.99-mu14 2026-09-27 20:38:12 -05:00
Ruling-0 f970d0ce11 Bump GT5-Unofficial to 5.99.99-mu13 2026-09-27 19:04:21 -05:00
Ruling-0 b637b24d8b Bump GT5-Unofficial to 5.99.99-mu12 2026-09-27 16:44:29 -05:00
Ruling-0 d6ab1dc83a Bump MaterialLib to 0.11.0-mu 2026-09-22 09:53:59 -05:00
Ruling-0 b0ad29e234 Bump GT5-Unofficial to 5.99.99-mu11 2026-09-22 09:53:59 -05:00
Ruling-0 fc9d138798 Bump GT5-Unofficial to 5.99.99-mu10 2026-09-20 11:40:05 -05:00
Ruling-0 5575acbdaf Bump GT5-Unofficial to 5.99.99-mu9 2026-09-17 16:31:07 -05:00
Ruling-0 4d9a31f945 Bump GT5-Unofficial to 5.99.99-mu8 2026-09-16 16:03:39 -05:00
Ruling-0 0133560c6d Bump GT5-Unofficial to 5.99.99-mu7 2026-09-15 16:51:27 -05:00
Ruling-0 9976f0c995 Bump GT5-Unofficial to 5.99.99-mu6 2026-09-09 12:58:21 -05:00
Ruling-0 0b2a8fa3e9 Bump GT5-Unofficial to 5.99.99-mu5 and MaterialLib to 0.10.0-mu 2026-08-29 22:50:27 -05:00
Ruling-0 62cd1ff608 Doc and code style pass 2026-08-20 17:46:34 -05:00
Ruling-0 b743b909d3 Bump GT5-Unofficial to 5.99.99-mu4 2026-08-18 02:43:23 -05:00
Ruling-0 365b19a559 Bump MaterialLib to 0.9.0-mu 2026-08-18 00:30:46 -05:00
Ruling-0 2ba2286060 Update to MaterialLib system 2026-08-18 00:30:46 -05:00
boubou19 53d085d292 Cache more enum .values() (#67) 2026-08-11 02:54:09 +02:00
boubou19 4345981958 Cache enum .values() (#66) 2026-08-10 21:01:38 +02:00
__felix__andgithub-actions[bot] 1dd3f7342e fix gt loader check (#64)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:53:40 -04:00
Eldrinn-Elantey f88d1f8c96 Fix magic apiary GUI bypassing claim protection (#63) 2026-05-04 16:39:06 +02:00
Ranzu 59aa1ce79c Fix gui crop and localize Inventory title (#61) 2026-04-13 19:24:25 +02:00
Ranzu d571f64b14 Un-hide Hives (#62) 2026-04-13 17:32:48 +02:00
Martin Robertz f3cf6407cf update+gradle+deps+bs 2026-03-10 20:03:01 +01:00
EricC808andMartin Robertz e3460d5dbc Clarified tool tip for each blood frame to reflect actual use (#58)
Co-authored-by: Martin Robertz <[email protected]>
2026-03-09 23:32:27 -04:00
UltraProdigy d9a7759c49 Optimize Image & Workflow (#60) 2026-03-07 10:31:15 +01:00
Alexdoru 7c38b1101a cache frequent enum.values() calls (#59) 2026-03-04 16:28:06 +00:00
SST-03 9ce571f464 use AspectList.remove instead of AspectList.reduce to fix "sometimes drainer doesn't work with essentia import bus" (#56) 2026-02-02 20:38:45 +01:00
180 changed files with 245 additions and 138 deletions

No files matched your search

+2 -2
View File
@@ -3,9 +3,9 @@ name: Build and test
on:
pull_request:
branches: [ master, main ]
branches: [ master, main, release/** ]
push:
branches: [ master, main ]
branches: [ master, main, release/** ]
jobs:
build-and-test:
+17
View File
@@ -0,0 +1,17 @@
name: Optimize images
on:
pull_request:
branches: [ master, main, release/** ]
paths:
- "**/*.png"
push:
branches: [ master, main, release/** ]
paths:
- "**/*.png"
jobs:
optimize-images:
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/optimize-images.yml@master
secrets: inherit
+12 -7
View File
@@ -1,14 +1,19 @@
// Add your dependencies here
dependencies {
api('com.github.GTNewHorizons:ForestryMC:4.11.2:dev')
api('com.ruling_0:MaterialLib:0.24.0-mu:dev')
api('com.github.GTNewHorizons:ForestryMC:4.12.1:dev')
compileOnly('com.github.GTNewHorizons:BloodMagic:1.8.5:dev')
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.8.4:dev')
compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.2.2-GTNH:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:Botania:1.13.4-GTNH:api') {transitive = false}
compileOnly('com.github.GTNewHorizons:BloodMagic:1.10.0:dev')
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.9.0:dev')
compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.3.0-GTNH:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:Botania:1.14.1-GTNH:api') {transitive = false}
compileOnly('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.97:dev')
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.7.14-GTNH:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.99.99-mu60:dev')
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.8.0-GTNH:dev')
//runtimeOnlyNonPublishable('com.github.GTNewHorizons:Baubles-Expanded:2.3.0-GTNH:dev') {transitive = false}
//runtimeOnlyNonPublishable('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
//runtimeOnlyNonPublishable('com.github.GTNewHorizons:GT5-Unofficial:5.09.55.13:dev')
}
+29 -2
View File
@@ -39,10 +39,34 @@ remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/co
# `./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.
# Enables modern Java syntax support. Valid values:
# - false: No modern syntax, Java 8 only
# - jabel: Jabel syntax-only support, compiles to J8 bytecode
# - jvmDowngrader: Full modern Java via JVM Downgrader (syntax + stdlib APIs)
# - modern: Native modern Java bytecode, no downgrading
enableModernJavaSyntax = false
# If set, ignores the above setting and compiles with the given toolchain. This may cause unexpected issues,
# and should *not* be used in most situations. -1 disables this.
# forceToolchainVersion = -1
# Target JVM version for JVM Downgrader bytecode downgrading.
# Only used when enableModernJavaSyntax = jvmDowngrader
# downgradeTargetVersion = 8
# Comma-separated list of Java versions for multi-release jar support (JVM Downgrader only).
# Classes will be available in META-INF/versions/N/ for each version N in this list.
# Default: "21,25" (J25+ gets native classes, J21-24 gets partial downgrade, J8-20 gets full downgrade).
# jvmDowngraderMultiReleaseVersions = 21,25
# Specifies how JVM Downgrader API stubs are provided. Options:
# - shade: Shade minimized stubs into the jar
# - gtnhlib: GTNHLib provides stubs at runtime (adds version constraint)
# - external: Another dependency provides stubs (no constraint, no warning)
# - (empty): Warning reminding you to configure stubs
# Note: 'shade' option requires you to verify license compliance, see: https://github.com/unimined/JvmDowngrader/blob/main/LICENSE.md
# jvmDowngraderStubsProvider =
# 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
@@ -209,3 +233,6 @@ customArchiveBaseName = magicbees
# This is meant to be set in $HOME/.gradle/gradle.properties.
# ideaCheckSpotlessOnBuild = true
# Non-GTNH properties
org.gradle.configuration-cache = true
org.gradle.parallel = true
+12
View File
@@ -0,0 +1,12 @@
#This file is generated by updateDaemonJvm
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/c5ee947fbfb70bc347d8d531e3a578c4/redirect
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/c5ee947fbfb70bc347d8d531e3a578c4/redirect
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/d4fd992c9557644e637ebe98263e0ae7/redirect
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/59a9771cad43219260d9aac9a8ec4d6a/redirect
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/c5ee947fbfb70bc347d8d531e3a578c4/redirect
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/3689d0bcdd77ac01674ba3c9dbbe94d0/redirect
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/8e1d9ee5d0f13e442218f6884a306da1/redirect
toolchainVersion=25
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Vendored
+2 -5
View File
@@ -1,7 +1,7 @@
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
# Copyright © 2015 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.
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/b631911858264c0b6e4d6603d677ff5218766cee/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -114,7 +114,6 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH="\\\"\\\""
# Determine the Java command to use to start the JVM.
@@ -172,7 +171,6 @@ fi
# 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" )
@@ -212,7 +210,6 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"
Vendored
+1 -2
View File
@@ -70,11 +70,10 @@ goto fail
:execute
@rem Setup the command line
set CLASSPATH=
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
:end
@rem End local scope for the variables with windows NT shell
+1
View File
@@ -1,4 +1,5 @@
// Add any additional repositories for your dependencies here
repositories {
mavenLocal()
}
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.48'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.24'
}
@@ -19,7 +19,7 @@ public class BeeGenomeManager {
// Basic genome for All thaumic bees.
private static IAllele[] getTemplateModBase() {
IAllele[] genome = new IAllele[EnumBeeChromosome.values().length];
IAllele[] genome = new IAllele[EnumBeeChromosome.VALUES.length];
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.MYSTICAL.getSpecies();
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedSlowest");
@@ -131,7 +131,11 @@ import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import gregtech.api.enums.Materials;
import com.ruling_0.materiallib.api.Material;
import com.ruling_0.materiallib.api.MaterialLibAPI;
import gregtech.api.enums.materials.Materials;
import gregtech.api.enums.materials.Shapes;
import magicbees.item.types.CombType;
import magicbees.item.types.DropType;
import magicbees.item.types.NuggetType;
@@ -260,12 +264,16 @@ public class BeeProductHelper {
INVISIBLE.addProduct(Config.combs.getStackForType(CombType.MUNDANE), 0.35f);
}
private static ItemStack getNugget(Material material) {
return MaterialLibAPI.getStack(material, Shapes.nugget, 1);
}
public static void initOreDictSProducts() {
boolean isGTLoaded = Config.isGTNHCoreModLoaded;
boolean isGTNHCoreModLoaded = Config.isGTNHCoreModLoaded;
SILVER.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetSilver").size() > 0) {
SILVER.addSpecialty(
isGTLoaded ? Materials.Silver.getNuggets(1) : OreDictionary.getOres("nuggetSilver").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Silver) : OreDictionary.getOres("nuggetSilver").get(0),
0.16f);
} else {
SILVER.setInactive();
@@ -274,7 +282,7 @@ public class BeeProductHelper {
LEAD.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetLead").size() > 0) {
LEAD.addSpecialty(
isGTLoaded ? Materials.Lead.getNuggets(1) : OreDictionary.getOres("nuggetLead").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Lead) : OreDictionary.getOres("nuggetLead").get(0),
0.17f);
} else {
LEAD.setInactive();
@@ -291,7 +299,8 @@ public class BeeProductHelper {
TE_PLATINUM.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetPlatinum").size() > 0) {
TE_PLATINUM.addSpecialty(
isGTLoaded ? Materials.Platinum.getNuggets(1) : OreDictionary.getOres("nuggetPlatinum").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Platinum)
: OreDictionary.getOres("nuggetPlatinum").get(0),
0.18f);
} else {
TE_PLATINUM.setInactive();
@@ -300,7 +309,7 @@ public class BeeProductHelper {
TE_NICKEL.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetNickel").size() > 0) {
TE_NICKEL.addSpecialty(
isGTLoaded ? Materials.Nickel.getNuggets(1) : OreDictionary.getOres("nuggetNickel").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Nickel) : OreDictionary.getOres("nuggetNickel").get(0),
0.18f);
} else {
TE_NICKEL.setInactive();
@@ -309,7 +318,7 @@ public class BeeProductHelper {
ARDITE.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetArdite").size() > 0) {
ARDITE.addSpecialty(
isGTLoaded ? Materials.Ardite.getNuggets(1) : OreDictionary.getOres("nuggetArdite").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Ardite) : OreDictionary.getOres("nuggetArdite").get(0),
0.18f);
} else {
ARDITE.setInactive();
@@ -318,7 +327,7 @@ public class BeeProductHelper {
COBALT.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetCobalt").size() > 0) {
COBALT.addSpecialty(
isGTLoaded ? Materials.Cobalt.getNuggets(1) : OreDictionary.getOres("nuggetCobalt").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Cobalt) : OreDictionary.getOres("nuggetCobalt").get(0),
0.18f);
} else {
COBALT.setInactive();
@@ -327,7 +336,7 @@ public class BeeProductHelper {
TE_BRONZE.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetBronze").size() > 0) {
TE_BRONZE.addSpecialty(
isGTLoaded ? Materials.Bronze.getNuggets(1) : OreDictionary.getOres("nuggetBronze").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Bronze) : OreDictionary.getOres("nuggetBronze").get(0),
0.18f);
} else {
TE_BRONZE.setInactive();
@@ -336,7 +345,7 @@ public class BeeProductHelper {
TE_INVAR.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetInvar").size() > 0) {
TE_INVAR.addSpecialty(
isGTLoaded ? Materials.Invar.getNuggets(1) : OreDictionary.getOres("nuggetInvar").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Invar) : OreDictionary.getOres("nuggetInvar").get(0),
0.18f);
} else {
TE_INVAR.setInactive();
@@ -345,7 +354,8 @@ public class BeeProductHelper {
TE_ELECTRUM.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetElectrum").size() > 0) {
TE_ELECTRUM.addSpecialty(
isGTLoaded ? Materials.Electrum.getNuggets(1) : OreDictionary.getOres("nuggetElectrum").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Electrum)
: OreDictionary.getOres("nuggetElectrum").get(0),
0.18f);
} else {
TE_ELECTRUM.setInactive();
@@ -354,7 +364,8 @@ public class BeeProductHelper {
MANYULLYN.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetManyullyn").size() > 0) {
MANYULLYN.addSpecialty(
isGTLoaded ? Materials.Manyullyn.getNuggets(1) : OreDictionary.getOres("nuggetManyullyn").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Manyullyn)
: OreDictionary.getOres("nuggetManyullyn").get(0),
0.18f);
} else {
MANYULLYN.setInactive();
@@ -36,7 +36,9 @@ public class BlockEffectJar extends BlockContainer {
boolean activate = false;
if (!player.isSneaking()) {
player.openGui(MagicBees.object, UIScreens.EFFECT_JAR.ordinal(), world, x, y, z);
if (!world.isRemote) {
player.openGui(MagicBees.object, UIScreens.EFFECT_JAR.ordinal(), world, x, y, z);
}
activate = true;
}
+3 -3
View File
@@ -43,7 +43,7 @@ public class BlockHive extends Block {
@Override
public int getLightValue(IBlockAccess world, int x, int y, int z) {
int meta = world.getBlockMetadata(x, y, z);
if (meta < 0 || meta > HiveType.values().length) {
if (meta < 0 || meta > HiveType.VALUES.length) {
meta = 0;
}
return HiveType.getHiveFromMeta(meta).getLightValue();
@@ -54,7 +54,7 @@ public class BlockHive extends Block {
@Override
public void getSubBlocks(Item item, CreativeTabs tab, List itemsList) {
// Java bitches about raw types & types not being checked. Sorry, but the API sucks.
for (HiveType type : HiveType.values()) {
for (HiveType type : HiveType.VALUES) {
if (type.show || Config.forestryDebugEnabled) {
itemsList.add(new ItemStack(this, 1, type.ordinal()));
}
@@ -75,7 +75,7 @@ public class BlockHive extends Block {
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
if (meta < 0 || meta > HiveType.values().length) {
if (meta < 0 || meta > HiveType.VALUES.length) {
meta = 0;
}
return HiveType.getHiveFromMeta(meta).getIconForSide(side);
@@ -40,7 +40,9 @@ public class BlockMagicApiary extends BlockContainer {
boolean activate = false;
if (!player.isSneaking()) {
player.openGui(MagicBees.object, UIScreens.THAUMIC_APIARY.ordinal(), world, x, y, z);
if (!world.isRemote) {
player.openGui(MagicBees.object, UIScreens.THAUMIC_APIARY.ordinal(), world, x, y, z);
}
activate = true;
}
@@ -25,9 +25,11 @@ public enum HiveType {
CURIOUS("curious", BeeSpecies.MYSTICAL, 12, true),
UNUSUAL("unusual", BeeSpecies.UNUSUAL, 12, true),
RESONANT("resonant", BeeSpecies.SORCEROUS, 12, true),
DEEP("deep", BeeSpecies.ATTUNED, 4, false),
INFERNAL("infernal", BeeSpecies.INFERNAL, 15, false),
OBLIVION("oblivion", BeeSpecies.OBLIVION, 7, false),;
DEEP("deep", BeeSpecies.ATTUNED, 4, true),
INFERNAL("infernal", BeeSpecies.INFERNAL, 15, true),
OBLIVION("oblivion", BeeSpecies.OBLIVION, 7, true),;
public static final HiveType[] VALUES = values();
private static String[] nameList;
@@ -43,8 +45,8 @@ public enum HiveType {
public static HiveType getHiveFromMeta(int meta) {
HiveType type = CURIOUS;
if (meta > 0 && meta < HiveType.values().length) {
type = HiveType.values()[meta];
if (meta > 0 && meta < HiveType.VALUES.length) {
type = HiveType.VALUES[meta];
}
return type;
@@ -96,7 +98,7 @@ public enum HiveType {
@SideOnly(Side.CLIENT)
public static void registerIcons(IIconRegister register) {
for (HiveType type : HiveType.values()) {
for (HiveType type : HiveType.VALUES) {
type.icons = new IIcon[2];
type.icons[0] = register.registerIcon(CommonProxy.DOMAIN + ":beehive." + type.ordinal() + ".top");
@@ -167,9 +169,9 @@ public enum HiveType {
}
private static String[] generateNames() {
String[] names = new String[values().length];
String[] names = new String[VALUES.length];
for (int i = 0; i < names.length; ++i) {
names[i] = values()[i].name;
names[i] = VALUES[i].name;
}
return names;
}
@@ -3,6 +3,7 @@ package magicbees.client.gui;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import org.lwjgl.opengl.GL11;
@@ -36,7 +37,7 @@ public class GUIEffectJar extends GuiContainer {
@Override
protected void drawGuiContainerForegroundLayer(int par1, int par2) {
fontRendererObj.drawString("Inventory", 9, 63, 0);
fontRendererObj.drawString(StatCollector.translateToLocal("container.inventory"), 9, 63, 0);
}
@Override
@@ -4,6 +4,7 @@ import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import org.lwjgl.opengl.GL11;
@@ -20,7 +21,7 @@ public class GuiMagicApiary extends GuiContainer {
CommonProxy.GUI_TEXTURE + "apiary.png");
private static final int WIDTH = 176;
private static final int HEIGHT = 190;
private static final int HEIGHT = 192;
private static final int LIFEBAR_WIDTH = 2;
private static final int LIFEBAR_HEIGHT = 46;
@@ -67,7 +68,7 @@ public class GuiMagicApiary extends GuiContainer {
@Override
protected void drawGuiContainerForegroundLayer(int par1, int par2) {
fontRendererObj.drawString("Inventory", 9, 99, 0);
fontRendererObj.drawString(StatCollector.translateToLocal("container.inventory"), 9, 99, 0);
}
@Override
@@ -38,7 +38,7 @@ public class ItemCapsule extends Item {
public String getItemStackDisplayName(ItemStack itemStack) {
return String.format(
this.capsuleType.getLocalizedName(),
FluidType.values()[itemStack.getItemDamage()].getDisplayName());
FluidType.VALUES[itemStack.getItemDamage()].getDisplayName());
}
public ItemStack getCapsuleForLiquid(FluidType l) {
@@ -49,7 +49,7 @@ public class ItemCapsule extends Item {
@Override
@SideOnly(Side.CLIENT)
public void getSubItems(Item item, CreativeTabs tab, List itemList) {
for (FluidType l : FluidType.values()) {
for (FluidType l : FluidType.VALUES) {
if (l.available) {
itemList.add(new ItemStack(this, 1, l.ordinal()));
}
@@ -68,7 +68,7 @@ public class ItemCapsule extends Item {
CommonProxy.DOMAIN + ":capsule"
+ this.capsuleType.getName().substring(0, 1).toUpperCase()
+ this.capsuleType.getName().substring(1));
for (FluidType t : FluidType.values()) {
for (FluidType t : FluidType.VALUES) {
if (t != FluidType.EMPTY) {
t.liquidIcon = iconRegister.registerIcon(CommonProxy.DOMAIN + ":liquids/" + t.liquidID);
}
@@ -80,7 +80,7 @@ public class ItemCapsule extends Item {
public IIcon getIconFromDamageForRenderPass(int metadata, int pass) {
IIcon i = this.itemIcon;
if (metadata != 0 && pass == 0) {
i = FluidType.values()[metadata % FluidType.values().length].liquidIcon;
i = FluidType.VALUES[metadata % FluidType.VALUES.length].liquidIcon;
}
return i;
}
+6 -6
View File
@@ -38,7 +38,7 @@ public class ItemComb extends Item {
@Override
@SideOnly(Side.CLIENT)
public void getSubItems(Item item, CreativeTabs tabs, List list) {
for (CombType type : CombType.values()) {
for (CombType type : CombType.VALUES) {
if (type.showInList || Config.forestryDebugEnabled) {
list.add(this.getStackForType(type));
}
@@ -73,11 +73,11 @@ public class ItemComb extends Item {
@Override
@SideOnly(Side.CLIENT)
public int getColorFromItemStack(ItemStack stack, int pass) {
int meta = Math.max(0, Math.min(CombType.values().length - 1, stack.getItemDamage()));
int colour = CombType.values()[meta].getColours()[0];
int meta = Math.max(0, Math.min(CombType.VALUES.length - 1, stack.getItemDamage()));
int colour = CombType.VALUES[meta].getColours()[0];
if (pass >= 1) {
colour = CombType.values()[meta].getColours()[1];
colour = CombType.VALUES[meta].getColours()[1];
}
return colour;
@@ -85,12 +85,12 @@ public class ItemComb extends Item {
@Override
public String getItemStackDisplayName(ItemStack stack) {
return CombType.values()[stack.getItemDamage()].getName();
return CombType.VALUES[stack.getItemDamage()].getName();
}
@Override
public int getDamage(ItemStack stack) {
if (CombType.values().length < super.getDamage(stack)) {
if (CombType.VALUES.length < super.getDamage(stack)) {
stack.setItemDamage(0);
}
return super.getDamage(stack);
+5 -5
View File
@@ -37,7 +37,7 @@ public class ItemDrop extends Item {
@SideOnly(Side.CLIENT)
@SuppressWarnings({ "unchecked", "rawtypes" })
public void getSubItems(Item item, CreativeTabs tabs, List list) {
for (DropType type : DropType.values()) {
for (DropType type : DropType.VALUES) {
list.add(this.getStackForType(type));
}
}
@@ -70,11 +70,11 @@ public class ItemDrop extends Item {
@Override
@SideOnly(Side.CLIENT)
public int getColorFromItemStack(ItemStack stack, int pass) {
int meta = Math.max(0, Math.min(DropType.values().length - 1, stack.getItemDamage()));
int colour = DropType.values()[meta].combColour[0];
int meta = Math.max(0, Math.min(DropType.VALUES.length - 1, stack.getItemDamage()));
int colour = DropType.VALUES[meta].combColour[0];
if (pass >= 1) {
colour = DropType.values()[meta].combColour[1];
colour = DropType.VALUES[meta].combColour[1];
}
return colour;
@@ -82,6 +82,6 @@ public class ItemDrop extends Item {
@Override
public String getItemStackDisplayName(ItemStack stack) {
return DropType.values()[stack.getItemDamage()].getName();
return DropType.VALUES[stack.getItemDamage()].getName();
}
}
@@ -17,7 +17,7 @@ import magicbees.main.utils.TabMagicBees;
public class ItemMiscResources extends Item {
private IIcon[] icons = new IIcon[ResourceType.values().length];
private final IIcon[] icons = new IIcon[ResourceType.VALUES.length];
public ItemMiscResources() {
super();
@@ -39,7 +39,7 @@ public class ItemMiscResources extends Item {
@SideOnly(Side.CLIENT)
@SuppressWarnings({ "unchecked", "rawtypes" })
public void getSubItems(Item item, CreativeTabs tabs, List list) {
for (ResourceType type : ResourceType.values()) {
for (ResourceType type : ResourceType.VALUES) {
if (type.showInList) {
list.add(this.getStackForType(type));
}
@@ -48,9 +48,8 @@ public class ItemMiscResources extends Item {
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister par1IconRegister) {
for (int i = 0; i < ResourceType.values().length; i++) {
this.icons[i] = par1IconRegister
.registerIcon(CommonProxy.DOMAIN + ":" + ResourceType.values()[i].getName());
for (int i = 0; i < ResourceType.VALUES.length; i++) {
this.icons[i] = par1IconRegister.registerIcon(CommonProxy.DOMAIN + ":" + ResourceType.VALUES[i].getName());
}
}
@@ -62,6 +61,6 @@ public class ItemMiscResources extends Item {
@Override
public String getItemStackDisplayName(ItemStack stack) {
return ResourceType.values()[stack.getItemDamage()].getLocalizedName();
return ResourceType.VALUES[stack.getItemDamage()].getLocalizedName();
}
}
+6 -6
View File
@@ -37,7 +37,7 @@ public class ItemNugget extends Item {
@SideOnly(Side.CLIENT)
@SuppressWarnings({ "unchecked", "rawtypes" })
public void getSubItems(Item item, CreativeTabs tab, List list) {
for (NuggetType type : NuggetType.values()) {
for (NuggetType type : NuggetType.VALUES) {
if (type.isActive()) {
list.add(new ItemStack(item, 1, type.ordinal()));
}
@@ -46,12 +46,12 @@ public class ItemNugget extends Item {
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister par1IconRegister) {
this.icons = new IIcon[NuggetType.values().length];
for (int i = 0; i < NuggetType.values().length; i++) {
this.icons = new IIcon[NuggetType.VALUES.length];
for (int i = 0; i < NuggetType.VALUES.length; i++) {
this.icons[i] = par1IconRegister.registerIcon(
CommonProxy.DOMAIN + ":nugget"
+ NuggetType.values()[i].name().substring(0, 1)
+ NuggetType.values()[i].name().substring(1).toLowerCase());
+ NuggetType.VALUES[i].name().substring(0, 1)
+ NuggetType.VALUES[i].name().substring(1).toLowerCase());
}
}
@@ -63,6 +63,6 @@ public class ItemNugget extends Item {
@Override
public String getItemStackDisplayName(ItemStack stack) {
return NuggetType.values()[stack.getItemDamage()].getName();
return NuggetType.VALUES[stack.getItemDamage()].getName();
}
}
+5 -5
View File
@@ -37,7 +37,7 @@ public class ItemPollen extends Item {
@SideOnly(Side.CLIENT)
@SuppressWarnings({ "unchecked", "rawtypes" })
public void getSubItems(Item item, CreativeTabs tabs, List list) {
for (PollenType type : PollenType.values()) {
for (PollenType type : PollenType.VALUES) {
list.add(this.getStackForType(type));
}
}
@@ -70,11 +70,11 @@ public class ItemPollen extends Item {
@Override
@SideOnly(Side.CLIENT)
public int getColorFromItemStack(ItemStack stack, int pass) {
int meta = Math.max(0, Math.min(PollenType.values().length - 1, stack.getItemDamage()));
int colour = PollenType.values()[meta].colour[0];
int meta = Math.max(0, Math.min(PollenType.VALUES.length - 1, stack.getItemDamage()));
int colour = PollenType.VALUES[meta].colourA;
if (pass >= 1) {
colour = PollenType.values()[meta].colour[1];
colour = PollenType.VALUES[meta].colourB;
}
return colour;
@@ -82,6 +82,6 @@ public class ItemPollen extends Item {
@Override
public String getItemStackDisplayName(ItemStack stack) {
return PollenType.values()[stack.getItemDamage()].getName();
return PollenType.VALUES[stack.getItemDamage()].getName();
}
}
@@ -36,7 +36,7 @@ public class ItemPropolis extends Item {
@SideOnly(Side.CLIENT)
@SuppressWarnings({ "unchecked", "rawtypes" })
public void getSubItems(Item item, CreativeTabs tabs, List list) {
for (PropolisType type : PropolisType.values()) {
for (PropolisType type : PropolisType.VALUES) {
list.add(this.getStackForType(type));
}
}
@@ -50,14 +50,14 @@ public class ItemPropolis extends Item {
public int getColorFromItemStack(ItemStack stack, int pass) {
int colour = 0xffffff;
int meta = stack.getItemDamage();
if (meta >= 0 && meta < PropolisType.values().length) {
colour = PropolisType.values()[meta].colour;
if (meta >= 0 && meta < PropolisType.VALUES.length) {
colour = PropolisType.VALUES[meta].colour;
}
return colour;
}
@Override
public String getItemStackDisplayName(ItemStack stack) {
return PropolisType.values()[stack.getItemDamage()].getName();
return PropolisType.VALUES[stack.getItemDamage()].getName();
}
}
+5 -5
View File
@@ -45,14 +45,14 @@ public class ItemWax extends Item {
@Override
@SideOnly(Side.CLIENT)
public IIcon getIconFromDamage(int meta) {
return (WaxType.values()[meta].sparkly) ? this.itemIcon : this.secondaryIcon;
return (WaxType.VALUES[meta].sparkly) ? this.itemIcon : this.secondaryIcon;
}
@Override
@SideOnly(Side.CLIENT)
@SuppressWarnings({ "unchecked", "rawtypes" })
public void getSubItems(Item item, CreativeTabs tabs, List list) {
for (WaxType type : WaxType.values()) {
for (WaxType type : WaxType.VALUES) {
list.add(this.getStackForType(type));
}
}
@@ -62,14 +62,14 @@ public class ItemWax extends Item {
public int getColorFromItemStack(ItemStack stack, int pass) {
int colour = 0xffffff;
int meta = stack.getItemDamage();
if (meta >= 0 && meta < WaxType.values().length) {
colour = WaxType.values()[meta].colour;
if (meta >= 0 && meta < WaxType.VALUES.length) {
colour = WaxType.VALUES[meta].colour;
}
return colour;
}
@Override
public String getItemStackDisplayName(ItemStack stack) {
return WaxType.values()[stack.getItemDamage()].getName();
return WaxType.VALUES[stack.getItemDamage()].getName();
}
}
@@ -39,7 +39,11 @@ public enum CombType {
TE_LUX("TElux", false),
TE_ENDEARING("TEendearing", false),;
private static int[][] colours = new int[][] { { 0xFF9859, 0xFFC58E }, { 0xcc3333, 0x1E160E },
/**
* Cached values() array for frequent read-only operations, the array should NOT be mutated.
*/
public static final CombType[] VALUES = values();
private static final int[][] colours = new int[][] { { 0xFF9859, 0xFFC58E }, { 0xcc3333, 0x1E160E },
{ 0x9872FF, 0x2D2D2D }, { 0x3EE0D8, 0x3A3820 }, { 0xE5425D, 0x323291 }, { 0xBCA664, 0x35332E },
{ 0x7F7171, 0x876D53 }, { 0xB7ACB7, 0x636363 }, { 0x0092e9, 0x618fff }, { 0x2F9381, 0x773C31 },
{ 0xB191D8, 0x35443B }, { 0xffff7e, 0x606308 }, { 0xff3C01, 0x5B0D10 }, { 0x0090ff, 0x102F6B },
@@ -47,10 +51,11 @@ public enum CombType {
{ 0x28D328, 0x333004 }, { 0xDDDDFF, 0x9D9DB5 }, { 0x555577, 0x2D2D56 }, { 0xCC8604, 0x41046F },
{ 0xCCCC04, 0x41046F }, { 0xCC002C, 0x6B0118 }, { 0x454545, 0x0F0F0F }, { 0xF5F3A4, 0xC9C87D },
{ 0x12E3D9, 0x069E97 }, };
private final String name;
public boolean showInList;
private CombType(String pName, boolean show) {
CombType(String pName, boolean show) {
this.name = pName;
this.showInList = show;
}
@@ -58,9 +63,6 @@ public enum CombType {
this.showInList = false;
}
private String name;
public boolean showInList;
public String getName() {
return LocalizationManager.getLocalizedString("comb." + this.name);
}
@@ -11,7 +11,9 @@ public enum DropType {
LUX("lux", 0xF5F3A4, 0xC9C87D),
ENDEARING("endearing", 0x12E3D9, 0x069E97),;
private DropType(String pName, int colourA, int colourB) {
public static final DropType[] VALUES = values();
DropType(String pName, int colourA, int colourB) {
this.name = pName;
this.combColour[0] = colourA;
this.combColour[1] = colourB;
@@ -48,12 +48,16 @@ public enum FluidType {
MANA("mana"),
COAL("coal"),;
public String liquidID;
/**
* Cached values() array for frequent read-only operations, the array should NOT be mutated.
*/
public static final FluidType[] VALUES = values();
public final String liquidID;
public int iconIdx;
public boolean available = false;
public IIcon liquidIcon;
private FluidType(String l) {
FluidType(String l) {
this.liquidID = l;
}
@@ -15,6 +15,8 @@ public enum NuggetType {
EMERALD,
APATITE,;
public static final NuggetType[] VALUES = values();
private Item targetIngot;
private boolean active;
@@ -5,17 +5,22 @@ import magicbees.main.utils.LocalizationManager;
public enum PollenType {
UNUSUAL("unusual", 0xD8417B, 0xA03059),
PHASED("phased", 0x4974B4, 0x456BA5),;
PHASED("phased", 0x4974B4, 0x456BA5);
private PollenType(String pName, int colourA, int colourB) {
/**
* Cached values() array for frequent read-only operations, the array should NOT be mutated.
*/
public static final PollenType[] VALUES = values();
private final String name;
public final int colourA;
public final int colourB;
PollenType(String pName, int colourA, int colourB) {
this.name = pName;
this.colour[0] = colourA;
this.colour[1] = colourB;
this.colourA = colourA;
this.colourB = colourB;
}
private String name;
public int[] colour = new int[2];
public String getName() {
return LocalizationManager.getLocalizedString("pollen." + this.name);
}
@@ -13,7 +13,9 @@ public enum PropolisType {
ORDER("dull", 0xDDDDFF),
CHAOS("magic", 0x555577),;
private PropolisType(String pName, int overlayColour) {
public static final PropolisType[] VALUES = values();
PropolisType(String pName, int overlayColour) {
this.name = pName;
this.colour = overlayColour;
}
@@ -32,16 +32,20 @@ public enum ResourceType {
// Dummy items for Thaumanomicon research icons.
// These won't ever actually exist in-game, and so they can be moved around.
RESEARCH_STARTNODE("startNode", false),
RESEARCH_BEEINFUSION("beeInfusion", false),;
RESEARCH_BEEINFUSION("beeInfusion", false);
private ResourceType(String n, boolean show) {
/**
* Cached values() array for frequent read-only operations, the array should NOT be mutated.
*/
public static final ResourceType[] VALUES = values();
private final String name;
public boolean showInList;
ResourceType(String n, boolean show) {
this.name = n;
this.showInList = show;
}
private String name;
public boolean showInList;
public void setHidden() {
this.showInList = false;
}
@@ -8,7 +8,9 @@ public enum WaxType {
SOUL("soul", false, 0x967C63),
AMNESIC("amnesic", true, 0x856DFF);
private WaxType(String n, boolean sp, int c) {
public static final WaxType[] VALUES = values();
WaxType(String n, boolean sp, int c) {
this.name = n;
this.sparkly = sp;
this.colour = c;
+3 -3
View File
@@ -165,7 +165,7 @@ public class Config {
public static Configuration configuration;
// ---- Loaded mods -----------------------------------------
public static boolean isGTLoaded = Loader.isModLoaded("gregtech");
public static boolean isGT5uNHLoaded = Loader.isModLoaded("gregtech_nh");
public static boolean isGTNHCoreModLoaded = Loader.isModLoaded("gregtech") && Loader.isModLoaded("dreamcraft");
public static boolean isThaumicEnergisticsLoaded = Loader.isModLoaded("thaumicenergistics");
@@ -442,7 +442,7 @@ public class Config {
hive = new BlockHive();
GameRegistry.registerBlock(hive, ItemMagicHive.class, "hive");
for (HiveType t : HiveType.values()) {
for (HiveType t : HiveType.VALUES) {
hive.setHarvestLevel("scoop", 0, t.ordinal());
}
}
@@ -462,7 +462,7 @@ public class Config {
private void setupNuggets() {
nuggets = new ItemNugget();
String item;
for (NuggetType type : NuggetType.values()) {
for (NuggetType type : NuggetType.VALUES) {
LogHelper.info("Found nugget of type " + type.toString());
item = type.toString().toLowerCase();
item = Character.toString(item.charAt(0)).toUpperCase() + item.substring(1);
@@ -50,14 +50,16 @@ public class BlockUtil {
public static List<Chunk> getChunksInSearchRange(World world, int xCoord, int zCoord, int searchRadius) {
List<Chunk> searchChunks = new ArrayList<Chunk>();
int chunkRange = (int) Math.ceil(searchRadius / 16.0);
int minChunkX = xCoord / 16 - chunkRange;
int maxChunkX = xCoord / 16 + chunkRange;
int minChunkZ = zCoord / 16 - chunkRange;
int maxChunkZ = zCoord / 16 + chunkRange;
int minChunkX = (xCoord - searchRadius) >> 4;
int maxChunkX = (xCoord + searchRadius) >> 4;
int minChunkZ = (zCoord - searchRadius) >> 4;
int maxChunkZ = (zCoord + searchRadius) >> 4;
for (int chunkX = minChunkX; chunkX <= maxChunkX; ++chunkX) {
for (int chunkZ = minChunkZ; chunkZ <= maxChunkZ; ++chunkZ) {
if (!world.blockExists(chunkX << 4, 0, chunkZ << 4)) {
continue;
}
Chunk chunk = world.getChunkFromChunkCoords(chunkX, chunkZ);
if (chunk != null) searchChunks.add(chunk);
}
@@ -822,7 +822,7 @@ public class CraftingManager {
ItemStack filled;
FluidStack liquid = null;
for (FluidType fluidType : FluidType.values()) {
for (FluidType fluidType : FluidType.VALUES) {
switch (fluidType) {
case EMPTY:
liquid = null;
@@ -90,8 +90,8 @@ public class ItemBloodBaseFrame extends EnergyItems implements IHiveFrame {
@Override
@SuppressWarnings({ "unchecked", "rawtypes" })
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
par3List.add(StatCollector.translateToLocal("You feel gross touching this"));
par3List.add(StatCollector.translateToLocal("Uses " + String.valueOf(energyUsed) + " LP per cycle"));
par3List.add(StatCollector.translateToLocal("tooltip.bloodBaseFrame.desc"));
par3List.add(StatCollector.translateToLocalFormatted("tooltip.bloodFrame.cost", energyUsed));
if (par1ItemStack.hasTagCompound()) {
par3List.add(
@@ -91,7 +91,7 @@ public class ItemBloodFrame extends EnergyItems implements IHiveFrame {
@SuppressWarnings({ "unchecked", "rawtypes" })
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
par3List.add(StatCollector.translateToLocal("tooltip.bloodframe.desc"));
par3List.add(StatCollector.translateToLocal("Uses " + String.valueOf(energyUsed) + " LP per cycle"));
par3List.add(StatCollector.translateToLocalFormatted("tooltip.bloodFrame.cost", energyUsed));
if (par1ItemStack.hasTagCompound()) {
par3List.add(
@@ -90,8 +90,8 @@ public class ItemFrenziedFrame extends EnergyItems implements IHiveFrame {
@Override
@SuppressWarnings({ "unchecked", "rawtypes" })
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
par3List.add(StatCollector.translateToLocal("MAY CHAOS TAKE THE WORLD"));
par3List.add(StatCollector.translateToLocal("Uses " + String.valueOf(energyUsed) + " LP per cycle"));
par3List.add(StatCollector.translateToLocal("tooltip.FrenziedFlame.desc"));
par3List.add(StatCollector.translateToLocalFormatted("tooltip.bloodFrame.cost", energyUsed));
if (par1ItemStack.hasTagCompound()) {
par3List.add(
@@ -159,7 +159,7 @@ public class TileEntityApimancersDrainerCommon extends TileEntity
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
}
if (this.essentia.getAmount(tag) >= amount) {
this.essentia.reduce(tag, amount);
this.essentia.remove(tag, amount);
return true;
}
return false;
@@ -177,7 +177,7 @@ public class TileEntityApimancersDrainerCommon extends TileEntity
}
if (hasIt) {
for (Aspect next : ot.aspects.keySet()) {
essentia.reduce(next, ot.getAmount(next));
essentia.remove(next, ot.getAmount(next));
}
return true;
}
@@ -224,13 +224,10 @@ public class TileEntityApimancersDrainerCommon extends TileEntity
if (!this.worldObj.isRemote) {
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
}
if (amount > this.essentia.getAmount(aspect)) {
int total = this.essentia.getAmount(aspect);
this.essentia.reduce(aspect, total);
return total;
}
this.essentia.reduce(aspect, amount);
return amount;
int total = this.essentia.getAmount(aspect);
this.essentia.remove(aspect, amount); // if amount >= total then it will also remove aspect.
return Math.min(amount, total);
}
return 0;
}
@@ -289,6 +286,9 @@ public class TileEntityApimancersDrainerCommon extends TileEntity
public void readFromNBT(NBTTagCompound compound) {
super.readFromNBT(compound);
this.essentia.readFromNBT(compound);
for (Aspect aspect : this.essentia.getAspects()) {
if (this.essentia.getAmount(aspect) <= 0) this.essentia.remove(aspect);
}
if (this.essentia.visSize() > this.maxAmount) {
this.essentia = new AspectList();
}
@@ -69,7 +69,7 @@ public class TileEntityApimancersDrainerGT extends TileEntityApimancersDrainerCo
MTEIndustrialApiary industrialApiary = getGTIndustrialApiary(GTMetaTileEntity);
int housingProductionMultiplier = super.getProductionMultiplier(modifier, queen, te);
return industrialApiary != null
? housingProductionMultiplier * (int) Math.ceil(Math.sqrt(industrialApiary.mSpeed))
? housingProductionMultiplier * (int) Math.ceil(Math.sqrt(industrialApiary.getSpeed()))
: housingProductionMultiplier;
}
@@ -158,6 +158,12 @@ item.bloodFrame.name=Sanguis Artus
item.frenziedFrame.name=Maddening Frame of Frenzy
item.bloodSoakedFrame.name=Blood Frame
#Tooltips
tooltip.bloodBaseFrame.desc=You feel gross touching this
tooltip.bloodFrame.desc=Stirs Bees into a frenzy
tooltip.FrenziedFlame.desc=MAY CHAOS TAKE THE WORLD
tooltip.bloodFrame.cost=Uses %d LP per bee tick
#Capsules
item.capsule.magic.name=Magic Capsule
capsule.magic=%s Magic Capsule
@@ -214,7 +220,7 @@ moon.new=New Moon
#Backpack
item.backpack.thaumaturgeT1.name=Thaumaturge's Backpack
item.backpack.thaumaturgeT2.name=Thaumaturge's Backpack
item.backpack.thaumaturgeT2.name=Thaumaturge's Woven Backpack
backpack.thaumaturge=Thaumaturge's Backpack
#Itemgroups
Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 378 B

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 416 B

After

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 719 B

After

Width:  |  Height:  |  Size: 718 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 B

After

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 834 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 930 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 912 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 B

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 B

After

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 412 B

After

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 B

After

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 403 B

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 272 B

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 412 B

After

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 B

After

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 403 B

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 B

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 488 B

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Loaded 100 of 180 files, more files were not shown because too many files have changed in this diff. Show more