mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-16 01:23:11 +01:00
25 lines
831 B
Java
25 lines
831 B
Java
package de.ellpeck.naturesaura.entities.render;
|
|
|
|
import net.minecraft.client.renderer.culling.Frustum;
|
|
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;
|
|
|
|
public class RenderStub<T extends Entity> extends EntityRenderer<T> {
|
|
|
|
public RenderStub(EntityRendererProvider.Context p_174008_) {
|
|
super(p_174008_);
|
|
}
|
|
|
|
@Override
|
|
public boolean shouldRender(T livingEntityIn, Frustum camera, double camX, double camY, double camZ) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public ResourceLocation getTextureLocation(T p_114482_) {
|
|
return TextureAtlas.LOCATION_BLOCKS;
|
|
}
|
|
}
|