-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
193 additions
and
119 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
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.