Class EntityLootTableGenerator
java.lang.Object
net.minecraft.data.server.loottable.EntityLootTableGenerator
- All Implemented Interfaces:
LootTableGenerator
- Direct Known Subclasses:
VanillaEntityLootTableGenerator
- Mappings:
Namespace Name named net/minecraft/data/server/loottable/EntityLootTableGenerator
intermediary net/minecraft/class_7789
official nf
-
Field Summary
Modifier and TypeFieldDescriptionprivate final FeatureSet
private final Map
<EntityType<?>, Map<RegistryKey<LootTable>, LootTable.Builder>> protected final RegistryWrapper.WrapperLookup
private final FeatureSet
-
Constructor Summary
ModifierConstructorDescriptionprotected
EntityLootTableGenerator
(FeatureSet requiredFeatures, RegistryWrapper.WrapperLookup registries) protected
EntityLootTableGenerator
(FeatureSet requiredFeatures, FeatureSet featureSet, RegistryWrapper.WrapperLookup registries) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(BiConsumer<RegistryKey<LootTable>, LootTable.Builder> lootTableBiConsumer) static LootPool.Builder
createForSheep
(Map<DyeColor, RegistryKey<LootTable>> colorLootTables) protected final AnyOfLootCondition.Builder
abstract void
generate()
protected LootCondition.Builder
killedByFrog
(RegistryEntryLookup<EntityType<?>> registryLookup) protected LootCondition.Builder
killedByFrog
(RegistryEntryLookup<EntityType<?>> registryLookup, RegistryKey<FrogVariant> frogVariant) protected void
register
(EntityType<?> entityType, LootTable.Builder lootTable) protected void
register
(EntityType<?> entityType, RegistryKey<LootTable> tableKey, LootTable.Builder lootTable)
-
Field Details
-
registries
- Mappings:
Namespace Name Mixin selector named registries
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;registries:Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;
intermediary field_51846
Lnet/minecraft/class_7789;field_51846:Lnet/minecraft/class_7225$class_7874;
official a
Lnf;a:Ljs$a;
-
requiredFeatures
- Mappings:
Namespace Name Mixin selector named requiredFeatures
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;requiredFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;
intermediary field_42084
Lnet/minecraft/class_7789;field_42084:Lnet/minecraft/class_7699;
official b
Lnf;b:Lcss;
-
featureSet
- Mappings:
Namespace Name Mixin selector named featureSet
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;featureSet:Lnet/minecraft/resource/featuretoggle/FeatureSet;
intermediary field_42085
Lnet/minecraft/class_7789;field_42085:Lnet/minecraft/class_7699;
official c
Lnf;c:Lcss;
-
lootTables
- Mappings:
Namespace Name Mixin selector named lootTables
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;lootTables:Ljava/util/Map;
intermediary field_40615
Lnet/minecraft/class_7789;field_40615:Ljava/util/Map;
official d
Lnf;d:Ljava/util/Map;
-
-
Constructor Details
-
EntityLootTableGenerator
protected EntityLootTableGenerator(FeatureSet requiredFeatures, RegistryWrapper.WrapperLookup registries) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
intermediary <init>
Lnet/minecraft/class_7789;<init>(Lnet/minecraft/class_7699;Lnet/minecraft/class_7225$class_7874;)V
official <init>
Lnf;<init>(Lcss;Ljs$a;)V
-
EntityLootTableGenerator
protected EntityLootTableGenerator(FeatureSet requiredFeatures, FeatureSet featureSet, RegistryWrapper.WrapperLookup registries) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
intermediary <init>
Lnet/minecraft/class_7789;<init>(Lnet/minecraft/class_7699;Lnet/minecraft/class_7699;Lnet/minecraft/class_7225$class_7874;)V
official <init>
Lnf;<init>(Lcss;Lcss;Ljs$a;)V
-
-
Method Details
-
createSmeltLootCondition
- Mappings:
Namespace Name Mixin selector named createSmeltLootCondition
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;createSmeltLootCondition()Lnet/minecraft/loot/condition/AnyOfLootCondition$Builder;
intermediary method_60394
Lnet/minecraft/class_7789;method_60394()Lnet/minecraft/class_8551$class_8552;
official a
Lnf;a()Lezl$a;
-
createForSheep
- Mappings:
Namespace Name Mixin selector named createForSheep
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;createForSheep(Ljava/util/Map;)Lnet/minecraft/loot/LootPool$Builder;
intermediary method_46031
Lnet/minecraft/class_7789;method_46031(Ljava/util/Map;)Lnet/minecraft/class_55$class_56;
official a
Lnf;a(Ljava/util/Map;)Lews$a;
-
generate
public abstract void generate()- Mappings:
Namespace Name Mixin selector named generate
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;generate()V
intermediary method_10400
Lnet/minecraft/class_7789;method_10400()V
official b
Lnf;b()V
-
accept
- Specified by:
accept
in interfaceLootTableGenerator
- Mappings:
Namespace Name Mixin selector named accept
Lnet/minecraft/data/server/loottable/LootTableGenerator;accept(Ljava/util/function/BiConsumer;)V
intermediary method_10399
Lnet/minecraft/class_7791;method_10399(Ljava/util/function/BiConsumer;)V
official generate
Lnh;generate(Ljava/util/function/BiConsumer;)V
-
killedByFrog
- Mappings:
Namespace Name Mixin selector named killedByFrog
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;killedByFrog(Lnet/minecraft/registry/RegistryEntryLookup;)Lnet/minecraft/loot/condition/LootCondition$Builder;
intermediary method_46034
Lnet/minecraft/class_7789;method_46034(Lnet/minecraft/class_7871;)Lnet/minecraft/class_5341$class_210;
official a
Lnf;a(Ljr;)Lezx$a;
-
killedByFrog
protected LootCondition.Builder killedByFrog(RegistryEntryLookup<EntityType<?>> registryLookup, RegistryKey<FrogVariant> frogVariant) - Mappings:
Namespace Name Mixin selector named killedByFrog
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;killedByFrog(Lnet/minecraft/registry/RegistryEntryLookup;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/loot/condition/LootCondition$Builder;
intermediary method_46030
Lnet/minecraft/class_7789;method_46030(Lnet/minecraft/class_7871;Lnet/minecraft/class_5321;)Lnet/minecraft/class_5341$class_210;
official a
Lnf;a(Ljr;Laly;)Lezx$a;
-
register
- Mappings:
Namespace Name Mixin selector named register
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;register(Lnet/minecraft/entity/EntityType;Lnet/minecraft/loot/LootTable$Builder;)V
intermediary method_46029
Lnet/minecraft/class_7789;method_46029(Lnet/minecraft/class_1299;Lnet/minecraft/class_52$class_53;)V
official a
Lnf;a(Lbvq;Lewt$a;)V
-
register
protected void register(EntityType<?> entityType, RegistryKey<LootTable> tableKey, LootTable.Builder lootTable) - Mappings:
Namespace Name Mixin selector named register
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;register(Lnet/minecraft/entity/EntityType;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/loot/LootTable$Builder;)V
intermediary method_46028
Lnet/minecraft/class_7789;method_46028(Lnet/minecraft/class_1299;Lnet/minecraft/class_5321;Lnet/minecraft/class_52$class_53;)V
official a
Lnf;a(Lbvq;Laly;Lewt$a;)V
-