Javadoc comment

This commit is contained in:
paulevsGitch 2021-03-21 06:44:50 +03:00
parent 12447f783f
commit 22517da433

View file

@ -41,6 +41,12 @@ public class RecipeManagerMixin {
return null; return null;
} }
/**
* @author paulevs
* @reason Remove conflicts with vanilla tags
* Change recipe order to show mod recipes first, helps when block have vanilla tag
* (example - mod stone with vanilla tags and furnace from that stone)
*/
@Overwrite @Overwrite
public <C extends Inventory, T extends Recipe<C>> Optional<T> getFirstMatch(RecipeType<T> type, C inventory, World world) { public <C extends Inventory, T extends Recipe<C>> Optional<T> getFirstMatch(RecipeType<T> type, C inventory, World world) {
Collection<Recipe<C>> values = getAllOfType(type).values(); Collection<Recipe<C>> values = getAllOfType(type).values();