Created
December 26, 2020 18:47
-
-
Save RubenVerg/4ec3bc601ce803182d7342a5ecd10de2 to your computer and use it in GitHub Desktop.
:()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface BlockRegistrar { | |
public static net.minecraft.block.Block BLOCK = null; | |
public static void registerBlock(net.minecraft.util.Identifier name) { | |
// whatever | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SomeBlockReg implements BlockRegistrar { | |
public static net.minecraft.block.Block BLOCK = new SomeBlock(); | |
public static void register(String prefix) { | |
net.minecraft.util.Identifier name = ident(prefix, __, "some_block"); | |
registerBlock(name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment