File tree Expand file tree Collapse file tree
src/main/java/me/thehandsomeyoni/persistentdataapi/manager Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 */
3232public class DataRegistry {
3333 private Player player ;
34- private ItemStack item ;
34+ private ItemStack item = null ;
3535 private final PersistentDataType <byte [], byte []> dataType = PersistentDataType .BYTE_ARRAY ;
3636 private ItemMeta meta ;
3737 private Block block ;
@@ -51,11 +51,11 @@ public DataRegistry(Player player) throws NullPointerException {
5151
5252 /**
5353 * Initializes the DataRegistry of an item.
54- * @param item The item that the data is stored in.
54+ * @param itemStack The item that the data is stored in.
5555 * @throws NullPointerException If the item is null.
5656 */
57- public DataRegistry (ItemStack item ) throws NullPointerException {
58- this .item = item ;
57+ public DataRegistry (ItemStack itemStack ) throws NullPointerException {
58+ this .item = itemStack ;
5959 this .meta = this .item .getItemMeta ();
6060 assert meta != null ;
6161 this .dataContainer = meta .getPersistentDataContainer ();
You can’t perform that action at this time.
0 commit comments