类 SetContainerLootTable
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.SetContainerLootTable
- 所有已实现的接口:
BiFunction<ItemStack,
,LootContext, ItemStack> LootItemFunction
,LootContextUser
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.Builder<T extends LootItemConditionalFunction.Builder<T>>, LootItemConditionalFunction.DummyBuilder
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.MapCodec
<SetContainerLootTable> private final ResourceKey
<LootTable> private final long
private final Holder
<BlockEntityType<?>> 从类继承的字段 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
构造器概要
构造器限定符构造器说明private
SetContainerLootTable
(List<LootItemCondition> p_298290_, ResourceKey<LootTable> p_335525_, long p_193047_, Holder<BlockEntityType<?>> p_298416_) -
方法概要
修饰符和类型方法说明getType()
run
(ItemStack p_80967_, LootContext p_80968_) void
validate
(ValidationContext p_80970_) static LootItemConditionalFunction.Builder
<?> withLootTable
(BlockEntityType<?> p_193050_, ResourceKey<LootTable> p_335933_) static LootItemConditionalFunction.Builder
<?> withLootTable
(BlockEntityType<?> p_193053_, ResourceKey<LootTable> p_335427_, long p_193055_) 从类继承的方法 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
apply, commonFields, simpleBuilder
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 java.util.function.BiFunction
andThen
从接口继承的方法 net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams
-
字段详细资料
-
CODEC
-
name
-
seed
private final long seed -
type
-
-
构造器详细资料
-
SetContainerLootTable
private SetContainerLootTable(List<LootItemCondition> p_298290_, ResourceKey<LootTable> p_335525_, long p_193047_, Holder<BlockEntityType<?>> p_298416_)
-
-
方法详细资料
-
getType
- 指定者:
getType
在接口中LootItemFunction
- 指定者:
getType
在类中LootItemConditionalFunction
-
run
- 指定者:
run
在类中LootItemConditionalFunction
-
validate
- 指定者:
validate
在接口中LootContextUser
- 覆盖:
validate
在类中LootItemConditionalFunction
-
withLootTable
public static LootItemConditionalFunction.Builder<?> withLootTable(BlockEntityType<?> p_193050_, ResourceKey<LootTable> p_335933_) -
withLootTable
public static LootItemConditionalFunction.Builder<?> withLootTable(BlockEntityType<?> p_193053_, ResourceKey<LootTable> p_335427_, long p_193055_)
-