This commit is contained in:
Bob 2026-01-29 22:18:02 +01:00
parent 97230f1b74
commit 38e58117da
6 changed files with 14 additions and 2 deletions

View File

@ -332,6 +332,8 @@ public class ResourceManager {
//PheoDoors
public static final ResourceLocation pheo_fire_door_tex = new ResourceLocation(RefStrings.MODID, "textures/models/pheodoors/fire_door.png");
public static final ResourceLocation pheo_fire_door_black_tex = new ResourceLocation(RefStrings.MODID, "textures/models/pheodoors/fire_door_black.png");
public static final ResourceLocation pheo_fire_door_orange_tex = new ResourceLocation(RefStrings.MODID, "textures/models/pheodoors/fire_door_orange.png");
public static IModelCustomNamed pheo_fire_door = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/pheodoors/fire_door.obj")).asVBO();
public static final ResourceLocation pheo_airlock_door_tex = new ResourceLocation(RefStrings.MODID, "textures/models/pheodoors/airlock_door.png");
public static IModelCustomNamed pheo_airlock_door = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/pheodoors/airlock_door.obj")).asVBO();

View File

@ -12,6 +12,7 @@ import com.hbm.items.weapon.ItemAmmoHIMARS.HIMARSRocket;
import com.hbm.main.ResourceManager;
import com.hbm.render.tileentity.RenderBobble;
import com.hbm.render.tileentity.RenderDemonLamp;
import com.hbm.util.Clock;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.OpenGlHelper;
@ -623,7 +624,11 @@ public class ItemRenderLibrary {
GL11.glScaled(3.5, 3.5, 3.5);
}
public void renderCommon() {
bindTexture(ResourceManager.pheo_fire_door_tex);
int index = (int) ((Clock.get_ms() % 3000) / 1000);
Minecraft.getMinecraft().getTextureManager().bindTexture(
index == 2 ? ResourceManager.pheo_fire_door_orange_tex :
index == 1 ? ResourceManager.pheo_fire_door_black_tex :
ResourceManager.pheo_fire_door_tex);
GL11.glRotated(90, 0, 1, 0);
GL11.glShadeModel(GL11.GL_SMOOTH);
ResourceManager.pheo_fire_door.renderAll();

View File

@ -17,7 +17,10 @@ public class RenderFireDoor implements IRenderDoors {
@Override
public void render(TileEntityDoorGeneric door, DoubleBuffer buf) {
Minecraft.getMinecraft().getTextureManager().bindTexture(ResourceManager.pheo_fire_door_tex);
Minecraft.getMinecraft().getTextureManager().bindTexture(
door.getSkinIndex() == 2 ? ResourceManager.pheo_fire_door_orange_tex :
door.getSkinIndex() == 1 ? ResourceManager.pheo_fire_door_black_tex :
ResourceManager.pheo_fire_door_tex);
double maxRaise = 2.75;
double raise = 0;

View File

@ -119,6 +119,8 @@ public abstract class DoorDecl {
return null;
}
@Override public int getSkinCount() { return 3; }
@Override public int timeToOpen() { return 160; }
@Override public int[][] getDoorOpenRanges() { return new int[][] { { -1, 0, 0, 3, 4, 1 } }; }
@Override public int[] getDimensions() { return new int[] { 2, 0, 0, 0, 2, 1 }; }

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB