tutorial:blockentity
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:blockentity [2020/02/09 12:46] – mapping update juuz | tutorial:blockentity [2020/03/30 20:43] – draylar | ||
---|---|---|---|
Line 36: | Line 36: | ||
</ | </ | ||
- | Once your '' | + | ==== Connecting a Block Entity to a Block ==== |
+ | |||
+ | Once your '' | ||
<code java> | <code java> | ||
- | @Override | + | public class MyBlock extends Block implements BlockEntityProvider { |
- | public BlockEntity createBlockEntity(BlockView blockView) { | + | |
- | | + | |
+ | |||
+ | @Override | ||
+ | | ||
+ | return new DemoBlockEntity(); | ||
+ | } | ||
} | } | ||
</ | </ |
tutorial/blockentity.txt · Last modified: 2023/09/20 19:18 by haykam