Package net.minecraft.loot.condition
Class WeatherCheckLootCondition
java.lang.Object
net.minecraft.loot.condition.WeatherCheckLootCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootCondition
,LootContextAware
public class WeatherCheckLootCondition extends Object implements LootCondition
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WeatherCheckLootCondition.Serializer
Nested classes/interfaces inherited from interface net.minecraft.loot.condition.LootCondition
LootCondition.Builder
-
Field Summary
Fields Modifier and Type Field Description private Boolean
raining
private Boolean
thundering
-
Constructor Summary
Constructors Modifier Constructor Description private
WeatherCheckLootCondition(Boolean raining, Boolean thundering)
-
Method Summary
Modifier and Type Method Description 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
-
raining
-
thundering
-
-
Constructor Details
-
WeatherCheckLootCondition
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootCondition
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-