| Modifier and Type | Field and Description |
|---|---|
float |
chance |
boolean |
enchanted |
int |
fortuneLevel |
net.minecraft.item.ItemStack |
item |
int |
maxDrop |
int |
minDrop |
net.minecraft.item.ItemStack |
smeltedItem |
| Constructor and Description |
|---|
LootDrop(net.minecraft.item.Item item,
net.minecraft.nbt.CompoundNBT tag,
int minDrop,
int maxDrop,
Conditional... conditionals) |
LootDrop(net.minecraft.item.Item item,
net.minecraft.nbt.CompoundNBT tag,
int minDrop,
int maxDrop,
float chance,
Conditional... conditionals) |
LootDrop(net.minecraft.item.Item item,
float chance,
net.minecraft.loot.conditions.ILootCondition[] lootConditions,
net.minecraft.loot.functions.ILootFunction... lootFunctions) |
LootDrop(net.minecraft.item.Item item,
float chance,
net.minecraft.loot.functions.ILootFunction... lootFunctions) |
LootDrop(net.minecraft.item.Item item,
int minDrop,
int maxDrop,
Conditional... conditionals) |
LootDrop(net.minecraft.item.Item item,
int minDrop,
int maxDrop,
float chance,
Conditional... conditionals) |
LootDrop(net.minecraft.item.ItemStack item) |
LootDrop(net.minecraft.item.ItemStack item,
float chance) |
LootDrop(net.minecraft.item.ItemStack item,
float chance,
int fortuneLevel) |
LootDrop(net.minecraft.item.ItemStack item,
int minDrop,
int maxDrop,
Conditional... conditionals) |
LootDrop(net.minecraft.item.ItemStack item,
int minDrop,
int maxDrop,
float chance,
Conditional... conditionals) |
LootDrop(net.minecraft.item.ItemStack item,
int minDrop,
int maxDrop,
float chance,
int fortuneLevel,
Conditional... conditionals) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConditional(Conditional conditional) |
void |
addConditionals(java.util.List<Conditional> conditionals) |
LootDrop |
addLootCondition(net.minecraft.loot.conditions.ILootCondition condition) |
LootDrop |
addLootConditions(java.util.Collection<net.minecraft.loot.conditions.ILootCondition> lootFunctions) |
LootDrop |
addLootConditions(net.minecraft.loot.conditions.ILootCondition[] lootFunctions) |
LootDrop |
addLootFunction(net.minecraft.loot.functions.ILootFunction lootFunction) |
LootDrop |
addLootFunctions(java.util.Collection<net.minecraft.loot.functions.ILootFunction> lootFunctions) |
LootDrop |
addLootFunctions(net.minecraft.loot.functions.ILootFunction[] lootFunctions) |
boolean |
canBeCooked() |
java.lang.String |
chanceString() |
int |
compareTo(LootDrop o) |
java.util.List<net.minecraft.item.ItemStack> |
getDrops() |
float |
getSortIndex() |
java.util.List<net.minecraft.util.text.ITextComponent> |
getTooltipText() |
java.util.List<net.minecraft.util.text.ITextComponent> |
getTooltipText(boolean smelted) |
java.lang.String |
toString() |
net.minecraft.util.text.StringTextComponent |
toStringTextComponent() |
public int minDrop
public int maxDrop
public net.minecraft.item.ItemStack item
public net.minecraft.item.ItemStack smeltedItem
public float chance
public int fortuneLevel
public boolean enchanted
public LootDrop(net.minecraft.item.ItemStack item)
public LootDrop(net.minecraft.item.ItemStack item,
float chance)
public LootDrop(net.minecraft.item.ItemStack item,
float chance,
int fortuneLevel)
item - the dropped ItemStackchance - chance of drop, can be above 1 to indicate more than 1 dropsfortuneLevel - the fortune level needed for these resultspublic LootDrop(net.minecraft.item.ItemStack item,
int minDrop,
int maxDrop,
Conditional... conditionals)
item - The dropped ItemStack (chance for drop will be 100%)minDrop - the maximum amount droppedmaxDrop - the minimum amount droppedconditionals - a list of conditionals for this droppublic LootDrop(net.minecraft.item.ItemStack item,
int minDrop,
int maxDrop,
float chance,
int fortuneLevel,
Conditional... conditionals)
item - The dropped ItemStackminDrop - the maximum amount droppedmaxDrop - the minimum amount droppedchance - the chance the item gets droppedfortuneLevel - the level of fortune neededconditionals - a list of conditionals for this droppublic LootDrop(net.minecraft.item.Item item,
int minDrop,
int maxDrop,
Conditional... conditionals)
item - The dropped Item (chance for drop will be 100% and the itemDamage will be default)minDrop - the maximum amount droppedmaxDrop - the minimum amount droppedconditionals - a list of conditionals for this droppublic LootDrop(net.minecraft.item.Item item,
net.minecraft.nbt.CompoundNBT tag,
int minDrop,
int maxDrop,
Conditional... conditionals)
item - The dropped Item (chance for drop will be 100%)tag - CompoundNBT of the ItemminDrop - the maximum amount droppedmaxDrop - the minimum amount droppedconditionals - a list of conditionals for this droppublic LootDrop(net.minecraft.item.Item item,
int minDrop,
int maxDrop,
float chance,
Conditional... conditionals)
item - The dropped ItemminDrop - the maximum amount droppedmaxDrop - the minimum amount droppedchance - the chance the item gets droppedconditionals - a list of conditionals for this droppublic LootDrop(net.minecraft.item.Item item,
net.minecraft.nbt.CompoundNBT tag,
int minDrop,
int maxDrop,
float chance,
Conditional... conditionals)
item - The dropped Itemtag - CompoundNBT of the ItemminDrop - the maximum amount droppedmaxDrop - the minimum amount droppedchance - the chance the item gets droppedconditionals - a list of conditionals for this droppublic LootDrop(net.minecraft.item.ItemStack item,
int minDrop,
int maxDrop,
float chance,
Conditional... conditionals)
item - The dropped ItemStackminDrop - the maximum amount droppedmaxDrop - the minimum amount droppedchance - the chance the item gets droppedconditionals - a list of conditionals for this droppublic LootDrop(net.minecraft.item.Item item,
float chance,
net.minecraft.loot.functions.ILootFunction... lootFunctions)
public LootDrop(net.minecraft.item.Item item,
float chance,
net.minecraft.loot.conditions.ILootCondition[] lootConditions,
net.minecraft.loot.functions.ILootFunction... lootFunctions)
public LootDrop addLootConditions(net.minecraft.loot.conditions.ILootCondition[] lootFunctions)
public LootDrop addLootConditions(java.util.Collection<net.minecraft.loot.conditions.ILootCondition> lootFunctions)
public LootDrop addLootCondition(net.minecraft.loot.conditions.ILootCondition condition)
public LootDrop addLootFunctions(net.minecraft.loot.functions.ILootFunction[] lootFunctions)
public LootDrop addLootFunctions(java.util.Collection<net.minecraft.loot.functions.ILootFunction> lootFunctions)
public LootDrop addLootFunction(net.minecraft.loot.functions.ILootFunction lootFunction)
public boolean canBeCooked()
public java.util.List<net.minecraft.item.ItemStack> getDrops()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String chanceString()
public java.util.List<net.minecraft.util.text.ITextComponent> getTooltipText()
public java.util.List<net.minecraft.util.text.ITextComponent> getTooltipText(boolean smelted)
public void addConditional(Conditional conditional)
public void addConditionals(java.util.List<Conditional> conditionals)
public float getSortIndex()
public net.minecraft.util.text.StringTextComponent toStringTextComponent()