Package net.minecraft.loot.condition
Class TableBonusLootCondition
java.lang.Object
net.minecraft.loot.condition.TableBonusLootCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootCondition
,LootContextAware
public class TableBonusLootCondition extends Object implements LootCondition
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TableBonusLootCondition.Serializer
Nested classes/interfaces inherited from interface net.minecraft.loot.condition.LootCondition
LootCondition.Builder
-
Field Summary
Fields Modifier and Type Field Description private float[]
chances
private Enchantment
enchantment
-
Constructor Summary
Constructors Modifier Constructor Description private
TableBonusLootCondition(Enchantment enchantment, float[] chances)
-
Method Summary
Modifier and Type Method Description static LootCondition.Builder
builder(Enchantment enchantment, float[] chances)
Set<LootContextParameter<?>>
getRequiredParameters()
LootConditionType
getType()
boolean
test(LootContext lootContext)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.loot.context.LootContextAware
validate
-
Field Details
-
enchantment
-
chances
private final float[] chances
-
-
Constructor Details
-
TableBonusLootCondition
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootCondition
-
getRequiredParameters
- Specified by:
getRequiredParameters
in interfaceLootContextAware
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-
builder
-