private void loadAttributes(boolean createIfNotExists) {
        if (this.attributes == null) {
            NbtTagCompound nbt = NbtFactory.readFromItemStack(this.stack);
            this.attributes = nbt.getList("AttributeModifiers");

            if (createIfNotExists && this.attributes == null) {
                NbtTagList list = NbtFactory.toList(NbtFactory.createTag(NbtType.TAG_LIST));
                nbt.put("AttributeModifiers", this.attributes = list);
            }
        }
    }