Barrel Completion

This commit is contained in:
Kam committed 2025-02-12 02:48:06 -05:00
1 parent 5d4088b9d1
commit 411b4dac51
7 files changed
+10 -10

No files matched your search

@@ -30,11 +30,11 @@ public class BlockBarrelRenderer extends BlockRendererInterface{
private static final ResourceLocation trimTexture = new ResourceLocation("customnpcs","textures/models/barrel/trim.png");
private static final ResourceLocation oak_lid = new ResourceLocation("customnpcs","textures/models/barrel/oak_lid.png");
private static final ResourceLocation spruce_lid = new ResourceLocation("customnpcs","textures/models/barrel/oak_lid.png");
private static final ResourceLocation birch_lid = new ResourceLocation("customnpcs","textures/models/barrel/oak_lid.png");
private static final ResourceLocation jungle_lid = new ResourceLocation("customnpcs","textures/models/barrel/oak_lid.png");
private static final ResourceLocation acacia_lid = new ResourceLocation("customnpcs","textures/models/barrel/oak_lid.png");
private static final ResourceLocation dark_oak_lid = new ResourceLocation("customnpcs","textures/models/barrel/oak_lid.png");
private static final ResourceLocation spruce_lid = new ResourceLocation("customnpcs","textures/models/barrel/spruce_lid.png");
private static final ResourceLocation birch_lid = new ResourceLocation("customnpcs","textures/models/barrel/birch_lid.png");
private static final ResourceLocation jungle_lid = new ResourceLocation("customnpcs","textures/models/barrel/jungle_lid.png");
private static final ResourceLocation acacia_lid = new ResourceLocation("customnpcs","textures/models/barrel/acacia_lid.png");
private static final ResourceLocation dark_oak_lid = new ResourceLocation("customnpcs","textures/models/barrel/dark_oak_lid.png");
public BlockBarrelRenderer(){
((BlockBarrel)CustomItems.barrel).renderId = RenderingRegistry.getNextAvailableRenderId();
@@ -122,15 +122,15 @@ public class BlockBarrelRenderer extends BlockRendererInterface{
public void setLidTexture(int meta){
TextureManager manager = Minecraft.getMinecraft().getTextureManager();
if(meta == 1)
manager.bindTexture(oak_lid);
manager.bindTexture(spruce_lid);
else if(meta == 2)
manager.bindTexture(oak_lid);
manager.bindTexture(birch_lid);
else if(meta == 3)
manager.bindTexture(oak_lid);
manager.bindTexture(jungle_lid);
else if(meta == 4)
manager.bindTexture(oak_lid);
manager.bindTexture(acacia_lid);
else if(meta == 5)
manager.bindTexture(oak_lid);
manager.bindTexture(dark_oak_lid);
else
manager.bindTexture(oak_lid);
}