yeah whatever

This commit is contained in:
Bob 2022-10-26 00:40:36 +02:00
parent 084f5abd19
commit 3f7a446e79
6 changed files with 15 additions and 11 deletions

View File

@ -29,7 +29,7 @@ public class BlockReeds extends Block {
public void registerBlockIcons(IIconRegister reg) {
this.blockIcon = reg.registerIcon(RefStrings.MODID + ":reeds_top");
this.iconMid = reg.registerIcon(RefStrings.MODID + ":reeds_mid");
this.iconMid = reg.registerIcon(RefStrings.MODID + ":reeds_bottom");
this.iconBottom = reg.registerIcon(RefStrings.MODID + ":reeds_bottom");
}
public IIcon getIcon(int height) {

View File

@ -7,7 +7,7 @@ import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import com.hbm.inventory.gui.GUITestDiFurnace;
import com.hbm.inventory.gui.GUIDiFurnace;
import com.hbm.inventory.recipes.BlastFurnaceRecipes;
import com.hbm.inventory.recipes.MachineRecipes;
@ -64,7 +64,7 @@ public class AlloyFurnaceRecipeHandler extends TemplateRecipeHandler {
@Override
public String getGuiTexture() {
return GUITestDiFurnace.texture.toString();
return GUIDiFurnace.texture.toString();
}
@Override
@ -112,7 +112,7 @@ public class AlloyFurnaceRecipeHandler extends TemplateRecipeHandler {
@Override
public Class<? extends GuiContainer> getGuiClass() {
return GUITestDiFurnace.class;
return GUIDiFurnace.class;
}
@Override

View File

@ -22,22 +22,26 @@ public class RenderReeds implements ISimpleBlockRenderingHandler {
float r = (float) (colorMult >> 16 & 255) / 255.0F;
float g = (float) (colorMult >> 8 & 255) / 255.0F;
float b = (float) (colorMult & 255) / 255.0F;
int brightness = block.getMixedBrightnessForBlock(world, x, y, z);
tessellator.setBrightness(brightness);
float m = 0.75F;
tessellator.setColorOpaque_F(r * m, g * m, b * m);
int depth = 0;
for(int i = 1; i < 4; i++) {
Block water = world.getBlock(x, y - i, z);
depth = i;
for(int i = y - 1; i > 0 ; i--) {
Block water = world.getBlock(x, i, z);
depth = y - i;
if(water != Blocks.water && water != Blocks.flowing_water) break;
}
BlockReeds reeds = (BlockReeds) block;
for(int i = 0; i < depth; i++) {
int brightness = block.getMixedBrightnessForBlock(world, x, y - i, z);
tessellator.setBrightness(brightness);
IIcon icon = reeds.getIcon(i == 0 ? 0 : i == depth - 1 ? 2 : 1);
renderer.drawCrossedSquares(icon, x, y, z, 1.0F);
renderer.drawCrossedSquares(icon, x, y - i, z, 1.0F);
}
return true;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 B

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 B

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 350 B