Package net.ixdarklord.coolcatcore.api.handler
package net.ixdarklord.coolcatcore.api.handler
-
ClassDescriptionOne position's handler, looked up once and kept until it may have changed: when the block state there changes, when the block entity is removed or replaced (chunk unloads included), or when
HandlerType.invalidate(Level, BlockPos)is called for the position.The handlers one holder hands out, by type and side.An entity or block entity that hands out its own handlers;HandlerType.find(Level, BlockPos, Direction)asks it before any registered provider.HandlerType<T>A kind of handler blocks, entities and items can hand out: something other code works with without knowing the holder (an inventory, an energy buffer, a fluid tank...).HandlerType.BlockEntityProvider<BE extends net.minecraft.world.level.block.entity.BlockEntity, T>HandlerType.EntityProvider<E extends net.minecraft.world.entity.Entity, T>The handler types CoolCatLib provides.An item that hands out handlers for its stacks;HandlerType.find(ItemStack)asks it before any registered provider.