Setter/Getter/MethodMethod NamesNamesInput/Output
Setter/Getter/Method
Getter
Method Names
getDamageSource();
Names
damageSource
Input/Output
Returns an IDamageSource
Setter/Getter/Method
Method
Method Names
addItem(IItemStack item);
Names
addItem(IItemStack item);
Input/Output
Takes an IItemStack
Setter/Getter/Method
Method
Method Names
addItem(IEntityItem entityItem);
Names
addItem(IEntityItem entityItem);
Input/Output
Takes an IEntityItem
Setter/Getter/Method
Getter
Method Names
getLootingLevel();
Names
lootingLevel
Input/Output
Returns an Integer
Setter/Getter/Method
Getter
Method Names
getIsRecentlyHit();
Names
isRecentlyHit
Input/Output
Returns an Boolean
Setter/Getter/Method
Getter
Method Names
getDrops();
Names
drops();
Input/Output
Returns an List of IEntityItem's
Setter/Getter/Method
Setter
Method Names
setDrops();
Names
drops(List drops);
Input/Output
Takes an List of IEntityItem's
Copy
var test = mods.compatskills.TraitCreator.createTrait("test", 2, 3, "compatskills:banana", 1, "compatskills:banana|5");

test.onMobDrops = function(event as crafttweaker.event.EntityLivingDeathDropsEvent) {
    ...
};