You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Creates a MapCodec that serializes and deserializes WorkbenchRecipe instances bound to the given recipe type and serializer.
46
-
*
47
-
* The codec encodes the recipe's ingredients, results, and cookTime (default 200) and constructs a WorkbenchRecipe using the provided type and serializer.
48
-
*
49
-
* @param type the RecipeType associated with the encoded WorkbenchRecipe
50
-
* @param serializer the RecipeSerializer used to (de)serialize the WorkbenchRecipe
51
-
* @return a MapCodec for WorkbenchRecipe that reads/writes ingredients, results, and cookTime and produces WorkbenchRecipe instances tied to the given type and serializer
// * Creates a MapCodec that serializes and deserializes WorkbenchRecipe instances bound to the given recipe type and serializer.
48
+
// *
49
+
// * The codec encodes the recipe's ingredients, results, and cookTime (default 200) and constructs a WorkbenchRecipe using the provided type and serializer.
50
+
// *
51
+
// * @param type the RecipeType associated with the encoded WorkbenchRecipe
52
+
// * @param serializer the RecipeSerializer used to (de)serialize the WorkbenchRecipe
53
+
// * @return a MapCodec for WorkbenchRecipe that reads/writes ingredients, results, and cookTime and produces WorkbenchRecipe instances tied to the given type and serializer
54
+
// */
55
+
// public static final MapCodec<WorkbenchRecipe> CODEC(RecipeType<WorkbenchRecipe> type, RecipeSerializer<WorkbenchRecipe> serializer) {
// AbstractWorkbench logic ensures only the Master block gets the entity.
113
-
// We override it here to point specifically to our Furnace entity.
114
-
returnsuper.newBlockEntity(pos, state);
115
-
}
116
-
117
-
/**
118
-
* Compute the master (base) block position for this block based on its state.
119
-
*
120
-
* @param state the block state of the current block
121
-
* @param pos the position of the current block
122
-
* @return the position of the master (base) block: if the block is the upper half, the block below is used; if the block's type is `RIGHT`, the position is offset one block counterclockwise from its facing direction; otherwise the original position
0 commit comments