Schnittstelle BlockItemProvider
- Alle bekannten Implementierungsklassen:
UBlock,UEntityBlock
public interface BlockItemProvider
Implement this in a block to get the block item automatically registered with
BlockRegister-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungnet.minecraft.world.item.ItemMust return the same block item instance every time you call this method.
-
Methodendetails
-
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!- Gibt zurück:
- Block item instance
-