Package net.minecraft.loot.conditions
Class TimeCheck
- java.lang.Object
-
- net.minecraft.loot.conditions.TimeCheck
-
- All Implemented Interfaces:
java.util.function.Predicate<LootContext>
,ILootCondition
,IParameterized
public class TimeCheck extends java.lang.Object implements ILootCondition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimeCheck.Serializer
-
Nested classes/interfaces inherited from interface net.minecraft.loot.conditions.ILootCondition
ILootCondition.IBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Long
period
private RandomValueRange
value
-
Constructor Summary
Constructors Modifier Constructor Description private
TimeCheck(java.lang.Long p_i225898_1_, RandomValueRange p_i225898_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LootConditionType
getType()
boolean
test(LootContext p_test_1_)
-
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.IParameterized
getReferencedContextParams, validate
-
-
-
-
Field Detail
-
period
@Nullable private final java.lang.Long period
-
value
private final RandomValueRange value
-
-
Constructor Detail
-
TimeCheck
private TimeCheck(@Nullable java.lang.Long p_i225898_1_, RandomValueRange p_i225898_2_)
-
-
Method Detail
-
getType
public LootConditionType getType()
- Specified by:
getType
in interfaceILootCondition
-
test
public boolean test(LootContext p_test_1_)
- Specified by:
test
in interfacejava.util.function.Predicate<LootContext>
-
-