类 LootPoolSingletonContainer
java.lang.Object
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
- 所有已实现的接口:
ComposableEntryContainer
- 直接已知子类:
DynamicLoot
,EmptyLootItem
,LootItem
,NestedLootTable
,TagEntry
-
嵌套类概要
嵌套类修饰符和类型类说明static class
(专用程序包) static class
protected class
protected static interface
-
字段概要
字段修饰符和类型字段说明(专用程序包) final BiFunction
<ItemStack, LootContext, ItemStack> static final int
static final int
private final LootPoolEntry
protected final List
<LootItemFunction> protected final int
protected final int
从类继承的字段 net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
conditions
从接口继承的字段 net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
ALWAYS_FALSE, ALWAYS_TRUE
-
构造器概要
构造器限定符构造器说明protected
LootPoolSingletonContainer
(int p_79681_, int p_79682_, List<LootItemCondition> p_297957_, List<LootItemFunction> p_300940_) -
方法概要
修饰符和类型方法说明protected abstract void
createItemStack
(Consumer<ItemStack> p_79691_, LootContext p_79692_) boolean
expand
(LootContext p_79694_, Consumer<LootPoolEntry> p_79695_) static LootPoolSingletonContainer.Builder
<?> protected static <T extends LootPoolSingletonContainer>
com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>, Integer, Integer, List<LootItemCondition>, List<LootItemFunction>> singletonFields
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> p_299133_) void
validate
(ValidationContext p_79686_) 从类继承的方法 net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
canRun, commonFields, getType
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
and, or
-
字段详细资料
-
DEFAULT_WEIGHT
public static final int DEFAULT_WEIGHT- 另请参阅:
-
DEFAULT_QUALITY
public static final int DEFAULT_QUALITY- 另请参阅:
-
weight
protected final int weight -
quality
protected final int quality -
functions
-
compositeFunction
-
entry
-
-
构造器详细资料
-
LootPoolSingletonContainer
protected LootPoolSingletonContainer(int p_79681_, int p_79682_, List<LootItemCondition> p_297957_, List<LootItemFunction> p_300940_)
-
-
方法详细资料
-
singletonFields
protected static <T extends LootPoolSingletonContainer> com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,Integer, singletonFieldsInteger, List<LootItemCondition>, List<LootItemFunction>> (com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> p_299133_) -
validate
- 覆盖:
validate
在类中LootPoolEntryContainer
-
createItemStack
-
expand
-
simpleBuilder
public static LootPoolSingletonContainer.Builder<?> simpleBuilder(LootPoolSingletonContainer.EntryConstructor p_79688_)
-