48 default:
return tr(
"Lantern (%1), fuel: %2" ).
54 *delete_block =
false;
68 if ( active !=
nullptr ) {
virtual void SaveAttributes(QDataStream &) const
virtual void UpdateLightRadius()
wearable Wearable() const override
static QString SubName(int sub)
Returns translated substance name.
Illuminator(int sub, int id)
void SaveAttributes(QDataStream &out) const override
virtual bool Get(Block *block, int start=0)
Returns true on success.
void DoRareAction() override
virtual Inventory * HasInventory()
Block * DropAfterDamage(bool *delete_block) override
Should return dropped block.
void Shine(int x, int y, int z, int level)
If init is false, light will not spread from non-invisible blocks.
inner_actions
See Shred::PhysEventsRare() for details.
Provides declaration for class Inventory for freg.
QString FullName() const override
int LightRadius() const override
static Block * NewBlock(int kind, int sub)
Use this to receive a pointer to new not-normal block.
usage_types Use(Block *) override
virtual Active * ActiveBlock()
inner_actions ActInner() override
int ShouldAct() const override
void Break()
Set durability to null.
int DamageKind() const override
Block without special physics and attributes.