XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

MyDimension-Lord

【我的世界】我的维度附属模组:维度之主

公开
关注 0 Fork 0 Star 0
UTF-8
package com.xfestudio.mydimensionlord.equipment;

/** Shared balance and asset names; slot order is helmet, chestplate, leggings, boots. */
public enum GearSet {
    LORD("lord", new int[]{6, 18, 14, 6}, 60, 8.0F, 0.12F);

    private final String id;
    private final int[] protection;
    private final int durability;
    private final float toughness;
    private final float knockback;
    GearSet(String id, int[] protection, int durability, float toughness, float knockback) {
        this.id = id; this.protection = protection; this.durability = durability;
        this.toughness = toughness; this.knockback = knockback;
    }
    public String id() { return id; }
    public String repairMaterial() { return "lord_core"; }
    public int protection(int slot) { return protection[slot]; }
    public int totalProtection() { return java.util.Arrays.stream(protection).sum(); }
    public int durabilityMultiplier() { return durability; }
    public int durability(int slot) { return new int[]{11, 16, 15, 13}[slot] * durability; }
    public float toughness() { return toughness; }
    public float knockbackResistance() { return knockback; }
}