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

public record WeatherCheck

implements LootItemCondition

fai
net.minecraft.world.level.storage.loot.predicates.WeatherCheck
net.minecraft.class_227
net.minecraft.loot.condition.WeatherCheckLootCondition
net.minecraft.world.level.storage.loot.predicates.LootItemConditionWeatherCheck

Field summary

Modifier and TypeField
private final Optional<Boolean>
b
isRaining
comp_1889
raining
private final Optional<Boolean>
c
isThundering
comp_1890
thundering
public static final com.mojang.serialization.MapCodec<WeatherCheck>
a
CODEC
field_45878
CODEC

Constructor summary

ModifierConstructor
public (Optional<Boolean> arg0, Optional<Boolean> arg1)

Method summary

Modifier and TypeMethod
public LootItemConditionType
b()
getType()
method_29325()
getType()
public boolean
a(ewp arg0)
test(LootContext arg0)
method_957(class_47 arg0)
test(LootContext arg0)
public static WeatherCheck$Builder
c()
weather()
method_35564()
create()
public Optional<Boolean>
d()
isRaining()
comp_1889()
raining()
public Optional<Boolean>
e()
isThundering()
comp_1890()
thundering()