mirror of https://github.com/Minestom/Minestom.git
Updated Blocks (markdown)
parent
bcab26c268
commit
ba363e2781
|
@ -1,5 +1,6 @@
|
|||
Blocks are a bit special on Minestom, there are normal vanilla blocks which are only visual and CustomBlock which contains multiple callbacks in order to expand their functionalities.
|
||||
|
||||
## Custom block
|
||||
In order to create your own CustomBlock you need to create a class extending CustomBlock, implement all of its abstract method and finally register it using the BlockManager.
|
||||
```java
|
||||
BlockManager blockManager = MinecraftServer.getBlockManager();
|
||||
|
|
Loading…
Reference in New Issue