This file contains 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
@SubscribeEvent | |
public static void onRegisterBlocksEvent(@Nonnull final RegistryEvent.Register<Block> event) { | |
container.callMethod(core, "register_blocks", event); | |
} | |
java_annotation 'SubscribeEvent' | |
def register_blocks(event) | |
call_method(:register_blocks, event) | |
end |
This file contains 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
# frozen_string_literal: true | |
class Example | |
def pre_init | |
@block = Block.new(:wood) | |
@block.set_unlocalized_name('bigboi') | |
@block.set_registry_name('test:bigboiblock') | |
@itemBlock = ItemBlock.new(@block) |