Package net.minecraft.loot.condition
Class RandomChanceLootCondition
java.lang.Object
net.minecraft.loot.condition.RandomChanceLootCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootCondition
,LootContextAware
public class RandomChanceLootCondition extends Object implements LootCondition
- Mappings:
Namespace Name official dhf
intermediary net/minecraft/class_219
named net/minecraft/loot/condition/RandomChanceLootCondition
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RandomChanceLootCondition.Serializer
Nested classes/interfaces inherited from interface net.minecraft.loot.condition.LootCondition
LootCondition.Builder
-
Field Summary
Fields Modifier and Type Field Description private float
chance
-
Constructor Summary
Constructors Modifier Constructor Description private
RandomChanceLootCondition(float chance)
-
Method Summary
Modifier and Type Method Description static LootCondition.Builder
builder(float chance)
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
getRequiredParameters, validate
-
Field Details
-
chance
private final float chance- Mappings:
Namespace Name Mixin selector official a
Ldhf;a:F
intermediary field_1296
Lnet/minecraft/class_219;field_1296:F
named chance
Lnet/minecraft/loot/condition/RandomChanceLootCondition;chance:F
-
-
Constructor Details
-
RandomChanceLootCondition
private RandomChanceLootCondition(float chance)- Mappings:
Namespace Name Mixin selector official <init>
Ldhf;<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
Ldha;a()Ldhb;
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
Ldhf;a(Ldei;)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
Ldhf;a(F)Ldha$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;
-