Setter/Getter/MethodMethod NamesNamesInput/Output
Setter/Getter/Method
Getter
Method Names
getDropChance();
Names
dropChance();
Input/Output
Returns a Float
Setter/Getter/Method
Setter
Method Names
setDropChance(float dropChance);
Names
dropChance(float dropChance);
Input/Output
Takes a Float
Setter/Getter/Method
Getter
Method Names
getFortuneLevel();
Names
fortuneLevel();
Input/Output
Returns an Integer
Setter/Getter/Method
Getter
Method Names
getDrops();
Names
drops();
Input/Output
Returns a List of IItemStack
Setter/Getter/Method
Setter
Method Names
setDrops(List drops);
Names
drops(List drops);
Input/Output
Takes an List of IItemStack
Setter/Getter/Method
Method
Method Names
addItem(IItemStack itemStack);
Names
addItem(IItemStack itemStack);
Input/Output
Takes an IItemStack
Setter/Getter/Method
Getter
Method Names
isSilkTouch();
Names
silkTouch();
Input/Output
Returns a Boolean
Setter/Getter/Method
Getter
Method Names
isPlayer();
Names
isPlayer();
Input/Output
Returns a Boolean
Setter/Getter/Method
Getter
Method Names
getPlayer();
Names
player();
Input/Output
Returns a IPlayer
Copy
var test = mods.compatskills.TraitCreator.createTrait("test", 2, 3, "compatskills:banana", 1, "compatskills:banana|5");

test.onBlockDrops = function(event as crafttweaker.event.BlockHarvestDropsEvent) {
    ...
};