Class EntityLootTableGenerator

java.lang.Object
net.minecraft.data.server.loottable.EntityLootTableGenerator
All Implemented Interfaces:
LootTableGenerator
Direct Known Subclasses:
VanillaEntityLootTableGenerator

public abstract class EntityLootTableGenerator extends Object implements LootTableGenerator
Mappings:
Namespace Name
named net/minecraft/data/server/loottable/EntityLootTableGenerator
intermediary net/minecraft/class_7789
official mr
  • Field Details

    • ENTITY_TYPES_IN_MISC_GROUP_TO_CHECK

      private static final Set<EntityType<?>> ENTITY_TYPES_IN_MISC_GROUP_TO_CHECK
      Mappings:
      Namespace Name Mixin selector
      named ENTITY_TYPES_IN_MISC_GROUP_TO_CHECK Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;ENTITY_TYPES_IN_MISC_GROUP_TO_CHECK:Ljava/util/Set;
      intermediary field_40613 Lnet/minecraft/class_7789;field_40613:Ljava/util/Set;
      official b Lmr;b:Ljava/util/Set;
    • registryLookup

      protected final RegistryWrapper.WrapperLookup registryLookup
      Mappings:
      Namespace Name Mixin selector
      named registryLookup Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;registryLookup:Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;
      intermediary field_51846 Lnet/minecraft/class_7789;field_51846:Lnet/minecraft/class_7225$class_7874;
      official a Lmr;a:Ljl$a;
    • requiredFeatures

      private final FeatureSet 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 c Lmr;c:Lcoz;
    • featureSet

      private final FeatureSet 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 d Lmr;d:Lcoz;
    • lootTables

      private final Map<EntityType<?>,Map<RegistryKey<LootTable>,LootTable.Builder>> 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 e Lmr;e:Ljava/util/Map;
  • Constructor Details

    • EntityLootTableGenerator

      protected EntityLootTableGenerator(FeatureSet requiredFeatures, RegistryWrapper.WrapperLookup registryLookup)
      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> Lmr;<init>(Lcoz;Ljl$a;)V
    • EntityLootTableGenerator

      protected EntityLootTableGenerator(FeatureSet requiredFeatures, FeatureSet featureSet, RegistryWrapper.WrapperLookup registryLookup)
      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> Lmr;<init>(Lcoz;Lcoz;Ljl$a;)V
  • Method Details

    • createSmeltLootCondition

      protected final AnyOfLootCondition.Builder 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 Lmr;a()Letv$a;
    • createForSheep

      protected static LootTable.Builder createForSheep(ItemConvertible item)
      Mappings:
      Namespace Name Mixin selector
      named createForSheep Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;createForSheep(Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/loot/LootTable$Builder;
      intermediary method_46031 Lnet/minecraft/class_7789;method_46031(Lnet/minecraft/class_1935;)Lnet/minecraft/class_52$class_53;
      official a Lmr;a(Ldcf;)Lerb$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 Lmr;b()V
    • accept

      public void accept(BiConsumer<RegistryKey<LootTable>,LootTable.Builder> lootTableBiConsumer)
      Specified by:
      accept in interface LootTableGenerator
      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 Lmt;generate(Ljava/util/function/BiConsumer;)V
    • shouldCheck

      private static boolean shouldCheck(EntityType<?> entityType)
      Mappings:
      Namespace Name Mixin selector
      named shouldCheck Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;shouldCheck(Lnet/minecraft/entity/EntityType;)Z
      intermediary method_46027 Lnet/minecraft/class_7789;method_46027(Lnet/minecraft/class_1299;)Z
      official a Lmr;a(Lbsn;)Z
    • killedByFrog

      protected LootCondition.Builder killedByFrog()
      Mappings:
      Namespace Name Mixin selector
      named killedByFrog Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;killedByFrog()Lnet/minecraft/loot/condition/LootCondition$Builder;
      intermediary method_46034 Lnet/minecraft/class_7789;method_46034()Lnet/minecraft/class_5341$class_210;
      official c Lmr;c()Leuh$a;
    • killedByFrog

      protected LootCondition.Builder killedByFrog(RegistryKey<FrogVariant> frogVariant)
      Mappings:
      Namespace Name Mixin selector
      named killedByFrog Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;killedByFrog(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/loot/condition/LootCondition$Builder;
      intermediary method_46030 Lnet/minecraft/class_7789;method_46030(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5341$class_210;
      official a Lmr;a(Lakj;)Leuh$a;
    • register

      protected void register(EntityType<?> entityType, LootTable.Builder lootTable)
      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 Lmr;a(Lbsn;Lerb$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 Lmr;a(Lbsn;Lakj;Lerb$a;)V