Trapdoor texture
This commit is contained in:
parent
86a3c3a5f8
commit
670a855abf
2 changed files with 8 additions and 1 deletions
|
@ -9,8 +9,10 @@ import net.minecraft.block.BlockState;
|
||||||
import net.minecraft.block.TrapdoorBlock;
|
import net.minecraft.block.TrapdoorBlock;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.loot.context.LootContext;
|
import net.minecraft.loot.context.LootContext;
|
||||||
|
import ru.betterend.client.ERenderLayer;
|
||||||
|
import ru.betterend.client.IRenderTypeable;
|
||||||
|
|
||||||
public class BlockTrapdoor extends TrapdoorBlock {
|
public class BlockTrapdoor extends TrapdoorBlock implements IRenderTypeable {
|
||||||
public BlockTrapdoor(Block source) {
|
public BlockTrapdoor(Block source) {
|
||||||
super(FabricBlockSettings.copyOf(source).nonOpaque());
|
super(FabricBlockSettings.copyOf(source).nonOpaque());
|
||||||
}
|
}
|
||||||
|
@ -19,4 +21,9 @@ public class BlockTrapdoor extends TrapdoorBlock {
|
||||||
public List<ItemStack> getDroppedStacks(BlockState state, LootContext.Builder builder) {
|
public List<ItemStack> getDroppedStacks(BlockState state, LootContext.Builder builder) {
|
||||||
return Collections.singletonList(new ItemStack(this));
|
return Collections.singletonList(new ItemStack(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ERenderLayer getRenderLayer() {
|
||||||
|
return ERenderLayer.CUTOUT;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
Loading…
Add table
Add a link
Reference in a new issue