mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
blocks render!
This commit is contained in:
parent
326ddd770c
commit
404feeb00e
1 changed files with 6 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue