Uses of Class
net.neoforged.neoforge.capabilities.BlockCapabilityCache
-
Uses of BlockCapabilityCache in net.neoforged.neoforge.capabilities
Modifier and TypeMethodDescriptionstatic <T,
C> BlockCapabilityCache <T, C> BlockCapabilityCache.create
(BlockCapability<T, C> capability, ServerLevel level, BlockPos pos, C context) Creates a new cache instance and registers it to the level.static <T,
C> BlockCapabilityCache <T, C> BlockCapabilityCache.create
(BlockCapability<T, C> capability, ServerLevel level, BlockPos pos, C context, BooleanSupplier isValid, Runnable invalidationListener) Creates a new cache instance with an invalidation listener, and registers it to the level.