aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity
AgeCommit message (Collapse)Author
2018-01-29Merge pull request #196 from codewarrior0/refactor-check-recipeAlkalus
$ Rewrite and refactor checkRecipe() for several multiblocks, restore machine sounds $ Fixes #182. $ Fixes #183. $ Fixes #184.
2018-01-29Fix broken multiblocks - remove hacky `polluteEnvironment()` (#191)David Vierra
This code path should never have worked. `getDeclaredField()` only searches the given class and not any of its superclasses - because `mPollution` is declared in a superclass, `null` will always be returned.
2018-01-28Make sure checkRecipeGeneric() resets the progress time and outputs.David Vierra
Fixes a bug where if an input stack is of the right type but the amount is not enough, proceeds with the last successful recipe.
2018-01-28Rewrite and refactor checkRecipe() for several multiblocks, restore machine ↵David Vierra
sounds `checkRecipeGeneric()` implements parallel processing, EU/t discounts and speed boosts, increased random chances, and can be used to consider each input bus individually (as seen in the Industrial Material Press) to allow each bus to use a different Configuration Circuit. Also considers the voltage input limit of the multiblock when counting recipes to do in parallel - if the energy hatch is too small, it will process fewer recipes at once. Plays the machine's sound, if any, on success. `checkRecipeGeneric()` also checks `canBufferOutput()` and will pause the machine if it has no bus/hatch room for the recipe output. `getValidOutputSlots()` is rewritten as `canBufferOutput()`, which now checks both the item output buses and fluid output hatches to make sure recipe output can be accepted. This is used to pause a machine instead of allowing it to continue working and void outputs, if the outputs can't be stored in a bus and/or hatch. NOTE: `canBufferOutput()` doesn't consider parallel processing, so there are a few recipes where, if done in parallel, it may get a false positive on the buffer check and void some outputs. In practice, this will rarely happen. Removed unused imports, fields, and locals. Industrial Centrifuge now uses `checkRecipeGeneric()` with 4 parallel recipes and a 40% speed boost. Industrial Coke Oven now uses `checkRecipeGeneric()` with 12 parallel recipes if using Heat-Resistant Casings, or 24 if using Heat-Proof Casings. Sound plays while processing. Industrial Cutting Machine now uses `checkRecipeGeneric()` with 2 parallel recipes and a 60% speed boost. Pollution removed since the Machine is built with no Muffler Hatch. Industrial Electrolyzer now uses `checkRecipeGeneric()` with 2 parallel recipes and a 40% speed boost. Maceration Stack now uses `checkRecipeGeneric()` with 8*tTier parallel recipes, a 60% speed boost, and an increased amount (~33%) of random outputs. Sound plays while processing. Material Press now uses `checkRecipeGeneric()` with 2 parallel recipes and a 50% speed boost. Each input bus is considered separately for finding recipes, allowing each bus to hold a different Configuration Circuit. Sound plays while processing. Industrial Sifter now uses `checkRecipeGeneric()` with 2 parallel recipes, a 400% speed boost, and an increased amount (~15%) of random outputs. Changed particles to appear above the sieve grates. Industrial Thermal Centrifuge now uses `checkRecipeGeneric()` with 2 parallel recipes and a 60% speed boost. Industrial Washing Plant now uses `checkRecipeGeneric()` with 2 parallel recipes and an 80% speed boost. Stone Dust outputs are no longer deleted. Wire Factory now uses `checkRecipeGeneric()` with 2 parallel recipes and a 60% speed boost. Sound plays while processing.
2018-01-25$ Further fixes to Pollution and Multiblocks, revision of ↵Jordan Byrne
7ddb7f5e8ed9fe60b730183c7a04f3bce3b8f815. + Added a handler for class transformers. % Added test case to tiered tanks for NBT storing. - Removed logging from some reflection calls.
2018-01-24$ Several 5.08 compat fixes.Jordan Byrne
$ Fixed pollution, which was causing all multiblocks to fail. This was pointed out in #191 by @CodeWarrior0, however I decided to re-do it myself to better handle the .08 compat. $ Fixed all multiblocks being broken as fuck. Fixes #190, fixes #186 and also fixes #176. - Removed some useless logging from the mining explosives.
2018-01-08+ Added a recipe to craft Mining Explosives.Jordan Byrne
+ Added missing file. WorldGen_GT.java. % Tweaked Mining Explosive logic. % Tweaked entity fuse variable in primed mining explosive. % Swapped some XSTR's to CSPRNG's. $ Fixed mining explosives renderer. $ Fixed Tesla Tower attacking Items on the ground.
2017-12-20- Disabled some logging.Draknyte1
% Minor Project Clean-up, added missing Override annotations to 100+ methods & removed pointless casts. % Moved Logging to it's own class. $ Fixed Multi-block handling of Pollution. $ Fixed the GT 5.09 material enabler system. (From My Side, it's still borked on GTs). + Added a Dynamic Proxy invocation for IMaterialHandler. + Added an AutoMap data type, which is a Auto-incremental ID'd Hashmap wrapper.
2017-12-15More fixes pre-gtnh update (#168)Alkalus
$ Tree Farmer Fix (a) $ Multitank Fix. ^ Version Bump. * + Added Chainsaw support to treefarm. + Added check for creative tools to tree farm for creative testing.
2017-12-15$ Small fix to updateTexture() in GregtechMeta_MultiBlockBase.java.Jordan Byrne
2017-12-15Add TecTech support (#166)Alkalus
+ Added check for TecTech mod. + Added TecTech support to my Base Multiblock. + Added TecTech support to my Power-Substation. + Added TecTech support to my Generator Array. % Made GT++ load after a few more mods that were recently added. $ Fixed else statement for computronics load message during startup. $ By now supporting Multi-amp Dynamos, this closes #161.
2017-12-11Merge GTNH features and changes (#160)Daniel
+ GTNH full compat mode. + Added boiler config, recipes changes and minor tweaks. $ Fix nbtutuls. $ Tree farm fixes. % Pipe and cable rendering tweaks.
2017-11-28- Removed Recipe generation logging.Alkalus
2017-11-27$ 5.08.33 compat.Alkalus
2017-11-27$ Compatibility Fixes.Alkalus
- Removed Ore-Regeneration command.
2017-11-22+ Added the basic framework for Ore Regen commands.Alkalus
+ Added more missing Blast Smelter recipes. $ Fixed Alloy Blast Smelter not using fluids as expected.
2017-11-17+ Gave people free capes.Alkalus
% Redid cape handler. - Removed annoying logging.
2017-11-17+ Added in the Compact Fusion Reactor.Alkalus
% Did work on the CFR. $ Fixed a tooltip on the Pollution Detector.
2017-11-15$ Fixed Charge Hatches not having the correct amount of inputs.Alkalus
$ Fixed Charge Hatches correctly handling electric items.
2017-11-15+ Added custom Hatch textures.Alkalus
2017-11-15$ Fixed Power Sub-Station not providing very good scanner info.Alkalus
+ Added stats for nerds to the PSS. + Added custom (dis)charge hatches for use with the PSS.
2017-11-14Revert "% Changed Wash Plant recipe handling."Alkalus
This reverts commit 98d4998aafa2f5b6f1ad518b6effe52b6a7c7c18.
2017-11-14Revert "$ Re-did some recipe handling, several different multi-blocks now ↵Alkalus
give the correct outputs. Fixes #68." This reverts commit 9d7ea595609228d8341c0dc7c9a7461153d764bb. # Conflicts: # src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialCentrifuge.java # src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialThermalCentrifuge.java # src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialWashPlant.java
2017-10-07+ Added sounds to more Multi-BlocksAlkalus
$ Made my base Multiblock extend the GT base multi-block.
2017-10-07+ Made Alloy Blast Smelter actually check for a muffler.Alkalus
% Changed Industrial Electrolyzer controller texture. % Changed Large Sifter controller texture. $ Fixed names of custom IC2 cells. $ Fixed the empty item having an invalid texture.
2017-10-06$ .08 compliance fixes.Alkalus
% LFTR Changes. It now outputs U233 on average every 10 seconds. % Updated LFTR tool-tip.
2017-10-05+ Added some wires from custom materials.Alkalus
+ Added a new Super Conductor Material for LuV power (HG-1223). + Added recipes for all custom material wires and cables. $ Fixed an issue where materials with a bad RGB array would crash the game.
2017-10-05$ Fixed the Wire/Cable colouring not working properly when placed. Closes #133.Alkalus
2017-10-05$ Hopefully fixed my custom cables/wires not having correct colours. Thanks ↵Alkalus
to @Technus for the suggestion.
2017-09-19$ Fixed Cable/Pipe tool-tips.Alkalus
2017-09-19$ Re-did some recipe handling, several different multi-blocks now give the ↵Alkalus
correct outputs. Fixes #68.
2017-09-19% Changed Wash Plant recipe handling.Alkalus
2017-09-18$ Potential fix to custom cables not rendering properly.Alkalus
2017-09-17$ Fixed an issue where Multi-block recipe changes affected the actual GT ↵Alkalus
recipes. % Updated tooltips to reflect time bonuses.
2017-09-09- Removed Superconductors and Conduction Nodes.Alkalus
2017-09-09+ Added ability for High-Amp Transformers to swap between 2A:8A and 4A:16A ↵Alkalus
modes.
2017-09-09+ Added High-amp transformers.Alkalus
- Removed Forge log spam.
2017-07-10$ Fixed .09 features trying to work in .08.Draknyte1
+ Moved lots of things to reflection again.
2017-06-14+ Added a Pollution Detector.Draknyte1
- Disabled some unused Gregtech Tile Entities. % Refactored some classes to be in better locations.
2017-04-30$ Fixed dirt not working in the Tree Farmer Frame recipe.Draknyte1
- Removed a touch of old code.
2017-03-04- Removed some Logging.Draknyte1
2017-03-04$ Fixed Multiblock Output Overflow Logic, thanks to Itszuvalex.Draknyte1
2017-03-04+ New texture for the slow builders ring.Draknyte1
+ Added the Alkalus Disk. $ Fixed Frame Box Assembler Recipes. $ Fixed Missing 7Li material. $ Fixed Tiered Tanks not showing their capacity in the tooltip. $ Fixed tooltips for alloys containing Bronze or Steel. $ Fixed Clay Pipe Extruder Recipes. - Removed a handful of Plasma cells for misc. materials. % Changed the Industrial Coke Oven's tooltip, to better describe the input/output requirements. % Cleaned up The Entire Project.
2017-01-20+ Added a power cost of 32eu/action for the Tree Farmer. (Will eventually ↵Draknyte1
get a config option). % Moved the internal power buffer variable out of the cut method into the class. % Massive project tidy up, lots of old unused code removed or tidied up. $ Fixed lots of String comparisons that used == instead of .equals(). $ Fixed Double/Triple/Quad null checks in certain places. $ Fixed returns that set values at the same time. $ Swapped 3.14 and 1.57 to Math.PI and Math.PI/2. $ Fixed possible cases where a NPE may be thrown, by calling logging outside of null checks. + Added PI to CORE.java, since it's a double and MC uses it as a float in each instance. - Stripped 95% of the useless code out of Meta_GT_Proxy.java
2017-01-19$ More FindBugs, PMD & CheckStyle clean up.Draknyte1
2017-01-17% Tried to improve the logic for the Tree Farmer, to support Forestry 4.Draknyte1
% Moved COFH API related files. + Added a child mod, for misc handling. $$ Borrowed some code from MFR, to attempt forestry support. (Credit left, will re-do if I even get it working).
2017-01-08$ Rewrote the logic for tree chopping, now the Tree Farmer cuts tree and ↵Draknyte1
clears leaves for upto 150 blocks above it. + Added a isLeaves check to TreefarmManager.java. + Added a placeholder casing texture for the Tree Farmer. (ID 77) + Added vanilla Podzol and Acacia log textures. % Changed the textures on TreeFarmer blocks.
2017-01-05+ Added a casing for the perimeter of the Tree Farmer structure.Draknyte1
$ Improved the structure formation of the Tree Farmer, it now works better when built. + Added a new texture for the Farm manager blocks, which surround the Tree Farming structure.
2016-12-28+ Added framework based on opensource works for player movement modification.Draknyte1
+ Added support for the builders ring to toggle Sneak on and Sprinting off while worn. + Added PlayerAPI. % Moved COFH api files into the same package as PlayerAPI.
2016-11-23- Removed some dead code from safes.Draknyte1
+ Added some log messages for #35 so that people can/will tell @Blood-asp about missing items. Since it's not my issue.