Interface BlockItemProvider
- All Known Implementing Classes:
UBlock
,UEntityBlock
public interface BlockItemProvider
Implement this in a block to get the block item automatically registered with
BlockDeferredRegister
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.Item
Must 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.- Returns:
- Block item instance
-