Package net.minecraft.data.loottable
Class EntityLootTableGenerator
java.lang.Object
net.minecraft.data.loottable.EntityLootTableGenerator
- All Implemented Interfaces:
LootTableGenerator
- Direct Known Subclasses:
VanillaEntityLootTableGenerator
- Mappings:
Namespace Name named net/minecraft/data/loottable/EntityLootTableGeneratorintermediary net/minecraft/class_7789official nk
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FeatureSetprivate final Map<EntityType<?>, Map<RegistryKey<LootTable>, LootTable.Builder>> protected final RegistryWrapper.WrapperLookupprivate final FeatureSet -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityLootTableGenerator(FeatureSet requiredFeatures, RegistryWrapper.WrapperLookup registries) protectedEntityLootTableGenerator(FeatureSet requiredFeatures, FeatureSet featureSet, RegistryWrapper.WrapperLookup registries) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(BiConsumer<RegistryKey<LootTable>, LootTable.Builder> lootTableBiConsumer) static LootPool.BuildercreateForSheep(Map<DyeColor, RegistryKey<LootTable>> colorLootTables) protected final AnyOfLootCondition.Builderabstract voidgenerate()protected LootCondition.BuilderkilledByFrog(RegistryEntryLookup<EntityType<?>> entityTypeLookup) protected LootCondition.BuilderkilledByFrog(RegistryEntryLookup<EntityType<?>> entityTypeLookup, RegistryEntryLookup<FrogVariant> frogVariantLookup, RegistryKey<FrogVariant> frogVariant) protected voidregister(EntityType<?> entityType, LootTable.Builder lootTable) protected voidregister(EntityType<?> entityType, RegistryKey<LootTable> tableKey, LootTable.Builder lootTable)
-
Field Details
-
registries
- Mappings:
Namespace Name Mixin selector named registriesLnet/minecraft/data/loottable/EntityLootTableGenerator;registries:Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;intermediary field_51846Lnet/minecraft/class_7789;field_51846:Lnet/minecraft/class_7225$class_7874;official aLnk;a:Lji$a;
-
requiredFeatures
- Mappings:
Namespace Name Mixin selector named requiredFeaturesLnet/minecraft/data/loottable/EntityLootTableGenerator;requiredFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary field_42084Lnet/minecraft/class_7789;field_42084:Lnet/minecraft/class_7699;official bLnk;b:Lcvs;
-
featureSet
- Mappings:
Namespace Name Mixin selector named featureSetLnet/minecraft/data/loottable/EntityLootTableGenerator;featureSet:Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary field_42085Lnet/minecraft/class_7789;field_42085:Lnet/minecraft/class_7699;official cLnk;c:Lcvs;
-
lootTables
- Mappings:
Namespace Name Mixin selector named lootTablesLnet/minecraft/data/loottable/EntityLootTableGenerator;lootTables:Ljava/util/Map;intermediary field_40615Lnet/minecraft/class_7789;field_40615:Ljava/util/Map;official dLnk;d:Ljava/util/Map;
-
-
Constructor Details
-
EntityLootTableGenerator
protected EntityLootTableGenerator(FeatureSet requiredFeatures, RegistryWrapper.WrapperLookup registries) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/data/loottable/EntityLootTableGenerator;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary <init>Lnet/minecraft/class_7789;<init>(Lnet/minecraft/class_7699;Lnet/minecraft/class_7225$class_7874;)Vofficial <init>Lnk;<init>(Lcvs;Lji$a;)V
-
EntityLootTableGenerator
protected EntityLootTableGenerator(FeatureSet requiredFeatures, FeatureSet featureSet, RegistryWrapper.WrapperLookup registries) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/data/loottable/EntityLootTableGenerator;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary <init>Lnet/minecraft/class_7789;<init>(Lnet/minecraft/class_7699;Lnet/minecraft/class_7699;Lnet/minecraft/class_7225$class_7874;)Vofficial <init>Lnk;<init>(Lcvs;Lcvs;Lji$a;)V
-
-
Method Details
-
createSmeltLootCondition
- Mappings:
Namespace Name Mixin selector named createSmeltLootConditionLnet/minecraft/data/loottable/EntityLootTableGenerator;createSmeltLootCondition()Lnet/minecraft/loot/condition/AnyOfLootCondition$Builder;intermediary method_60394Lnet/minecraft/class_7789;method_60394()Lnet/minecraft/class_8551$class_8552;official aLnk;a()Lfdq$a;
-
createForSheep
- Mappings:
Namespace Name Mixin selector named createForSheepLnet/minecraft/data/loottable/EntityLootTableGenerator;createForSheep(Ljava/util/Map;)Lnet/minecraft/loot/LootPool$Builder;intermediary method_46031Lnet/minecraft/class_7789;method_46031(Ljava/util/Map;)Lnet/minecraft/class_55$class_56;official aLnk;a(Ljava/util/Map;)Lfax$a;
-
generate
public abstract void generate()- Mappings:
Namespace Name Mixin selector named generateLnet/minecraft/data/loottable/EntityLootTableGenerator;generate()Vintermediary method_10400Lnet/minecraft/class_7789;method_10400()Vofficial bLnk;b()V
-
accept
- Specified by:
acceptin interfaceLootTableGenerator- Mappings:
Namespace Name Mixin selector named acceptLnet/minecraft/data/loottable/LootTableGenerator;accept(Ljava/util/function/BiConsumer;)Vintermediary method_10399Lnet/minecraft/class_7791;method_10399(Ljava/util/function/BiConsumer;)Vofficial generateLnm;generate(Ljava/util/function/BiConsumer;)V
-
killedByFrog
- Mappings:
Namespace Name Mixin selector named killedByFrogLnet/minecraft/data/loottable/EntityLootTableGenerator;killedByFrog(Lnet/minecraft/registry/RegistryEntryLookup;)Lnet/minecraft/loot/condition/LootCondition$Builder;intermediary method_46034Lnet/minecraft/class_7789;method_46034(Lnet/minecraft/class_7871;)Lnet/minecraft/class_5341$class_210;official aLnk;a(Ljh;)Lfec$a;
-
killedByFrog
protected LootCondition.Builder killedByFrog(RegistryEntryLookup<EntityType<?>> entityTypeLookup, RegistryEntryLookup<FrogVariant> frogVariantLookup, RegistryKey<FrogVariant> frogVariant) - Mappings:
Namespace Name Mixin selector named killedByFrogLnet/minecraft/data/loottable/EntityLootTableGenerator;killedByFrog(Lnet/minecraft/registry/RegistryEntryLookup;Lnet/minecraft/registry/RegistryEntryLookup;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/loot/condition/LootCondition$Builder;intermediary method_46030Lnet/minecraft/class_7789;method_46030(Lnet/minecraft/class_7871;Lnet/minecraft/class_7871;Lnet/minecraft/class_5321;)Lnet/minecraft/class_5341$class_210;official aLnk;a(Ljh;Ljh;Lalq;)Lfec$a;
-
register
- Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/data/loottable/EntityLootTableGenerator;register(Lnet/minecraft/entity/EntityType;Lnet/minecraft/loot/LootTable$Builder;)Vintermediary method_46029Lnet/minecraft/class_7789;method_46029(Lnet/minecraft/class_1299;Lnet/minecraft/class_52$class_53;)Vofficial aLnk;a(Lbxn;Lfay$a;)V
-
register
protected void register(EntityType<?> entityType, RegistryKey<LootTable> tableKey, LootTable.Builder lootTable) - Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/data/loottable/EntityLootTableGenerator;register(Lnet/minecraft/entity/EntityType;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/loot/LootTable$Builder;)Vintermediary method_46028Lnet/minecraft/class_7789;method_46028(Lnet/minecraft/class_1299;Lnet/minecraft/class_5321;Lnet/minecraft/class_52$class_53;)Vofficial aLnk;a(Lbxn;Lalq;Lfay$a;)V
-