move a thing so its not on fire

and lowercase thingy
This commit is contained in:
Shadows_of_Fire 2017-07-07 16:09:23 -04:00
parent a4f07f9885
commit 7fb6602969
3 changed files with 8 additions and 5 deletions

View file

@ -24,11 +24,11 @@ public final class InitEntities{
ModUtil.LOGGER.info("Initializing Entities..."); ModUtil.LOGGER.info("Initializing Entities...");
EntityRegistry.registerModEntity(new ResourceLocation(ModUtil.MOD_ID, "worm"), EntityWorm.class, ModUtil.MOD_ID+".worm", 0, ActuallyAdditions.instance, 64, 1, false); EntityRegistry.registerModEntity(new ResourceLocation(ModUtil.MOD_ID, "worm"), EntityWorm.class, ModUtil.MOD_ID+".worm", 0, ActuallyAdditions.instance, 64, 1, false);
RenderWorm.fixItemStack();
} }
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public static void initClient(){ public static void initClient(){
RenderingRegistry.registerEntityRenderingHandler(EntityWorm.class, RenderWorm.FACTORY); RenderingRegistry.registerEntityRenderingHandler(EntityWorm.class, RenderWorm.FACTORY);
} }
} }

View file

@ -33,10 +33,10 @@ public class RenderWorm extends Render<EntityWorm>{
} }
}; };
private static ItemStack STACK = ItemStack.EMPTY; private static ItemStack stack = ItemStack.EMPTY;
public static void fixItemStack(){ public static void fixItemStack(){
STACK = new ItemStack(InitItems.itemWorm); stack = new ItemStack(InitItems.itemWorm);
} }
protected RenderWorm(RenderManager renderManager){ protected RenderWorm(RenderManager renderManager){
@ -57,8 +57,8 @@ public class RenderWorm extends Render<EntityWorm>{
GlStateManager.rotate(-(float)((boop%360)), 0, 1, 0); GlStateManager.rotate(-(float)((boop%360)), 0, 1, 0);
GlStateManager.translate(0, 0, 0.4); GlStateManager.translate(0, 0, 0.4);
STACK.setStackDisplayName(entity.getName()); stack.setStackDisplayName(entity.getName());
AssetUtil.renderItemInWorld(STACK); AssetUtil.renderItemInWorld(stack);
GlStateManager.popMatrix(); GlStateManager.popMatrix();
} }

View file

@ -14,6 +14,7 @@ package de.ellpeck.actuallyadditions.mod.proxy;
import de.ellpeck.actuallyadditions.mod.ClientRegistryHandler; import de.ellpeck.actuallyadditions.mod.ClientRegistryHandler;
import de.ellpeck.actuallyadditions.mod.blocks.render.*; import de.ellpeck.actuallyadditions.mod.blocks.render.*;
import de.ellpeck.actuallyadditions.mod.entity.InitEntities; import de.ellpeck.actuallyadditions.mod.entity.InitEntities;
import de.ellpeck.actuallyadditions.mod.entity.RenderWorm;
import de.ellpeck.actuallyadditions.mod.event.ClientEvents; import de.ellpeck.actuallyadditions.mod.event.ClientEvents;
import de.ellpeck.actuallyadditions.mod.misc.special.SpecialRenderInit; import de.ellpeck.actuallyadditions.mod.misc.special.SpecialRenderInit;
import de.ellpeck.actuallyadditions.mod.tile.*; import de.ellpeck.actuallyadditions.mod.tile.*;
@ -55,6 +56,8 @@ public class ClientProxy implements IProxy{
public void init(FMLInitializationEvent event){ public void init(FMLInitializationEvent event){
ModUtil.LOGGER.info("Initializing ClientProxy..."); ModUtil.LOGGER.info("Initializing ClientProxy...");
RenderWorm.fixItemStack();
new ClientEvents(); new ClientEvents();
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCompost.class, new RenderCompost()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCompost.class, new RenderCompost());