aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util
AgeCommit message (Collapse)Author
2021-08-01Fix off by one in cubic multi base and tooltip builderGlease
Also added a command to toggle structure lib debug print. Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-07-30fix (GT) build on jenkinsDreamMasterXXL
2021-07-30Merge branch 'experimental' into fix-clay-bucketsMartin Robertz
2021-07-30Fix frame box hint & placementGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-07-30Use upstream existing localization instead of creating our ownGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-07-30Fix coil hint block usageGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-07-30Make block hint text more informativeGlease
Also migrated from defer to lazy where possible Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-07-30Fixes related to coil hint blocksGlease
Also updates StructureLib to fix invisible block hint and pulled the utility methods up. Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-07-30Fix mod loading order problemGlease
This utility method could probably be extracted to upstream. Let's do it when the structurelib integration comes to the end of test phase. Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-07-30general bugfix & tweaking pass for multisGlease
1. stupid typo in EBF preventing it from working at all. 2. All multis now require exactly one maintenance hatch to form. 3. All multis now use the unified overclocking mechanism if possible. 4. All multis that emits pollution now require at least one muffler hatch to form. 5. Coil structure element slightly tweaked. Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-07-30Fix coil structure checksGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-07-30make fuel recipe map index building a bit more robustGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-07-30optimize fuel recipe lookupGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-07-30Add GT_MetaTileEntity_CubicMultiBlockBase and a few minor changesGlease
1. add ofCoil() IStructureElement to standardise how to add a homogeneous set of coils to the structure definition 2. Changed newMetaEntity's return type back to IMetaTileEntity to prevent addons crying out 3. Initialize mExtendedFacing to ensure rendering code don't step on null
2021-07-30feat(texture API): integrate ExtendedFacing rotationLéa Gris
Add ExtendedFacing rotation to the texture API. Rotatable ExtendedFacing textures can be created with: ```java TextureFactory.builder().addIcon(IICon).extFacing().build(); ``` Improve and unify internal implementation of standard oriented and glow textures.
2021-07-30Implement IConstructable for demo multisGlease
2021-07-30Initial StructureLib integrationGlease
2021-07-29Oredict clay buckets + fix railcraft item IDsD-Cysteine
2021-07-22Update GT_Recipe.javaGlodBlock
2021-07-22change it into hashset backGlodBlock
2021-07-21Merge pull request #594 from GTNewHorizons/fix-recipe-checkMartin Robertz
2021-07-21make it thread safeGlodBlock
2021-07-15Merge pull request #598 from TimeConqueror/experimentalMartin Robertz
More optimizaaations
2021-07-15Removed useless method callingsTimeConqueror
2021-07-15Merge pull request #597 from TimeConqueror/experimentalMartin Robertz
Improvements to Vanilla Replacement & GT_Utility#copy
2021-07-15Removed useless array creation in most #copy methods by changing them to ↵TimeConqueror
#copyOrNull variant with single parameter.
2021-07-15Optimized Replacing Vanilla Materials code, removed uselessly-repeated ↵TimeConqueror
operations
2021-07-10fix recipe checkGlodBlock
2021-07-10Extended GUI fluid manipulation support to GT_MetaTileEntity_BasicTankGlease
2021-07-03Remove unnecessary redstone state query for coversGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-06-29make arc furnace smelt Naquadah parts into ingotGlodBlock
i don't see a point why this method have to turn Naquadah and Enriched Naquadah into dust material, they should be ingot material in common sense.
2021-06-18Fix consistent crashamy null
2021-06-16Fix UnsupportedOperationException for listContainsItemGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-06-14Formatting changePrometheus0000
2021-06-07Merge pull request #553 from MatthewCOwen/experimentalMartin Robertz
Made the wireless redstone recievers safer to use on public servers
2021-06-05refactor a bit (readability, restore string order, avoid double tax)repo_alt
2021-06-05Display plant stats when the cropstick is emptyrepo_alt
https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/8015
2021-06-04All covers now record which player last opened that cover's guiMatt
2021-05-25Add input bus initial filter preferenceGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-05-25Allow client send preference to serverGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-05-24feat(glow): iconset machines glow supportLéa Gris
- Add glow support for all sides and states of iconset machines (same as with basicmachines). Automated code cleanup with IDEA of: - Optiimise all imports (remove unused, sort) - Reorder all modifiers to the canonical preferred order (as stated in the Java Language Specification) - Add all missing @Override annotations
2021-05-23It's ugly, but it works.Jason Mitchell
2021-05-22Merge branch 'experimental' into glow-textureMartin Robertz
2021-05-21feat(render): implementation-free api texture factoryLéa Gris
Provides an implementation-free API Texture factory an builder. Deprecates gregtech.api.objects.GT_*Texture.java classes Once all GregTech add-on will be migrated to the new implemnetation-free API, changes to the implementation will not affect the add-on. For now, this API allow rendering of in-world glow textures. In-inventory/hand rendering of glow texture require implementation changes that are postponed until no add-on uses the deprecated embedded implementation API.
2021-05-21fix(render): move new textures rendering to new packageLéa Gris
Old textures rendering are kept in api/objects for backward compatibility. The old textures rendering does not handle glow textures or independant inventory tessellation. The old textures will only work with the old GT_Renderer_Block class New textures rendering with own tessellation in inventory and handling of glow emisssive textures are moved to the api/render package. These must not be used with the Old GT_Renderer_Block class or it will crash with: Already Tessellating Exception from the Tessellator class
2021-05-20Fix translations from resourcepacks.Usernm
Without this fix gregtech always use localised names from GregTech.lang in minecraft root folder. With this fix you can change localisations on fly using resourcepacks.
2021-05-16Dirty fix for ore drill not mining certain oreGlease
2021-04-27fix(textfiles): add missing neline at end of filesLéa Gris
git and diff tools will complain if text file does not end with a newline. Fixed all text files in the repository with Linux bash shell: ```sh git ls-files -z | while IFS= read -rd '' f; do mime="$(file --brief --mime "$f")"; if [ -z "${mime##text/*}" ]; then tail -c1 "$f" | read -r _ || printf '\n' >>"$f"; fi; done ```
2021-04-27fix(logspam): spam unification typos (#514)Léa Gris
Address issue: [Gregtech.log spam with 6724 lines of "Unknown Key for Unification, Typo?" #7866](https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/7866) - Fix the logic for logging possible Typos (prioritise least cost) - Improve reverse recipes by excluding ore names of tools early to prevent unexpected and un needed unification lookups - Turn off unification typo logging in reverse recipes Reduced unification typo spam from 6724, down to 11 remaining entries: ```none circuitGood circuitData circuitElite circuitMaster circuitUltimate circuitSuperconductor gearSteel gearAluminium gearStainlessSteel gearTitanium gearTungstenSteel ```
2021-04-21fix(rendering): itemblocks inventory brightness and orientationLéa Gris
- Fix itemblock brightness and orientation to be exactly same as vanilla blocks in inventory. - Revert machine front facing to the brighter left side as it eases differentiating them. - Optimise inventory itemblock rendering to issue a draw quads only once for the entire block, rather than for each side.