User Tools

Site Tools


tutorial:blocks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:blocks [2020/06/14 08:32] fudgetutorial:blocks [2020/08/16 17:09] – who tf wrote this section? java 101 when leocth2
Line 150: Line 150:
  
 <code java [enable_line_numbers="true",highlight_lines_extra="8,9,10,11,12,13,14,15"]> <code java [enable_line_numbers="true",highlight_lines_extra="8,9,10,11,12,13,14,15"]>
-@Override 
 public class ExampleBlock extends Block { public class ExampleBlock extends Block {
  
Line 193: Line 192:
 <code> <code>
  @Override  @Override
- public VoxelShape getOutlineShape(BlockState state, BlockView view, BlockPos pos, EntityContext ctx) {+ public VoxelShape getOutlineShape(BlockState state, BlockView view, BlockPos pos, ShapeContext context) {
      return VoxelShapes.cuboid(0f, 0f, 0f, 1f, 1.0f, 0.5f);      return VoxelShapes.cuboid(0f, 0f, 0f, 1f, 1.0f, 0.5f);
  }  }
tutorial/blocks.txt · Last modified: 2024/04/15 01:52 by solidblock