1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-06 16:33:00 +00:00

Merge branch 'mc-1.19.x' into mc-1.20.x

This commit is contained in:
Jonathan Coates
2023-06-10 09:07:41 +01:00
18 changed files with 93 additions and 131 deletions

View File

@@ -96,13 +96,18 @@ public class InventoryMethods implements GenericPeripheral {
* <p>
* The returned information contains the same information as each item in
* {@link #list}, as well as additional details like the display name
* (`displayName`), item groups (`itemGroups`), which are the creative tabs
* an item will appear under, and item and item durability (`damage`,
* `maxDamage`, `durability`).
* (`displayName`), and item and item durability (`damage`, `maxDamage`, `durability`).
* <p>
* Some items include more information (such as enchantments) - it is
* recommended to print it out using @{textutils.serialize} or in the Lua
* REPL, to explore what is available.
* <p>
* :::info Deprecated fields
* Older versions of CC: Tweaked exposed an {@code itemGroups} field, listing the
* creative tabs an item was available under. This information is no longer available on
* more recent versions of the game, and so this field will always be empty. Do not use this
* field in new code!
* :::
*
* @param inventory The current inventory.
* @param slot The slot to get information about.
@@ -119,10 +124,6 @@ public class InventoryMethods implements GenericPeripheral {
* print(("%s (%s)"):format(item.displayName, item.name))
* print(("Count: %d/%d"):format(item.count, item.maxCount))
*
* for _, group in pairs(item.itemGroups) do
* print(("Group: %s"):format(group.displayName))
* end
*
* if item.damage then
* print(("Damage: %d/%d"):format(item.damage, item.maxDamage))
* end

View File

@@ -257,7 +257,6 @@ public class PlatformHelperImpl implements PlatformHelper {
return ForgeHooks.getBurnTime(stack, null);
}
@Override
public CreativeModeTab.Builder newCreativeModeTab() {
return CreativeModeTab.builder();