Interface IBlockCapabilityConstructor
public interface IBlockCapabilityConstructor
Constructor for block capability providers.
-
Method Summary
-
Method Details
-
getBlock
@Nullable net.minecraft.world.level.block.Block getBlock()- Returns:
- The block the capability provider applies to, null if it applies to all blocks. Only use null if absolutely necessary, as this will reduce performance during lookup.
-
createProvider
IBlockCapabilityProvider createProvider()- Returns:
- The capability provider
-