1
0
Fork 0

remove block sound types

This commit is contained in:
Sen 2025-09-10 11:48:18 +02:00
parent 521dabb042
commit f61b8041ad
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
24 changed files with 162 additions and 199 deletions

View file

@ -3348,8 +3348,8 @@ public class Renderer {
{
int light = brightPos == null ? 0xffffffff : this.getLightColor(brightPos, null);
IBakedModel model = this.manager.getModelForState(state);
Block block = state.getBlock();
GL15.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
// GL15.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
GL15.glTranslatef(0.0F, 0.0F, -1.0F);
for (Facing enumfacing : Facing.values())
{

View file

@ -1,12 +1,15 @@
package client.renderer.texture;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.imageio.ImageIO;
import java.util.Map.Entry;
import client.init.RenderRegistry;
@ -19,6 +22,7 @@ import common.collect.Maps;
import common.init.BlockRegistry;
import common.log.Log;
import common.model.TextureAnimation;
import common.util.Util;
public class TextureMap extends Texture
{
@ -158,6 +162,8 @@ public class TextureMap extends Texture
TextureUtil.allocateTexture(this.getGlTextureId(), this.width = stitcher.getCurrentWidth(), this.height = stitcher.getCurrentHeight());
Map<String, Sprite> map = Maps.<String, Sprite>newHashMap(this.mapRegisteredSprites);
BufferedImage img = Util.DEVMODE ? new BufferedImage(this.width, this.height, BufferedImage.TYPE_INT_ARGB) : null;
for (Sprite textureatlassprite2 : stitcher.getStichSlots())
{
@ -171,6 +177,18 @@ public class TextureMap extends Texture
{
this.listAnimatedSprites.add(textureatlassprite2);
}
if(img != null)
img.setRGB(textureatlassprite2.getOriginX(), textureatlassprite2.getOriginY(), textureatlassprite2.getIconWidth(), textureatlassprite2.getIconHeight(), textureatlassprite2.getFrameTextureData(0), 0, textureatlassprite2.getIconWidth());
}
if(img != null) {
try {
ImageIO.write(img, "png", new File("atlas.png"));
}
catch(IOException e) {
Log.IO.error(e, "Konnte Bild nicht speichern");
}
}
for (Sprite textureatlassprite3 : map.values())