本文整理汇总了Java中mezz.jei.api.ISubtypeRegistry类的典型用法代码示例。如果您正苦于以下问题:Java ISubtypeRegistry类的具体用法?Java ISubtypeRegistry怎么用?Java ISubtypeRegistry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ISubtypeRegistry类属于mezz.jei.api包,在下文中一共展示了ISubtypeRegistry类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerItemSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
@Override
public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry) {
this.subtypeRegistry = subtypeRegistry;
List<Item> nbtSubtypeItems = new ArrayList<Item>();
if (ModItems.schematic != null) nbtSubtypeItems.add(ModItems.schematic);
if (ModItems.cast != null) nbtSubtypeItems.add(ModItems.cast);
if (ModItems.axe != null) nbtSubtypeItems.add(ModItems.axe);
if (ModItems.pickaxe != null) nbtSubtypeItems.add(ModItems.pickaxe);
if (ModItems.shovel != null) nbtSubtypeItems.add(ModItems.shovel);
if (ModItems.hoe != null) nbtSubtypeItems.add(ModItems.hoe);
if (ModItems.handpick != null) nbtSubtypeItems.add(ModItems.handpick);
if (ModItems.hammer != null) nbtSubtypeItems.add(ModItems.hammer);
if (ModItems.sword != null) nbtSubtypeItems.add(ModItems.sword);
if (ModItems.dagger != null) nbtSubtypeItems.add(ModItems.dagger);
if (ModItems.mace != null) nbtSubtypeItems.add(ModItems.mace);
subtypeRegistry.useNbtForSubtypes(
nbtSubtypeItems.toArray(new Item[nbtSubtypeItems.size()])
);
}
示例2: registerItemSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
@Override
@SuppressWarnings("ConstantConditions")
public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry)
{
subtypeRegistry.registerNbtInterpreter(Item.getItemFromBlock(RFUContent.blockCapacitor), new ISubtypeRegistry.ISubtypeInterpreter()
{
@Nullable
@Override
public String getSubtypeInfo(ItemStack stack)
{
return Integer.toString(stack.getMetadata());
}
});
subtypeRegistry.registerNbtInterpreter(RFUContent.itemMaterial, new MetaDataInterpreter());
}
示例3: registerItemSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
@Override
public void registerItemSubtypes(ISubtypeRegistry registry) {
Geomastery.LOG.info("JEI: Registering decayable item subtypes");
ISubtypeInterpreter typer = (s) ->
s.getCapability(GeoCaps.CAP_DECAY, null)
.isRot(Geomastery.proxy.getClientWorld()) ? "rotten" : "fresh";
GeoItems.ITEMS.stream().filter((i) -> i instanceof ItemEdibleDecayable
|| i instanceof ItemCarcassDecayable)
.forEach((i) -> registry.registerSubtypeInterpreter(i, typer));
}
示例4: registerItemSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
@Override
public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry) {
subtypeRegistry.registerSubtypeInterpreter(AgriItems.getInstance().AGRI_SEED, (stack) -> {
Optional<AgriSeed> seed = AgriApi.getSeedRegistry().valueOf(stack);
return seed.map(s -> s.getPlant().getId()).orElse("generic");
});
}
示例5: registerSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
public static void registerSubtypes(ISubtypeRegistry subtypeRegistry) {
DarkSteelUpgradeSubtypeInterpreter dsusi = new DarkSteelUpgradeSubtypeInterpreter();
Set<Item> items = new HashSet<Item>();
for (UpgradePath rec : allRecipes) {
items.add(rec.getInput().getItem());
items.add(rec.getOutput().getItem());
}
for (Item item : items) {
if (item != null) {
subtypeRegistry.registerSubtypeInterpreter(item, dsusi);
}
}
}
示例6: registerItemSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
@Override
public void registerItemSubtypes(ISubtypeRegistry registry) {
}
示例7: registerItemSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
@Override
public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry) {}
示例8: registerItemSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
@Override
public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry)
{
}
示例9: registerItemSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
@Override
public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry)
{
}
示例10: registerItemSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
@Override
public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry)
{
}
示例11: registerItemSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
@Override
public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry) {
}
示例12: registerItemSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
@Override
public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry) {
//probably not needed
}
示例13: registerItemSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
@Override
public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry){}
示例14: registerItemSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
@Override
public void registerItemSubtypes(@Nonnull ISubtypeRegistry subtypeRegistry) {
DarkSteelUpgradeRecipeCategory.registerSubtypes(subtypeRegistry);
MobContainerSubtypeInterpreter.registerSubtypes(subtypeRegistry);
}
示例15: registerSubtypes
import mezz.jei.api.ISubtypeRegistry; //导入依赖的package包/类
public static void registerSubtypes(ISubtypeRegistry subtypeRegistry) {
MobContainerSubtypeInterpreter dsusi = new MobContainerSubtypeInterpreter();
subtypeRegistry.registerSubtypeInterpreter(ModObject.itemSoulVial.getItemNN(), dsusi);
subtypeRegistry.registerSubtypeInterpreter(ModObject.itemBrokenSpawner.getItemNN(), dsusi);
}