Package net.minecraft.loot.condition
Class RandomChanceLootCondition
java.lang.Object
net.minecraft.loot.condition.RandomChanceLootCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootCondition
,LootContextAware
- Mappings:
Namespace Name official dmy
intermediary net/minecraft/class_219
named net/minecraft/loot/condition/RandomChanceLootCondition
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.loot.condition.LootCondition
LootCondition.Builder
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LootCondition.Builder
builder
(float chance) 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
getRequiredParameters, validate
-
Field Details
-
chance
final float chance- Mappings:
Namespace Name Mixin selector official a
Ldmy;a:F
intermediary field_1296
Lnet/minecraft/class_219;field_1296:F
named chance
Lnet/minecraft/loot/condition/RandomChanceLootCondition;chance:F
-
-
Constructor Details
-
RandomChanceLootCondition
RandomChanceLootCondition(float chance) - Mappings:
Namespace Name Mixin selector official <init>
Ldmy;<init>(F)V
intermediary <init>
Lnet/minecraft/class_219;<init>(F)V
named <init>
Lnet/minecraft/loot/condition/RandomChanceLootCondition;<init>(F)V
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootCondition
- Mappings:
Namespace Name Mixin selector official a
Ldmt;a()Ldmu;
intermediary method_29325
Lnet/minecraft/class_5341;method_29325()Lnet/minecraft/class_5342;
named getType
Lnet/minecraft/loot/condition/LootCondition;getType()Lnet/minecraft/loot/condition/LootConditionType;
-
test
- Specified by:
test
in interfacePredicate<LootContext>
- Mappings:
Namespace Name Mixin selector official a
Ldmy;a(Ldka;)Z
intermediary method_934
Lnet/minecraft/class_219;method_934(Lnet/minecraft/class_47;)Z
named test
Lnet/minecraft/loot/condition/RandomChanceLootCondition;test(Lnet/minecraft/loot/context/LootContext;)Z
-
builder
- Mappings:
Namespace Name Mixin selector official a
Ldmy;a(F)Ldmt$a;
intermediary method_932
Lnet/minecraft/class_219;method_932(F)Lnet/minecraft/class_5341$class_210;
named builder
Lnet/minecraft/loot/condition/RandomChanceLootCondition;builder(F)Lnet/minecraft/loot/condition/LootCondition$Builder;
-