From d2b5bd0f9332e18e3322324265fb657204db07c7 Mon Sep 17 00:00:00 2001 From: IchHabeHunger54 <52419336+IchHabeHunger54@users.noreply.github.com> Date: Sun, 22 Oct 2023 12:35:23 +0200 Subject: [PATCH] Update docs/blocks/index.md Co-authored-by: ChampionAsh5357 --- docs/blocks/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/blocks/index.md b/docs/blocks/index.md index 9658dc10c..6f24c8d8c 100644 --- a/docs/blocks/index.md +++ b/docs/blocks/index.md @@ -14,7 +14,7 @@ Due to this, a block should only ever be instantiated once, and that is during r public static final RegistryObject MY_BLOCK = BLOCKS.register("my_block", () -> new Block(...)); ``` -After registering the block, all references to the new `my_block` should use this constant. For example, if you want to check if the block at a given position is a `my_block`, the code for that would look something like this: +After registering the block, all references to the new `my_block` should use this constant. For example, if you want to check if the block at a given position is `my_block`, the code for that would look something like this: ```java level.getBlockState(position).is(MyBlockRegistrationClass.MY_BLOCK.get());