Interface EnvironmentAttributeProvider
- All Superinterfaces:
LootContextUser, Validatable
- All Known Implementing Classes:
EnvironmentAttributeValue, EnvironmentAttributeValue
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptiondefault Set<ContextKey<?>> static <Self extends EnvironmentAttributeProvider>
com.mojang.serialization.MapCodec<Self> mapCodec(com.mojang.serialization.Codec<EnvironmentAttribute<?>> attributeCodec, EnvironmentAttributeProvider.Factory<Self> factory) Methods inherited from interface LootContextUser
validate
-
Method Details
-
mapCodec
static <Self extends EnvironmentAttributeProvider> com.mojang.serialization.MapCodec<Self> mapCodec(com.mojang.serialization.Codec<EnvironmentAttribute<?>> attributeCodec, EnvironmentAttributeProvider.Factory<Self> factory) -
attribute
EnvironmentAttribute<?> attribute() -
getReferencedContextParams
- Specified by:
getReferencedContextParamsin interfaceLootContextUser
-