blocks render!

This commit is contained in:
Flanks255 2021-11-24 12:59:05 -06:00
parent 326ddd770c
commit 404feeb00e

View file

@ -16,6 +16,7 @@ import de.ellpeck.actuallyadditions.mod.tile.TileEntityBase;
import de.ellpeck.actuallyadditions.mod.tile.TileEntityInventoryBase;
import de.ellpeck.actuallyadditions.mod.util.StackUtil;
import net.minecraft.block.Block;
import net.minecraft.block.BlockRenderType;
import net.minecraft.block.BlockState;
import net.minecraft.block.ContainerBlock;
import net.minecraft.entity.LivingEntity;
@ -42,8 +43,6 @@ import net.minecraftforge.fml.network.NetworkHooks;
import javax.annotation.Nullable;
import java.util.Random;
import net.minecraft.block.AbstractBlock.Properties;
public abstract class BlockContainerBase extends ContainerBlock {
public BlockContainerBase(Properties properties) {
super(properties);
@ -266,6 +265,11 @@ public abstract class BlockContainerBase extends ContainerBlock {
// }
@Override
public BlockRenderType getRenderShape(BlockState pState) {
return BlockRenderType.MODEL;
}
@Override
public void onRemove(BlockState state, World world, BlockPos pos, BlockState newState, boolean isMoving) {
if (state != newState) {