This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package teamroots.embers.world; | |
import java.util.Random; | |
import com.google.common.base.Predicate; | |
import net.minecraft.block.Block; | |
import net.minecraft.block.state.IBlockState; | |
import net.minecraft.init.Blocks; | |
import net.minecraft.util.math.BlockPos; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SubscribeEvent | |
@SideOnly(Side.CLIENT) | |
public void onRenderAfterWorld(RenderWorldLastEvent event){ | |
for (Entity e : Minecraft.getMinecraft().world.getLoadedEntityList()){ | |
Render render = Minecraft.getMinecraft().getRenderManager().getEntityRenderObject(e); | |
if (render instanceof IRenderEntityLater){ | |
double x = Minecraft.getMinecraft().player.lastTickPosX + Minecraft.getMinecraft().getRenderPartialTicks()*(Minecraft.getMinecraft().player.posX-Minecraft.getMinecraft().player.lastTickPosX); | |
double y = Minecraft.getMinecraft().player.lastTickPosY + Minecraft.getMinecraft().getRenderPartialTicks()*(Minecraft.getMinecraft().player.posY-Minecraft.getMinecraft().player.lastTickPosY); | |
double z = Minecraft.getMinecraft().player.lastTickPosZ + Minecraft.getMinecraft().getRenderPartialTicks()*(Minecraft.getMinecraft().player.posZ-Minecraft.getMinecraft().player.lastTickPosZ); | |
int i = e.getBrightnessForRender(Minecraft.getMinecraft().getRenderPartialTicks()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SubscribeEvent | |
@SideOnly(Side.CLIENT) | |
public void onRenderAfterWorld(RenderWorldLastEvent event){ | |
for (Entity e : Minecraft.getMinecraft().world.getLoadedEntityList()){ | |
Render render = Minecraft.getMinecraft().getRenderManager().getEntityRenderObject(e); | |
if (render instanceof IRenderEntityLater){ | |
double x = Minecraft.getMinecraft().player.lastTickPosX + Minecraft.getMinecraft().getRenderPartialTicks()*(Minecraft.getMinecraft().player.posX-Minecraft.getMinecraft().player.lastTickPosX); | |
double y = Minecraft.getMinecraft().player.lastTickPosY + Minecraft.getMinecraft().getRenderPartialTicks()*(Minecraft.getMinecraft().player.posY-Minecraft.getMinecraft().player.lastTickPosY); | |
double z = Minecraft.getMinecraft().player.lastTickPosZ + Minecraft.getMinecraft().getRenderPartialTicks()*(Minecraft.getMinecraft().player.posZ-Minecraft.getMinecraft().player.lastTickPosZ); | |
int i = e.getBrightnessForRender(Minecraft.getMinecraft().getRenderPartialTicks()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- Minecraft Crash Report ---- | |
WARNING: coremods are present: | |
LoadingPlugin (ResourceLoader-MC1.12-1.5.2.jar) | |
AstralCore (astralsorcery-1.12-1.6.1.jar) | |
LoadingPlugin (Quark-r1.2-101.jar) | |
ForgelinPlugin (Forgelin-1.5.0.jar) | |
LoadingPlugin (RandomThings-MC1.12-4.0.3.jar) | |
Do not report to Forge! Remove FoamFixAPI (or replace with FoamFixAPI-Lawful) and try again. (foamfix-0.7.3-1.12-anarchy.jar) | |
CTMCorePlugin (CTM-MC1.12-0.2.0.3.jar) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- Minecraft Crash Report ---- | |
WARNING: coremods are present: | |
LoadingPlugin (ResourceLoader-MC1.12-1.5.2.jar) | |
AstralCore (astralsorcery-1.12-1.6.1.jar) | |
ForgelinPlugin (Forgelin-1.5.1.jar) | |
LoadingPlugin (RandomThings-MC1.12-4.0.3.jar) | |
Do not report to Forge! Remove FoamFixAPI (or replace with FoamFixAPI-Lawful) and try again. (foamfix-0.7.3-1.12-anarchy.jar) | |
CTMCorePlugin (CTM-MC1.12-0.2.0.3.jar) | |
CoreMod (Aroma1997Core-1.12-1.3.0.0.b94.jar) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[20:13:58] [main/INFO]: [net.minecraft.init.Bootstrap:func_179870_a:553]: ---- Minecraft Crash Report ---- | |
WARNING: coremods are present: | |
LoadingPlugin (ResourceLoader-MC1.12-1.5.2.jar) | |
AstralCore (astralsorcery-1.12-1.6.1.jar) | |
ForgelinPlugin (Forgelin-1.5.1.jar) | |
LoadingPlugin (RandomThings-MC1.12-4.0.3.jar) | |
Do not report to Forge! Remove FoamFixAPI (or replace with FoamFixAPI-Lawful) and try again. (foamfix-0.7.3-1.12-anarchy.jar) | |
CTMCorePlugin (CTM-MC1.12-0.2.0.3.jar) | |
CoreMod (Aroma1997Core-1.12-1.3.0.0.b94.jar) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.NullPointerException: Ticking block entity | |
at futurepack.common.block.TileEntityNeonEngine.func_73660_a(TileEntityNeonEngine.java:39) | |
at net.minecraft.world.World.func_72939_s(World.java:1807) | |
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:614) | |
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:761) | |
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:665) | |
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185) | |
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:523) | |
at java.lang.Thread.run(Thread.java:745) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void draw_text(const char* txt, int x, int y, float scale, float spacing, bool is_precise, GLuint font){ | |
string s = txt; | |
float tx = 0.0; | |
float ty = 0.0; | |
float letter_offset; | |
if (is_precise){ | |
letter_offset = 0.0; | |
} | |
else { | |
letter_offset = (s.size()/2)*(-spacing*scale); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void drawString(float x, float y, float z, String text){ | |
glBindTexture(GL_TEXTURE_2D,TextureManager.get("font")); | |
glDepthMask(false); | |
glBegin(GL_QUADS); | |
byte[] bytes = text.getBytes(StandardCharsets.UTF_8); | |
glColor4f(1,1,1,1); | |
for (int i = 0; i < text.length(); i ++){ | |
int asciiCode = bytes[i]-1; | |
int minU = (asciiCode%16)*8; | |
int minV = (asciiCode/16)*8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float walkCycleSin = (float)Math.sin(Math.PI*3.0*this.timeExisted)*(Math.abs(motionX)/7f); | |
float walkCycleDouble = (float)Math.sin(Math.PI*6.0*this.timeExisted)*(Math.abs(motionX)/7f); | |
float walkCycleCos = (float)Math.cos(Math.PI*3.0*this.timeExisted)*(Math.abs(motionX)/7f); | |
GL11.glBindTexture(GL11.GL_TEXTURE_2D,TextureManager.textures.get("player")); | |
GL11.glPushMatrix(); | |
GL11.glTranslatef(x, y, z); | |
int translation = GL20.glGetUniformLocation(ShaderManager.defaultProgram, "translation"); | |
GL20.glUniform3f(translation, x, y, z); | |
glRotatef(facing*90f-22.5f*walkCycleSin*(Math.abs(motionX)/7f),0,1,0); |
OlderNewer