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

public record LocationCheck

implements LootItemCondition

ets
net.minecraft.world.level.storage.loot.predicates.LocationCheck
net.minecraft.class_205
net.minecraft.loot.condition.LocationCheckLootCondition
net.minecraft.src.C_2997_
net.minecraft.world.level.storage.loot.predicates.LootItemConditionLocationCheck

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public LootItemConditionType
b()
getType()
method_29325()
getType()
m_7940_()
public boolean
a(eqk arg0)
test(LootContext arg0)
method_881(class_47 arg0)
test(LootContext arg0)
test(C_2811_ arg0)
public static LootItemCondition$Builder
a(dc$a arg0)
checkLocation(LocationPredicate$Builder arg0)
method_884(class_2090$class_2091 arg0)
builder(LocationPredicate$Builder predicateBuilder)
m_81725_(C_1761_$C_1762_ p_81726_)
public static LootItemCondition$Builder
a(dc$a arg0, iz arg1)
checkLocation(LocationPredicate$Builder arg0, BlockPos arg1)
method_30151(class_2090$class_2091 arg0, class_2338 arg1)
builder(LocationPredicate$Builder predicateBuilder, BlockPos pos)
m_81727_(C_1761_$C_1762_ p_81728_, C_4675_ p_81729_)
public Optional<LocationPredicate>
c()
predicate()
comp_1874()
predicate()
f_81716_()
public BlockPos
d()
offset()
comp_1875()
offset()
f_81717_()