extends 可解锁内容
field | type | default | note |
---|---|---|---|
color | Color | #000000 | 在(反向)分类器 ![]() ![]() ![]() |
explosiveness | float | 0.0 | 爆炸性, 也和 屏幕抖动/受到的伤害 有关 |
flammability | float | 0.0 | 燃烧性, 也和 火焰生成/发电机功效 有关 |
radioactivity | float | 辐射性, 只和 裂变发电机(如 rtg ![]() 不和核能反应堆爆炸(如 钍反应堆 ![]() | |
charge | float | 0.0 | 放电性, 只和 储存其的方块爆炸后的创造闪电有关 |
hardness | int | 0 | 钻探难度, 任何大于hardness 的钻头均可钻探 |
cost | float | 1.0 | 方块建造耗时(全部物品耗时总和 * 方块的buildCostMultiplier ) |
lowPriority | boolean | false | 若为true , 钻探优先级最低(如沙子 ![]() ![]() ![]() ![]() |
public Item(String name, Color color){ super(name); this.color = color; } public Item(String name){ this(name, new Color(Color.black)); }
@Override public void setStats(){ stats.addPercent(Stat.explosiveness, explosiveness); stats.addPercent(Stat.flammability, flammability); stats.addPercent(Stat.radioactivity, radioactivity); stats.addPercent(Stat.charge, charge);