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:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user