Fiddling with laser relay rendering.

This commit is contained in:
Flanks255 2024-06-01 12:55:29 -05:00
parent 9000eb3fab
commit eb7963631f
2 changed files with 11 additions and 10 deletions

View file

@ -63,14 +63,4 @@ public class ReconstructorRenderer implements BlockEntityRenderer<TileEntityAtom
matrices.popPose(); matrices.popPose();
} }
@Override
public boolean shouldRenderOffScreen(TileEntityAtomicReconstructor tile) {
return tile.getProgress() > 0.0f;
}
@Override
public AABB getRenderBoundingBox(TileEntityAtomicReconstructor blockEntity) {
return BlockEntityRenderer.super.getRenderBoundingBox(blockEntity);
}
} }

View file

@ -35,6 +35,7 @@ import net.minecraft.world.level.block.Rotation;
import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.properties.BlockStateProperties; import net.minecraft.world.level.block.state.properties.BlockStateProperties;
import net.minecraft.world.phys.AABB;
import net.minecraft.world.phys.Vec3; import net.minecraft.world.phys.Vec3;
public class RenderLaserRelay implements BlockEntityRenderer<TileEntityLaserRelay> { public class RenderLaserRelay implements BlockEntityRenderer<TileEntityLaserRelay> {
@ -125,4 +126,14 @@ public class RenderLaserRelay implements BlockEntityRenderer<TileEntityLaserRela
public boolean shouldRenderOffScreen(TileEntityLaserRelay tile) { public boolean shouldRenderOffScreen(TileEntityLaserRelay tile) {
return true; return true;
} }
@Override
public AABB getRenderBoundingBox(TileEntityLaserRelay blockEntity) {
return INFINITE_EXTENT_AABB;
}
@Override
public int getViewDistance() {
return 32;
}
} }