code reformat

This commit is contained in:
2024-10-15 20:40:45 +02:00
parent 796bee9696
commit 03c26bc2f9
18 changed files with 120 additions and 96 deletions

View File

@@ -33,6 +33,7 @@ public class PixelBlockItem {
return owner != null;
}
}
public static @Nullable BlockInfo getBlockInfo(ItemStack item) {
PersistentDataContainer container = item.getItemMeta().getPersistentDataContainer();
if(!container.has(idProperty)) return null;