-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 实现 FootageAttr#toNBT 方法,初步实现锻造结果处理 * patch: 实现锻造物品的属性计算 * patch: 实现锻造物品attrLore更新 * patch: 修复吞素材的问题
- Loading branch information
Showing
18 changed files
with
557 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package RcRPG.RPG; | ||
|
||
import RcRPG.AttrManager.FootageAttr; | ||
import cn.nukkit.item.Item; | ||
import cn.nukkit.nbt.tag.CompoundTag; | ||
|
||
import java.util.Map; | ||
|
||
public class ForgingItem { | ||
public static boolean isForgingItem(Item item) { | ||
if (item.getNamedTag() == null) { | ||
return false; | ||
} | ||
return item.getNamedTag().containsCompound("attr"); | ||
} | ||
|
||
public static Map<String, float[]> fromNBT(CompoundTag compoundTag) { | ||
return FootageAttr.fromNBT(compoundTag); | ||
} | ||
} |
Oops, something went wrong.