Faucet/Minecraft.Client/ModItem.h
Soda Can 438e5972bd why
2026-03-11 16:01:41 +11:00

18 lines
511 B
C++

#pragma once
#include "Item.h"
// ============================================================================
// ModItem
// Item's constructor is protected, and setMaxDamage is protected.
// This thin subclass exposes both for the registry.
// ============================================================================
class ModItem : public Item
{
public:
explicit ModItem(int id) : Item(id) {}
// Expose protected setMaxDamage
Item* pubSetMaxDamage(int dmg) { return setMaxDamage(dmg); }
};