mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 12:59:41 +00:00
* remove direct guava predicates from BlockStateMachine * cleanup blockstatebasic * fix a large number of e.printStacktrace calls, narrow ComputerIntegration exception signature * fix simple todos, remove invalid todos, unify some duplicate rendering code * use a generic method to get around unchecked warning * remove some redundant uses of hasCapability * experimental OptionalCapability class. not in use yet * nullable checks/annotations & remove duplicate field controlType in factory TE * Inline various redundant variables * Remove unused list * Cleanup BlockStateGenerator * Replace string constants with pointers to the proper mod id constant * As 9.7.5 breaks backwards compat API wise for the DynamicNetwork this is as good a time as any to remove this deprecated method * Use two argument constructor instead of appending a ':' inbetween * Convert other BlockState type classes to using suppliers for tile entity creation
31 lines
1.3 KiB
Java
31 lines
1.3 KiB
Java
package mekanism.client.render.tileentity;
|
|
|
|
import mekanism.client.model.ModelSecurityDesk;
|
|
import mekanism.client.render.MekanismRenderer;
|
|
import mekanism.common.tile.TileEntitySecurityDesk;
|
|
import mekanism.common.util.MekanismUtils;
|
|
import mekanism.common.util.MekanismUtils.ResourceType;
|
|
import net.minecraft.client.renderer.GlStateManager;
|
|
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
public class RenderSecurityDesk extends TileEntitySpecialRenderer<TileEntitySecurityDesk> {
|
|
|
|
private ModelSecurityDesk model = new ModelSecurityDesk();
|
|
|
|
@Override
|
|
public void render(TileEntitySecurityDesk tileEntity, double x, double y, double z, float partialTick, int destroyStage, float alpha) {
|
|
GlStateManager.pushMatrix();
|
|
GlStateManager.translate((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);
|
|
|
|
bindTexture(MekanismUtils.getResource(ResourceType.RENDER, "SecurityDesk.png"));
|
|
|
|
MekanismRenderer.glRotateForFacing(tileEntity);
|
|
|
|
GlStateManager.rotate(180F, 0.0F, 0.0F, 1.0F);
|
|
model.render(0.0625F, rendererDispatcher.renderEngine);
|
|
GlStateManager.popMatrix();
|
|
}
|
|
} |