publicstaticIRecipeaddRecipe(RegistryEvent.Register<IRecipe>event,booleancreateBookRecipeRegistry,StringrecipeName,IReciperecipe){ recipe.setRegistryName(newResourceLocation(Constants.EI_MODID,recipeName)); event.getRegistry().register(recipe); if(createBookRecipeRegistry){ BookRecipeRegistry.addRecipe(recipe...
[22:54:01] [main/INFO]: [Quark ASM] Transforming RecipeAddPattern [22:54:01] [main/INFO]: [Quark ASM] Applying Transformation to method (Names [matches, func_77569_a, a] Descriptor (Lnet/minecraft/inventory/InventoryCrafting;Lnet/minecraft/world/World;)Z / (Lafy;Lamu;)Z) [22:54...
importorg.jdom2.Element;//导入方法依赖的package包/类@Overridepublic@NullableCraftingModuleparse(MapModuleContext context, Logger logger, Document doc)throwsInvalidXMLException{ Set<Recipe> customRecipes =newHashSet<>(); Set<MaterialPattern> disabledRecipes =newHashSet<>();for(Element elCrafting : doc...
"tag.block.c.hidden_from_recipe_viewers": "Hidden From Recipe Viewers", "tag.block.c.ores": "Ores", "tag.block.c.ores.netherite_scrap": "Netherite Scrap Ores", "tag.block.c.ores.quartz": "Quartz Ores", "tag.block.c.player_workstations.crafting_tables": "Crafting Tables", "tag....
cmp.setString(TAG_ENCHANTS, enchStr); } 代码示例来源:origin: Vazkii/Quark public static void runConsumers() { List<ResourceLocation> recipeList = new ArrayList(CraftingManager.REGISTRY.getKeys()); for(ResourceLocation res : recipeList) { IRecipe recipe = CraftingManager.REGISTRY.getObject(res)...
One simple change: a new crafting recipe for nametags. In Bedrock Edition, mobs can despawn very easily if very specific conditions are not met. A Name Tag is a great way to stop this from happening. However, nametags are quite uncommon and difficult to come across. This add-on adds a...
.setRegistryName(Crafting.mkRL("Auto: Coloring " + type.getName() + " with " + color.getUnlocalizedName())); if (color != EnumDyeColor.WHITE) { registry.register(new ShapedOreRecipe(null, new ItemStack(type.getBlock(), 8, color.getMetadata()), "GGG", "CGG", "GGG", 'G', ne...
本文整理了Java中net.minecraft.item.crafting.IRecipe.getRegistryName()方法的一些代码示例,展示了IRecipe.getRegistryName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IRecipe.getRegistryName()方法的具体详情如...