mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-06-24 05:15:34 +00:00
- Replace dbghelp with raw_pdb library for cross-platform PDB symbol resolution - Add main menu branding overlay via C4JRender::Present hook - Add creative inventory item injection from mods - Add file-based logging (LogUtil) alongside console output - Fix mod discovery with custom AssemblyLoadContext for proper type identity - Add file dialog for game path selection in launcher - Add CreativeTab enum and block/item creative tab assignment - Unify build output to single ModLoader/build directory
21 lines
761 B
C#
21 lines
761 B
C#
namespace LegacyForge.API.Item;
|
|
|
|
/// <summary>
|
|
/// Fluent builder for defining item properties.
|
|
/// </summary>
|
|
public class ItemProperties
|
|
{
|
|
internal int MaxStackSizeValue = 64;
|
|
internal int MaxDamageValue = 0;
|
|
internal CreativeTab CreativeTabValue = CreativeTab.None;
|
|
|
|
public ItemProperties MaxStackSize(int size) { MaxStackSizeValue = size; return this; }
|
|
|
|
/// <summary>
|
|
/// Set max damage for a tool/armor item. Setting this to a positive value
|
|
/// makes the item damageable with a durability bar.
|
|
/// </summary>
|
|
public ItemProperties MaxDamage(int damage) { MaxDamageValue = damage; MaxStackSizeValue = 1; return this; }
|
|
public ItemProperties InCreativeTab(CreativeTab tab) { CreativeTabValue = tab; return this; }
|
|
}
|