-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bulkheads no longer stop rendering when looking at certain angles
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
forge/src/main/java/whocraft/tardis_refined/mixin/forge/BlockEntityRendererMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package whocraft.tardis_refined.mixin.forge; | ||
|
||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.level.block.entity.BlockEntity; | ||
import net.minecraft.world.level.block.entity.BlockEntityType; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
import net.minecraft.world.phys.AABB; | ||
import net.minecraftforge.common.extensions.IForgeBlockEntity; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import whocraft.tardis_refined.common.blockentity.console.GlobalConsoleBlockEntity; | ||
import whocraft.tardis_refined.common.blockentity.device.ConsoleConfigurationBlockEntity; | ||
import whocraft.tardis_refined.common.blockentity.door.BulkHeadDoorBlockEntity; | ||
import whocraft.tardis_refined.common.blockentity.door.RootShellDoorBlockEntity; | ||
import whocraft.tardis_refined.common.blockentity.shell.GlobalShellBlockEntity; | ||
|
||
@Mixin({ConsoleConfigurationBlockEntity.class, GlobalShellBlockEntity.class, RootShellDoorBlockEntity.class, GlobalShellBlockEntity.class, GlobalConsoleBlockEntity.class, BulkHeadDoorBlockEntity.class}) | ||
public class BlockEntityRendererMixin extends BlockEntity implements IForgeBlockEntity { | ||
|
||
public BlockEntityRendererMixin(BlockEntityType<?> arg, BlockPos arg2, BlockState arg3) { | ||
super(arg, arg2, arg3); | ||
} | ||
|
||
@Override | ||
public AABB getRenderBoundingBox() { | ||
return INFINITE_EXTENT_AABB; | ||
} | ||
} |