Package net.minecraft.data.recipes.packs
Part 1/1
VanillaRecipeProvider
- Full name:
net.minecraft.data.recipes.packs.VanillaRecipeProvider - Package:
net.minecraft.data.recipes.packs - Source:
common—net/minecraft/data/recipes/packs/VanillaRecipeProvider.java - Type:
class - Modifiers:
public - Extends:
RecipeProvider
net.minecraft.data.recipes.packs.VanillaRecipeProvider#buildRecipes()
- Origin:
common - Source:
net/minecraft/data/recipes/packs/VanillaRecipeProvider.java:71 - Modifiers:
protected - Return:
void
คืออะไร
สร้าง Recipes
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: includeRootAdvancement(), generateForEnabledBlockFamilies(), of(), planksFromLog(), planksFromLogs(), woodFromLogs(), woodenBoat(), colorBlockWithDye(). สร้างออบเจ็กต์: InventoryChangeTrigger.TriggerInstance, InventoryChangeTrigger.TriggerInstance.Slots.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.data.recipes.packs.VanillaRecipeProvider#smithingTrims()
- Origin:
common - Source:
net/minecraft/data/recipes/packs/VanillaRecipeProvider.java:2757 - Modifiers:
public static - Return:
Stream<VanillaRecipeProvider.TrimTemplate>
คืออะไร
ดำเนินการ smithingTrims ตาม implementation ของ VanillaRecipeProvider
ทำงานยังไง
เรียกต่อ: of(), map(), TrimTemplate(), create(), withDefaultNamespace(), getItemName(). สร้างออบเจ็กต์: VanillaRecipeProvider.TrimTemplate.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
VanillaRecipeProvider$Runner
- Full name:
net.minecraft.data.recipes.packs.VanillaRecipeProvider$Runner - Package:
net.minecraft.data.recipes.packs - Source:
common—net/minecraft/data/recipes/packs/VanillaRecipeProvider.java - Type:
class - Modifiers:
public static - Extends:
RecipeProvider.Runner
net.minecraft.data.recipes.packs.VanillaRecipeProvider$Runner#createRecipeProvider(HolderLookup.Provider,RecipeOutput)
- Origin:
common - Source:
net/minecraft/data/recipes/packs/VanillaRecipeProvider.java:2815 - Modifiers:
protected - Return:
RecipeProvider
คืออะไร
สร้าง Recipe Provider
ทำงานยังไง
สร้างออบเจ็กต์: VanillaRecipeProvider. คืนค่า: new VanillaRecipeProvider(provider, recipeOutput).
Parameters
HolderLookup.Provider providerRecipeOutput recipeOutput
ตัวอย่างใช้งาน
HolderLookup.Provider provider = ...;
RecipeOutput recipeOutput = ...;
@Override
protected RecipeProvider createRecipeProvider(HolderLookup.Provider provider, RecipeOutput recipeOutput) {
return super.createRecipeProvider(provider, recipeOutput);
}
net.minecraft.data.recipes.packs.VanillaRecipeProvider$Runner#getName()
- Origin:
common - Source:
net/minecraft/data/recipes/packs/VanillaRecipeProvider.java:2820 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
คืนค่า: "Vanilla Recipes".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.data.recipes.packs.VanillaRecipeProvider$Runner#Runner(PackOutput,CompletableFuture<HolderLookup.Provider>)
- Origin:
common - Source:
net/minecraft/data/recipes/packs/VanillaRecipeProvider.java:2811 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ VanillaRecipeProvider.Runner ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
PackOutput packOutputCompletableFuture<HolderLookup.Provider> completableFuture
ตัวอย่างใช้งาน
PackOutput packOutput = ...;
CompletableFuture<HolderLookup.Provider> completableFuture = ...;
VanillaRecipeProvider.Runner instance = new VanillaRecipeProvider.Runner(packOutput, completableFuture);