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
* Registers three mod-specific recipes with the recipe exporter:
51
+
* a campfire pork cooking recipe producing cooked porkchop (unlocked by having a porkchop, saved as "campfire_pork_cooking"), a furnace pork cooking recipe producing an acacia boat (unlocked by having a porkchop, saved as "furnace_pork_cooking"), and a workbench recipe that crafts a chest from 5 logs and 10 sticks (unlocked by having logs, saved as "workbench_wood_chest").
Copy file name to clipboardExpand all lines: src/main/java/com/tcm/MineTale/block/workbenches/WorkbenchWorkbench.java
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -51,9 +51,10 @@ public WorkbenchWorkbench(Properties properties, Supplier<BlockEntityType<? exte
51
51
}
52
52
53
53
/**
54
-
* Supplies a ticker that updates WorkbenchWorkbench block entities each tick.
54
+
* Provides a ticker for workbench block entities when the supplied block entity type matches this block's entity type.
55
55
*
56
-
* @return a BlockEntityTicker that invokes AbstractWorkbenchEntity.tick for matching WorkbenchWorkbenchEntity instances, `null` if the supplied block entity type does not match
56
+
* @param type the block entity type to match against this block's workbench entity type
57
+
* @return a BlockEntityTicker that updates matching workbench block entities, or {@code null} if the types do not match
57
58
*/
58
59
@Nullable
59
60
@Override
@@ -87,9 +88,7 @@ public RenderShape getRenderShape(BlockState state) {
0 commit comments