tutorial:directionalblock
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:directionalblock [2019/12/22 09:02] – created bitman | tutorial:directionalblock [2021/02/15 06:48] – [Directional Blocks] Updated getOutlineShpe to fit current syntax arbee | ||
---|---|---|---|
Line 5: | Line 5: | ||
This example describes a vertical version of the andesite slab. | This example describes a vertical version of the andesite slab. | ||
- | < | + | {{: |
+ | |||
+ | < | ||
public class PolishedAndesiteSideBlock extends HorizontalFacingBlock { | public class PolishedAndesiteSideBlock extends HorizontalFacingBlock { | ||
Line 19: | Line 21: | ||
@Override | @Override | ||
- | public VoxelShape getOutlineShape(BlockState state, BlockView view, BlockPos pos, EntityContext | + | public VoxelShape getOutlineShape(BlockState state, BlockView view, BlockPos pos, ShapeContext |
Direction dir = state.get(FACING); | Direction dir = state.get(FACING); | ||
switch(dir) { | switch(dir) { |
tutorial/directionalblock.txt · Last modified: 2023/09/26 05:43 by poopooracoocoo