forked from cpw/ironchest
-
Notifications
You must be signed in to change notification settings - Fork 87
/
ObsidianChestBlock.java
24 lines (19 loc) · 934 Bytes
/
ObsidianChestBlock.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.progwml6.ironchest.common.block.regular;
import com.progwml6.ironchest.common.block.IronChestsTypes;
import com.progwml6.ironchest.common.block.entity.IronChestsBlockEntityTypes;
import com.progwml6.ironchest.common.block.regular.entity.ObsidianChestBlockEntity;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.state.BlockState;
import javax.annotation.Nullable;
public class ObsidianChestBlock extends AbstractIronChestBlock {
public ObsidianChestBlock(BlockBehaviour.Properties properties) {
super(properties, IronChestsBlockEntityTypes.OBSIDIAN_CHEST::get, IronChestsTypes.OBSIDIAN);
}
@Nullable
@Override
public BlockEntity newBlockEntity(BlockPos blockPos, BlockState blockState) {
return new ObsidianChestBlockEntity(blockPos, blockState);
}
}