This commit is contained in:
Shadows_of_Fire 2018-07-04 03:29:27 -04:00
parent bdd87c621c
commit 61e3f2c9fe
2 changed files with 1 additions and 9 deletions

View file

@ -27,7 +27,7 @@ public final class InitEntities{
@SideOnly(Side.CLIENT)
public static void initClient(){
RenderingRegistry.registerEntityRenderingHandler(EntityWorm.class, RenderWorm.FACTORY);
RenderingRegistry.registerEntityRenderingHandler(EntityWorm.class, RenderWorm::new);
}
}

View file

@ -19,20 +19,12 @@ import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.client.registry.IRenderFactory;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class RenderWorm extends Render<EntityWorm>{
public static final IRenderFactory<EntityWorm> FACTORY = new IRenderFactory<EntityWorm>(){
@Override
public Render<EntityWorm> createRenderFor(RenderManager manager){
return new RenderWorm(manager);
}
};
private static ItemStack stack = ItemStack.EMPTY;
public static void fixItemStack(){