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
- Mappings:
Namespace Name official dhk
intermediary net/minecraft/class_227
named net/minecraft/loot/condition/WeatherCheckLootCondition
-
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
- Mappings:
Namespace Name Mixin selector official a
Ldhk;a:Ljava/lang/Boolean;
intermediary field_1302
Lnet/minecraft/class_227;field_1302:Ljava/lang/Boolean;
named raining
Lnet/minecraft/loot/condition/WeatherCheckLootCondition;raining:Ljava/lang/Boolean;
-
thundering
- Mappings:
Namespace Name Mixin selector official b
Ldhk;b:Ljava/lang/Boolean;
intermediary field_1301
Lnet/minecraft/class_227;field_1301:Ljava/lang/Boolean;
named thundering
Lnet/minecraft/loot/condition/WeatherCheckLootCondition;thundering:Ljava/lang/Boolean;
-
-
Constructor Details
-
WeatherCheckLootCondition
- Mappings:
Namespace Name Mixin selector official <init>
Ldhk;<init>(Ljava/lang/Boolean;Ljava/lang/Boolean;)V
intermediary <init>
Lnet/minecraft/class_227;<init>(Ljava/lang/Boolean;Ljava/lang/Boolean;)V
named <init>
Lnet/minecraft/loot/condition/WeatherCheckLootCondition;<init>(Ljava/lang/Boolean;Ljava/lang/Boolean;)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
Ldhk;a(Ldei;)Z
intermediary method_957
Lnet/minecraft/class_227;method_957(Lnet/minecraft/class_47;)Z
named test
Lnet/minecraft/loot/condition/WeatherCheckLootCondition;test(Lnet/minecraft/loot/context/LootContext;)Z
-