下面列出了怎么用net.minecraftforge.common.capabilities.CapabilityInject的API类实例代码及写法,或者点击链接到github查看源代码。
@CapabilityInject(IBaublesItemHandler.class)
public static <T> void initBaubles(Capability<T> capability)
{
SlotItemHandlerBaubles.setBaublesItemValidator(new BaublesItemValidator());
ContainerInventorySwapper.setBaublesInvProvider(new BaublesInvProvider());
}