tutorial:directionalblock
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:directionalblock [2021/08/11 02:53] – use auto uv and uvlock solidblock | tutorial:directionalblock [2022/01/31 00:49] – solidblock | ||
---|---|---|---|
Line 8: | Line 8: | ||
<code java> | <code java> | ||
- | public class PolishedAndesiteSideBlock | + | public class VerticalSlabBlock |
- | public | + | public |
super(settings); | super(settings); | ||
setDefaultState(this.stateManager.getDefaultState().with(Properties.HORIZONTAL_FACING, | setDefaultState(this.stateManager.getDefaultState().with(Properties.HORIZONTAL_FACING, | ||
Line 37: | Line 37: | ||
} | } | ||
+ | @Override | ||
public BlockState getPlacementState(ItemPlacementContext ctx) { | public BlockState getPlacementState(ItemPlacementContext ctx) { | ||
return (BlockState)this.getDefaultState().with(Properties.HORIZONTAL_FACING, | return (BlockState)this.getDefaultState().with(Properties.HORIZONTAL_FACING, | ||
Line 88: | Line 89: | ||
< | < | ||
{ | { | ||
- | " | + | " |
" | " | ||
" | " |
tutorial/directionalblock.txt · Last modified: 2023/09/26 05:43 by poopooracoocoo