类 ServerRecipeBook
- java.lang.Object
-
- net.minecraft.recipe.book.RecipeBook
-
- net.minecraft.server.network.ServerRecipeBook
-
public class ServerRecipeBook extends RecipeBook
- Mappings:
Namespace Name official afbintermediary net/minecraft/class_3441named net/minecraft/server/network/ServerRecipeBook
-
-
字段概要
字段 修饰符和类型 字段 说明 static Stringfield_29820private static LoggerLOGGER-
从类继承的字段 net.minecraft.recipe.book.RecipeBook
recipes, toBeDisplayed
-
-
构造器概要
构造器 构造器 说明 ServerRecipeBook()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 private voidhandleList(ListTag list, Consumer<Recipe<?>> handler, RecipeManager recipeManager)intlockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player)voidreadNbt(CompoundTag nbt, RecipeManager recipeManager)voidsendInitRecipesPacket(ServerPlayerEntity player)private voidsendUnlockRecipesPacket(UnlockRecipesS2CPacket.Action action, ServerPlayerEntity player, List<Identifier> recipeIds)CompoundTagtoNbt()intunlockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player)-
从类继承的方法 net.minecraft.recipe.book.RecipeBook
add, add, contains, contains, copyFrom, display, display, getOptions, isFilteringCraftable, isFilteringCraftable, isGuiOpen, onRecipeDisplayed, remove, remove, setCategoryOptions, setFilteringCraftable, setGuiOpen, setOptions, shouldDisplay
-
-
-
-
字段详细资料
-
field_29820
public static final String field_29820
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLafb;c:Ljava/lang/String;intermediary field_29820Lnet/minecraft/class_3441;field_29820:Ljava/lang/String;named field_29820Lnet/minecraft/server/network/ServerRecipeBook;field_29820:Ljava/lang/String;
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official dLafb;d:Lorg/apache/logging/log4j/Logger;intermediary field_15303Lnet/minecraft/class_3441;field_15303:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/server/network/ServerRecipeBook;LOGGER:Lorg/apache/logging/log4j/Logger;
-
-
方法详细资料
-
unlockRecipes
public int unlockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player)
- Mappings:
Namespace Name Mixin selector official aLafb;a(Ljava/util/Collection;Labk;)Iintermediary method_14903Lnet/minecraft/class_3441;method_14903(Ljava/util/Collection;Lnet/minecraft/class_3222;)Inamed unlockRecipesLnet/minecraft/server/network/ServerRecipeBook;unlockRecipes(Ljava/util/Collection;Lnet/minecraft/server/network/ServerPlayerEntity;)I
-
lockRecipes
public int lockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player)
- Mappings:
Namespace Name Mixin selector official bLafb;b(Ljava/util/Collection;Labk;)Iintermediary method_14900Lnet/minecraft/class_3441;method_14900(Ljava/util/Collection;Lnet/minecraft/class_3222;)Inamed lockRecipesLnet/minecraft/server/network/ServerRecipeBook;lockRecipes(Ljava/util/Collection;Lnet/minecraft/server/network/ServerPlayerEntity;)I
-
sendUnlockRecipesPacket
private void sendUnlockRecipesPacket(UnlockRecipesS2CPacket.Action action, ServerPlayerEntity player, List<Identifier> recipeIds)
- Mappings:
Namespace Name Mixin selector official aLafb;a(Lrl$a;Labk;Ljava/util/List;)Vintermediary method_14899Lnet/minecraft/class_3441;method_14899(Lnet/minecraft/class_2713$class_2714;Lnet/minecraft/class_3222;Ljava/util/List;)Vnamed sendUnlockRecipesPacketLnet/minecraft/server/network/ServerRecipeBook;sendUnlockRecipesPacket(Lnet/minecraft/network/packet/s2c/play/UnlockRecipesS2CPacket$Action;Lnet/minecraft/server/network/ServerPlayerEntity;Ljava/util/List;)V
-
toNbt
public CompoundTag toNbt()
- Mappings:
Namespace Name Mixin selector official bLafb;b()Lmv;intermediary method_14902Lnet/minecraft/class_3441;method_14902()Lnet/minecraft/class_2487;named toNbtLnet/minecraft/server/network/ServerRecipeBook;toNbt()Lnet/minecraft/nbt/CompoundTag;
-
readNbt
public void readNbt(CompoundTag nbt, RecipeManager recipeManager)
- Mappings:
Namespace Name Mixin selector official aLafb;a(Lmv;Lbsk;)Vintermediary method_14901Lnet/minecraft/class_3441;method_14901(Lnet/minecraft/class_2487;Lnet/minecraft/class_1863;)Vnamed readNbtLnet/minecraft/server/network/ServerRecipeBook;readNbt(Lnet/minecraft/nbt/CompoundTag;Lnet/minecraft/recipe/RecipeManager;)V
-
handleList
private void handleList(ListTag list, Consumer<Recipe<?>> handler, RecipeManager recipeManager)
- Mappings:
Namespace Name Mixin selector official aLafb;a(Lnb;Ljava/util/function/Consumer;Lbsk;)Vintermediary method_20732Lnet/minecraft/class_3441;method_20732(Lnet/minecraft/class_2499;Ljava/util/function/Consumer;Lnet/minecraft/class_1863;)Vnamed handleListLnet/minecraft/server/network/ServerRecipeBook;handleList(Lnet/minecraft/nbt/ListTag;Ljava/util/function/Consumer;Lnet/minecraft/recipe/RecipeManager;)V
-
sendInitRecipesPacket
public void sendInitRecipesPacket(ServerPlayerEntity player)
- Mappings:
Namespace Name Mixin selector official aLafb;a(Labk;)Vintermediary method_14904Lnet/minecraft/class_3441;method_14904(Lnet/minecraft/class_3222;)Vnamed sendInitRecipesPacketLnet/minecraft/server/network/ServerRecipeBook;sendInitRecipesPacket(Lnet/minecraft/server/network/ServerPlayerEntity;)V
-
-