diff options
author | Léa Gris <lea.gris@noiraude.net> | 2021-03-03 03:09:05 +0100 |
---|---|---|
committer | Léa Gris <lea.gris@noiraude.net> | 2021-03-03 03:09:05 +0100 |
commit | 22b4fef98a49481416a6930383380d0a6e5efcb8 (patch) | |
tree | b1348433808685ca90a4f5975505c62a2b96bc1c /src/main/java/gregtech/api/GregTech_API.java | |
parent | ea300a469dd6cb310b7f51f0459159fecbf02660 (diff) | |
download | GT5-Unofficial-22b4fef98a49481416a6930383380d0a6e5efcb8.tar.gz GT5-Unofficial-22b4fef98a49481416a6930383380d0a6e5efcb8.tar.bz2 GT5-Unofficial-22b4fef98a49481416a6930383380d0a6e5efcb8.zip |
impr(rendering): Machine block casts an ambient occlusion shadow
- Implement the missing ambient occlusion shadow from machine block over neighbour blocks.
- Fix the LightingHelper to properly shade pipes/cables/wires against an opaque block.
- Refactor and cleanup the GT_Block_Machines class of all bad practices and code smell,
checked and validated with Sonarlint.
Diffstat (limited to 'src/main/java/gregtech/api/GregTech_API.java')
-rw-r--r-- | src/main/java/gregtech/api/GregTech_API.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/GregTech_API.java b/src/main/java/gregtech/api/GregTech_API.java index 0fbb1cd745..e24297c48c 100644 --- a/src/main/java/gregtech/api/GregTech_API.java +++ b/src/main/java/gregtech/api/GregTech_API.java @@ -739,4 +739,23 @@ public class GregTech_API { sToolList.add(new GT_ItemStack(GT_Utility.copyAmount(1, aTool))); return true; } + + /** + * Sets the {@link IIconRegister} for Block Icons + * @param aIconRegister The {@link IIconRegister} Icon Register + */ + @SideOnly(Side.CLIENT) + public static void setBlockIconRegister(IIconRegister aIconRegister) { + sBlockIcons = aIconRegister; + }; + + /** + * Sets the {@link IIconRegister} for Items Icons + * @param aIconRegister The {@link IIconRegister} Icon Register + */ + @SideOnly(Side.CLIENT) + public static void setItemIconRegister(IIconRegister aIconRegister) { + GregTech_API.sItemIcons = aIconRegister; + } + } |