mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
betr cod
This commit is contained in:
parent
bdd87c621c
commit
61e3f2c9fe
2 changed files with 1 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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(){
|
||||
|
|
Loading…
Reference in a new issue