net.minecraft.world.level.storage.loot.predicates

public record TimeCheck

implements LootItemCondition

evk
net.minecraft.world.level.storage.loot.predicates.TimeCheck
net.minecraft.class_4571
net.minecraft.loot.condition.TimeCheckLootCondition
net.minecraft.src.C_3021_
net.minecraft.world.level.storage.loot.predicates.LootItemConditionTimeCheck

Field summary

Modifier and TypeField
private final Optional<Long>
b
period
comp_1885
period
f_82023_
private final IntRange
c
value
comp_1886
value
f_82024_
public static final com.mojang.serialization.MapCodec<TimeCheck>
a
CODEC
field_45876
CODEC
f_290995_

Constructor summary

ModifierConstructor
public (Optional<Long> value, IntRange value)

Method summary

Modifier and TypeMethod
public LootItemConditionType
b()
getType()
method_29325()
getType()
m_7940_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
getRequiredParameters()
m_6231_()
public boolean
a(err arg0)
test(LootContext arg0)
method_22587(class_47 arg0)
test(LootContext arg0)
test(C_2811_ arg0)
public static TimeCheck$Builder
a(erq arg0)
time(IntRange arg0)
method_35559(class_42 arg0)
create(BoundedIntUnaryOperator value)
m_165509_(C_141456_ p_165510_)
public Optional<Long>
c()
period()
comp_1885()
period()
f_82023_()
public IntRange
d()
value()
comp_1886()
value()
f_82024_()