mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-10-30 06:10:51 +01:00
Fiddling with laser relay rendering.
This commit is contained in:
parent
9000eb3fab
commit
eb7963631f
2 changed files with 11 additions and 10 deletions
|
@ -63,14 +63,4 @@ public class ReconstructorRenderer implements BlockEntityRenderer<TileEntityAtom
|
|||
|
||||
matrices.popPose();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldRenderOffScreen(TileEntityAtomicReconstructor tile) {
|
||||
return tile.getProgress() > 0.0f;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AABB getRenderBoundingBox(TileEntityAtomicReconstructor blockEntity) {
|
||||
return BlockEntityRenderer.super.getRenderBoundingBox(blockEntity);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.state.BlockState;
|
||||
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
|
||||
import net.minecraft.world.phys.AABB;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
|
||||
public class RenderLaserRelay implements BlockEntityRenderer<TileEntityLaserRelay> {
|
||||
|
@ -125,4 +126,14 @@ public class RenderLaserRelay implements BlockEntityRenderer<TileEntityLaserRela
|
|||
public boolean shouldRenderOffScreen(TileEntityLaserRelay tile) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AABB getRenderBoundingBox(TileEntityLaserRelay blockEntity) {
|
||||
return INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getViewDistance() {
|
||||
return 32;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue