Interface BlockItemProvider
- All Known Implementing Classes:
UBlock
public interface BlockItemProvider
Implement this in a block to get the block item automatically registered with
BlockRegister-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemMust return the same block item instance every time you call this method.
-
Method Details
-
blockItem
net.minecraft.world.item.Item blockItem()Must return the same block item instance every time you call this method. The registry name will be set to the name from the block. Can return null for no block item. If this method is called the block item must be registered!- Returns:
- Block item instance
-