Add damage getters to ItemGroup
This commit is contained in:
parent
fece7532c2
commit
bad85564b1
@ -53,6 +53,14 @@ function ItemGroup:getNBT()
|
|||||||
return self:_getIdentityStack():getNBT()
|
return self:_getIdentityStack():getNBT()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function ItemGroup:getDamage()
|
||||||
|
return self:_getIdentityStack():getDamage()
|
||||||
|
end
|
||||||
|
|
||||||
|
function ItemGroup:getMaxDamage()
|
||||||
|
return self:_getIdentityStack():getMaxDamage()
|
||||||
|
end
|
||||||
|
|
||||||
function ItemGroup:_getIdentityStack()
|
function ItemGroup:_getIdentityStack()
|
||||||
return self[1]
|
return self[1]
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user