Class ContextNbtProvider
java.lang.Object
net.minecraft.world.level.storage.loot.providers.nbt.ContextNbtProvider
- All Implemented Interfaces:
NbtProvider
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ContextNbtProvider
private static final String
private static final ContextNbtProvider.Getter
static final com.mojang.serialization.MapCodec
<ContextNbtProvider> private final ContextNbtProvider.Getter
private static final com.mojang.serialization.Codec
<ContextNbtProvider.Getter> static final com.mojang.serialization.Codec
<ContextNbtProvider> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic NbtProvider
forContextEntity
(LootContext.EntityTarget p_165571_) private static ContextNbtProvider.Getter
forEntity
(LootContext.EntityTarget p_165578_) get
(LootContext p_165573_) Set
<LootContextParam<?>> getType()
-
Field Details
-
BLOCK_ENTITY_ID
- See Also:
-
BLOCK_ENTITY_PROVIDER
-
BLOCK_ENTITY
-
GETTER_CODEC
-
CODEC
-
INLINE_CODEC
-
getter
-
-
Constructor Details
-
ContextNbtProvider
-
-
Method Details
-
forEntity
-
getType
- Specified by:
getType
in interfaceNbtProvider
-
get
- Specified by:
get
in interfaceNbtProvider
-
getReferencedContextParams
- Specified by:
getReferencedContextParams
in interfaceNbtProvider
-
forContextEntity
-