mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-16 01:54:50 +00:00
Initial commit
This commit is contained in:
commit
0d94e9ac7f
78 files changed
+7045
No files matched your search
@@ -0,0 +1,26 @@
|
||||
package codechicken.core.featurehack;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraftforge.client.MinecraftForgeClient;
|
||||
|
||||
public class RenderEntityRenderHook extends Render
|
||||
{
|
||||
@Override
|
||||
public void doRender(Entity entity, double x, double y, double z, float f, float frame)
|
||||
{
|
||||
EntityRenderHook hook = (EntityRenderHook)entity;
|
||||
GL11.glTranslated(x-hook.posX, y-hook.posY, z-hook.posZ);
|
||||
((EntityRenderHook)entity).callback.render(frame, MinecraftForgeClient.getRenderPass());
|
||||
GL11.glTranslated(hook.posX-x, hook.posY-y, hook.posZ-z);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ResourceLocation getEntityTexture(Entity entity)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user