1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-29 08:42:17 +00:00

computers block themselves render

This commit is contained in:
shedaniel 2020-09-01 22:37:43 +08:00
parent f79c67e243
commit c54c8c3ea6
2 changed files with 8 additions and 5 deletions

View File

@ -10,4 +10,4 @@ cloth_config_version=4.8.1
fabric_api_version=0.19.0+build.398-1.16
fabric_loader_version=0.9.2+build.206
jankson_version=1.2.0
modmenu_version=1.12.2+build.17
modmenu_version=1.14.6+

View File

@ -6,7 +6,7 @@
package dan200.computercraft.shared.common;
import net.minecraft.block.Block;
import net.minecraft.block.BlockEntityProvider;
import net.minecraft.block.BlockRenderType;
import net.minecraft.block.BlockState;
import net.minecraft.block.BlockWithEntity;
import net.minecraft.block.entity.BlockEntity;
@ -17,11 +17,8 @@ import net.minecraft.util.ActionResult;
import net.minecraft.util.Hand;
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.world.BlockView;
import net.minecraft.world.World;
import net.minecraft.world.WorldAccess;
import net.minecraft.world.WorldView;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
@ -37,6 +34,12 @@ public abstract class BlockGeneric extends BlockWithEntity
this.type = type;
}
@Override
public BlockRenderType getRenderType( BlockState state )
{
return BlockRenderType.MODEL;
}
@Override
@Deprecated
public final void onStateReplaced( @Nonnull BlockState block, @Nonnull World world, @Nonnull BlockPos pos, BlockState replace, boolean bool )