9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-26 18:39:20 +00:00

补全craft-remainder所需的消息

This commit is contained in:
XiaoMoMi
2025-10-17 17:54:17 +08:00
parent 15784e5263
commit 700a95f984
26 changed files with 34 additions and 40 deletions

View File

@@ -1,13 +0,0 @@
package net.momirealms.craftengine.core.item.recipe;
public class InvalidRecipeIngredientException extends RuntimeException {
private final String ingredient;
public InvalidRecipeIngredientException(String ingredient) {
this.ingredient = ingredient;
}
public String ingredient() {
return ingredient;
}
}

View File

@@ -33,7 +33,7 @@ public class CraftRemainders {
Key key = Key.withDefaultNamespace(type, Key.DEFAULT_NAMESPACE);
CraftRemainderFactory factory = BuiltInRegistries.CRAFT_REMAINDER_FACTORY.getValue(key);
if (factory == null) {
throw new LocalizedResourceConfigException("warning.config.function.invalid_type", type);
throw new LocalizedResourceConfigException("warning.config.item.settings.craft_remainder.invalid_type", type);
}
return factory.create(map);
}

View File

@@ -27,5 +27,5 @@ public interface Platform {
ParticleType getParticleType(Key name);
<I> void openMerchant(Player player, Component title, List<MerchantOffer<I>> offers);
void openMerchant(Player player, Component title, List<MerchantOffer<?>> offers);
}