tutorial:blocks
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:blocks [2020/06/14 01:00] – fix highlighting + more comments draylar | tutorial:blocks [2020/06/14 01:02] – more highlighting draylar | ||
---|---|---|---|
Line 153: | Line 153: | ||
You can override methods in the block class for custom functionality. Here's an implementation of the '' | You can override methods in the block class for custom functionality. Here's an implementation of the '' | ||
- | <code java [enable_line_numbers=" | + | <code java [enable_line_numbers=" |
@Override | @Override | ||
public class ExampleBlock extends Block { | public class ExampleBlock extends Block { | ||
Line 174: | Line 174: | ||
To use your custom block class, replace //new Block// with //new ExampleBlock//: | To use your custom block class, replace //new Block// with //new ExampleBlock//: | ||
- | <code java [enable_line_numbers=" | + | <code java [enable_line_numbers=" |
public class ExampleMod implements ModInitializer { | public class ExampleMod implements ModInitializer { | ||
tutorial/blocks.txt · Last modified: 2024/04/15 01:52 by solidblock