net.minecraft.loot.condition

public record EnvironmentAttributeCheckLootCondition<Value>

implements LootCondition

net.minecraft.world.level.storage.loot.predicates.EnvironmentAttributeCheck
net.minecraft.class_1_487
net.minecraft.loot.condition.EnvironmentAttributeCheckLootCondition

Field summary

Modifier and TypeField
private final EnvironmentAttribute<Value>
attribute
comp_1_403
attribute
private final Value
value
comp_1_404
value
public static final com.mojang.serialization.MapCodec<EnvironmentAttributeCheckLootCondition<?>>
MAP_CODEC
field_1_2564
CODEC

Constructor summary

ModifierConstructor
public (EnvironmentAttribute<Value> attribute, Value value)

Method summary

Modifier and TypeMethod
private static <Value> com.mojang.serialization.MapCodec<EnvironmentAttributeCheckLootCondition<Value>>
createCodec(EnvironmentAttribute<Value> attribute)
method_1_3083(class_12197<Value> arg0)
createCodecFromAttribute(EnvironmentAttribute<Value> attribute)
public com.mojang.serialization.MapCodec<EnvironmentAttributeCheckLootCondition<Value>>
codec()
method_1_745()
getCodec()
public Set<ContextParameter<?>>
getReferencedContextParams()
method_293()
getAllowedParameters()
public boolean
test(LootContext context)
method_1_3087(class_47 arg0)
test(LootContext arg0)
public static <Value> LootCondition$Builder
environmentAttribute(EnvironmentAttribute<Value> attribute, Value value)
method_1_3084(class_12197<Value> arg0, Value arg1)
builder(EnvironmentAttribute<Value> attribute, Value value)
public EnvironmentAttribute<Value>
attribute()
comp_1_403()
attribute()
public Value
value()
comp_1_404()
value()
public boolean
test(Object context)
test(Object arg0)
test(Object context)
private static LootCondition
lambda$environmentAttribute$0(EnvironmentAttribute arg0, Object arg1)
method_1_3086(class_12197 arg0, Object arg1)
method_1_3086(EnvironmentAttribute arg0, Object arg1)
private static EnvironmentAttributeCheckLootCondition
lambda$createCodec$0(EnvironmentAttribute arg0, Object arg1)
method_1_3085(class_12197 arg0, Object arg1)
method_1_3085(EnvironmentAttribute arg0, Object value)