NaturesAura/src/main/java/de/ellpeck/naturesaura/entities/render/RenderStub.java

26 lines
831 B
Java
Raw Normal View History

2020-04-27 18:30:44 +02:00
package de.ellpeck.naturesaura.entities.render;
import net.minecraft.client.renderer.culling.Frustum;
2020-04-27 18:30:44 +02:00
import net.minecraft.client.renderer.entity.EntityRenderer;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.client.renderer.texture.TextureAtlas;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.Entity;
2020-04-27 18:30:44 +02:00
public class RenderStub<T extends Entity> extends EntityRenderer<T> {
public RenderStub(EntityRendererProvider.Context p_174008_) {
super(p_174008_);
2020-04-27 18:30:44 +02:00
}
@Override
public boolean shouldRender(T livingEntityIn, Frustum camera, double camX, double camY, double camZ) {
2020-04-27 18:30:44 +02:00
return false;
}
@Override
public ResourceLocation getTextureLocation(T p_114482_) {
return TextureAtlas.LOCATION_BLOCKS;
2020-04-27 18:30:44 +02:00
}
}