Class LootItemKilledByPlayerCondition
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.LootItemKilledByPlayerCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootContextUser
,LootItemCondition
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
LootItemCondition.Builder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<LootItemKilledByPlayerCondition> private static final LootItemKilledByPlayerCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet
<LootContextParam<?>> getType()
static LootItemCondition.Builder
boolean
test
(LootContext p_81899_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
validate
-
Field Details
-
INSTANCE
-
CODEC
-
-
Constructor Details
-
LootItemKilledByPlayerCondition
private LootItemKilledByPlayerCondition()
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootItemCondition
-
getReferencedContextParams
- Specified by:
getReferencedContextParams
in interfaceLootContextUser
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-
killedByPlayer
-