2020-04-27 18:30:44 +02:00
|
|
|
package de.ellpeck.naturesaura.entities.render;
|
|
|
|
|
2021-12-15 14:26:42 +01:00
|
|
|
import net.minecraft.client.renderer.culling.Frustum;
|
2020-04-27 18:30:44 +02:00
|
|
|
import net.minecraft.client.renderer.entity.EntityRenderer;
|
2021-12-15 14:26:42 +01:00
|
|
|
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
|
|
|
|
2021-12-15 14:26:42 +01: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
|
2021-12-15 14:26:42 +01:00
|
|
|
public boolean shouldRender(T livingEntityIn, Frustum camera, double camX, double camY, double camZ) {
|
2020-04-27 18:30:44 +02:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2021-12-15 14:26:42 +01:00
|
|
|
public ResourceLocation getTextureLocation(T p_114482_) {
|
|
|
|
return TextureAtlas.LOCATION_BLOCKS;
|
2020-04-27 18:30:44 +02:00
|
|
|
}
|
|
|
|
}
|