net.minecraft.world.level.storage.loot.predicates

public record LocationCheck

implements LootItemCondition

ezw
net.minecraft.world.level.storage.loot.predicates.LocationCheck
net.minecraft.class_205
net.minecraft.loot.condition.LocationCheckLootCondition
net.minecraft.world.level.storage.loot.predicates.LootItemConditionLocationCheck

Field summary

Modifier and TypeField
private final Optional<LocationPredicate>
b
predicate
comp_1874
predicate
private final BlockPos
c
offset
comp_1875
offset
private static final com.mojang.serialization.MapCodec<BlockPos>
g
OFFSET_CODEC
field_45867
OFFSET_CODEC
public static final com.mojang.serialization.MapCodec<LocationCheck>
a
CODEC
field_45866
CODEC

Constructor summary

ModifierConstructor
public (Optional<LocationPredicate> arg0, BlockPos offset)

Method summary

Modifier and TypeMethod
public LootItemConditionType
b()
getType()
method_29325()
getType()
public boolean
a(ewp arg0)
test(LootContext arg0)
method_881(class_47 arg0)
test(LootContext arg0)
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
getAllowedParameters()
public static LootItemCondition$Builder
a(dh$a arg0)
checkLocation(LocationPredicate$Builder arg0)
method_884(class_2090$class_2091 arg0)
builder(LocationPredicate$Builder predicateBuilder)
public static LootItemCondition$Builder
a(dh$a arg0, jh arg1)
checkLocation(LocationPredicate$Builder arg0, BlockPos arg1)
method_30151(class_2090$class_2091 arg0, class_2338 arg1)
builder(LocationPredicate$Builder predicateBuilder, BlockPos pos)
public Optional<LocationPredicate>
c()
predicate()
comp_1874()
predicate()
public BlockPos
d()
offset()
comp_1875()
offset()