📄 cityingredientfactory.java
字号:
package org.su.demo.forge.factory;
import org.su.demo.forge.items.Ingredient.Ore;
import org.su.demo.forge.items.Ingredient.Potion;
import org.su.demo.forge.items.Ingredient.Primal;
/*
* 抽象工厂接口,负责创建原材料
* 运用抽象工厂模式
* 原材料包括 矿石类:Ore
* 源生类:Primal
* 药水类:Potion
*/
public interface CityIngredientFactory {
public Primal createPrimal();
public Ore createOre();
public Potion createPotion();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -