/**
Copyright (C) <2017> <coolAlias>
This file is part of coolAlias' Zelda Sword Skills Minecraft Mod; as such,
you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package zeldaswordskills.client.render;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.entity.Entity;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.client.registry.IRenderFactory;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
/**
*
* A class that renders nothing.
*
*/
@SideOnly(Side.CLIENT)
public class RenderNothing extends Render<Entity> {
public RenderNothing(RenderManager renderManager) {
super(renderManager);
}
@Override
public void doRender(Entity entity, double x, double y, double z, float yaw, float partialTick) {}
@Override
protected ResourceLocation getEntityTexture(Entity entity) { return null; }
public static class Factory implements IRenderFactory<Entity> {
@Override
public Render<? super Entity> createRenderFor(RenderManager manager) {
return new RenderNothing(manager);
}
}
}