类 LeafEntry
- java.lang.Object
-
- net.minecraft.loot.entry.LootPoolEntry
-
- net.minecraft.loot.entry.LeafEntry
-
- 所有已实现的接口:
EntryCombiner
- 直接已知子类:
DynamicEntry,EmptyEntry,ItemEntry,LootTableEntry,TagEntry
public abstract class LeafEntry extends LootPoolEntry
- Mappings:
Namespace Name official dijintermediary net/minecraft/class_85named net/minecraft/loot/entry/LeafEntry
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) static classLeafEntry.BasicBuilderstatic classLeafEntry.Builder<T extends LeafEntry.Builder<T>>classLeafEntry.Choicestatic interfaceLeafEntry.Factorystatic classLeafEntry.Serializer<T extends LeafEntry>
-
字段概要
字段 修饰符和类型 字段 说明 private LootChoicechoiceprivate BiFunction<ItemStack,LootContext,ItemStack>compiledFunctionsstatic intfield_31847static intfield_31848protected LootFunction[]functionsprotected intqualityprotected intweight-
从类继承的字段 net.minecraft.loot.entry.LootPoolEntry
conditions
-
从接口继承的字段 net.minecraft.loot.entry.EntryCombiner
ALWAYS_FALSE, ALWAYS_TRUE
-
-
构造器概要
构造器 限定符 构造器 说明 protectedLeafEntry(int weight, int quality, LootCondition[] conditions, LootFunction[] functions)
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 static LeafEntry.Builder<?>builder(LeafEntry.Factory factory)booleanexpand(LootContext context, Consumer<LootChoice> choiceConsumer)protected abstract voidgenerateLoot(Consumer<ItemStack> lootConsumer, LootContext context)voidvalidate(LootTableReporter reporter)-
从类继承的方法 net.minecraft.loot.entry.LootPoolEntry
getType, test
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.loot.entry.EntryCombiner
and, or
-
-
-
-
字段详细资料
-
field_31847
public static final int field_31847
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLdij;c:Iintermediary field_31847Lnet/minecraft/class_85;field_31847:Inamed field_31847Lnet/minecraft/loot/entry/LeafEntry;field_31847:I
-
field_31848
public static final int field_31848
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official eLdij;e:Iintermediary field_31848Lnet/minecraft/class_85;field_31848:Inamed field_31848Lnet/minecraft/loot/entry/LeafEntry;field_31848:I
-
weight
protected final int weight
- Mappings:
Namespace Name Mixin selector official fLdij;f:Iintermediary field_995Lnet/minecraft/class_85;field_995:Inamed weightLnet/minecraft/loot/entry/LeafEntry;weight:I
-
quality
protected final int quality
- Mappings:
Namespace Name Mixin selector official gLdij;g:Iintermediary field_994Lnet/minecraft/class_85;field_994:Inamed qualityLnet/minecraft/loot/entry/LeafEntry;quality:I
-
functions
protected final LootFunction[] functions
- Mappings:
Namespace Name Mixin selector official hLdij;h:[Ldja;intermediary field_996Lnet/minecraft/class_85;field_996:[Lnet/minecraft/class_117;named functionsLnet/minecraft/loot/entry/LeafEntry;functions:[Lnet/minecraft/loot/function/LootFunction;
-
compiledFunctions
private final BiFunction<ItemStack,LootContext,ItemStack> compiledFunctions
- Mappings:
Namespace Name Mixin selector official iLdij;i:Ljava/util/function/BiFunction;intermediary field_997Lnet/minecraft/class_85;field_997:Ljava/util/function/BiFunction;named compiledFunctionsLnet/minecraft/loot/entry/LeafEntry;compiledFunctions:Ljava/util/function/BiFunction;
-
choice
private final LootChoice choice
- Mappings:
Namespace Name Mixin selector official jLdij;j:Ldig;intermediary field_998Lnet/minecraft/class_85;field_998:Lnet/minecraft/class_82;named choiceLnet/minecraft/loot/entry/LeafEntry;choice:Lnet/minecraft/loot/LootChoice;
-
-
构造器详细资料
-
LeafEntry
protected LeafEntry(int weight, int quality, LootCondition[] conditions, LootFunction[] functions)- Mappings:
Namespace Name Mixin selector official <init>Ldij;<init>(II[Ldkh;[Ldja;)Vintermediary <init>Lnet/minecraft/class_85;<init>(II[Lnet/minecraft/class_5341;[Lnet/minecraft/class_117;)Vnamed <init>Lnet/minecraft/loot/entry/LeafEntry;<init>(II[Lnet/minecraft/loot/condition/LootCondition;[Lnet/minecraft/loot/function/LootFunction;)V
-
-
方法详细资料
-
validate
public void validate(LootTableReporter reporter)
- 覆盖:
validate在类中LootPoolEntry- Mappings:
Namespace Name Mixin selector official aLdih;a(Ldhx;)Vintermediary method_415Lnet/minecraft/class_79;method_415(Lnet/minecraft/class_58;)Vnamed validateLnet/minecraft/loot/entry/LootPoolEntry;validate(Lnet/minecraft/loot/LootTableReporter;)V
-
generateLoot
protected abstract void generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
- Mappings:
Namespace Name Mixin selector official aLdij;a(Ljava/util/function/Consumer;Ldhp;)Vintermediary method_433Lnet/minecraft/class_85;method_433(Ljava/util/function/Consumer;Lnet/minecraft/class_47;)Vnamed generateLootLnet/minecraft/loot/entry/LeafEntry;generateLoot(Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)V
-
expand
public boolean expand(LootContext context, Consumer<LootChoice> choiceConsumer)
- Mappings:
Namespace Name Mixin selector official expandLdhz;expand(Ldhp;Ljava/util/function/Consumer;)Zintermediary expandLnet/minecraft/class_64;expand(Lnet/minecraft/class_47;Ljava/util/function/Consumer;)Znamed expandLnet/minecraft/loot/entry/EntryCombiner;expand(Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)Z
-
builder
public static LeafEntry.Builder<?> builder(LeafEntry.Factory factory)
- Mappings:
Namespace Name Mixin selector official aLdij;a(Ldij$d;)Ldij$a;intermediary method_434Lnet/minecraft/class_85;method_434(Lnet/minecraft/class_85$class_89;)Lnet/minecraft/class_85$class_86;named builderLnet/minecraft/loot/entry/LeafEntry;builder(Lnet/minecraft/loot/entry/LeafEntry$Factory;)Lnet/minecraft/loot/entry/LeafEntry$Builder;
-
-