Class EntityLootTableGenerator
java.lang.Object
net.minecraft.data.server.loottable.EntityLootTableGenerator
- All Implemented Interfaces:
LootTableGenerator
- Direct Known Subclasses:
OneTwentyOneEntityLootTableGenerator,VanillaEntityLootTableGenerator
- Mappings:
Namespace Name named net/minecraft/data/server/loottable/EntityLootTableGeneratorintermediary net/minecraft/class_7789official ms
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Set<EntityType<?>> private final FeatureSetprivate final Map<EntityType<?>, Map<RegistryKey<LootTable>, LootTable.Builder>> protected static final EntityPredicate.Builderprivate final FeatureSet -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityLootTableGenerator(FeatureSet requiredFeatures) protectedEntityLootTableGenerator(FeatureSet requiredFeatures, FeatureSet featureSet) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RegistryWrapper.WrapperLookup registryLookup, BiConsumer<RegistryKey<LootTable>, LootTable.Builder> consumer) protected static LootTable.Builderabstract voidgenerate()protected LootCondition.Builderprotected LootCondition.BuilderkilledByFrog(RegistryKey<FrogVariant> frogVariant) protected voidregister(EntityType<?> entityType, LootTable.Builder lootTable) protected voidregister(EntityType<?> entityType, RegistryKey<LootTable> tableKey, LootTable.Builder lootTable) private static booleanshouldCheck(EntityType<?> entityType)
-
Field Details
-
NEEDS_ENTITY_ON_FIRE
- Mappings:
Namespace Name Mixin selector named NEEDS_ENTITY_ON_FIRELnet/minecraft/data/server/loottable/EntityLootTableGenerator;NEEDS_ENTITY_ON_FIRE:Lnet/minecraft/predicate/entity/EntityPredicate$Builder;intermediary field_40612Lnet/minecraft/class_7789;field_40612:Lnet/minecraft/class_2048$class_2049;official aLms;a:Lbu$a;
-
ENTITY_TYPES_IN_MISC_GROUP_TO_CHECK
- Mappings:
Namespace Name Mixin selector named ENTITY_TYPES_IN_MISC_GROUP_TO_CHECKLnet/minecraft/data/server/loottable/EntityLootTableGenerator;ENTITY_TYPES_IN_MISC_GROUP_TO_CHECK:Ljava/util/Set;intermediary field_40613Lnet/minecraft/class_7789;field_40613:Ljava/util/Set;official bLms;b:Ljava/util/Set;
-
requiredFeatures
- Mappings:
Namespace Name Mixin selector named requiredFeaturesLnet/minecraft/data/server/loottable/EntityLootTableGenerator;requiredFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary field_42084Lnet/minecraft/class_7789;field_42084:Lnet/minecraft/class_7699;official cLms;c:Lcpn;
-
featureSet
- Mappings:
Namespace Name Mixin selector named featureSetLnet/minecraft/data/server/loottable/EntityLootTableGenerator;featureSet:Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary field_42085Lnet/minecraft/class_7789;field_42085:Lnet/minecraft/class_7699;official dLms;d:Lcpn;
-
lootTables
- Mappings:
Namespace Name Mixin selector named lootTablesLnet/minecraft/data/server/loottable/EntityLootTableGenerator;lootTables:Ljava/util/Map;intermediary field_40615Lnet/minecraft/class_7789;field_40615:Ljava/util/Map;official eLms;e:Ljava/util/Map;
-
-
Constructor Details
-
EntityLootTableGenerator
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Vintermediary <init>Lnet/minecraft/class_7789;<init>(Lnet/minecraft/class_7699;)Vofficial <init>Lms;<init>(Lcpn;)V
-
EntityLootTableGenerator
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/resource/featuretoggle/FeatureSet;)Vintermediary <init>Lnet/minecraft/class_7789;<init>(Lnet/minecraft/class_7699;Lnet/minecraft/class_7699;)Vofficial <init>Lms;<init>(Lcpn;Lcpn;)V
-
-
Method Details
-
createForSheep
- Mappings:
Namespace Name Mixin selector named createForSheepLnet/minecraft/data/server/loottable/EntityLootTableGenerator;createForSheep(Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/loot/LootTable$Builder;intermediary method_46031Lnet/minecraft/class_7789;method_46031(Lnet/minecraft/class_1935;)Lnet/minecraft/class_52$class_53;official aLms;a(Ldbz;)Leqp$a;
-
generate
public abstract void generate()- Mappings:
Namespace Name Mixin selector named generateLnet/minecraft/data/server/loottable/EntityLootTableGenerator;generate()Vintermediary method_10400Lnet/minecraft/class_7789;method_10400()Vofficial aLms;a()V
-
accept
public void accept(RegistryWrapper.WrapperLookup registryLookup, BiConsumer<RegistryKey<LootTable>, LootTable.Builder> consumer) - Specified by:
acceptin interfaceLootTableGenerator- Mappings:
Namespace Name Mixin selector named acceptLnet/minecraft/data/server/loottable/LootTableGenerator;accept(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;Ljava/util/function/BiConsumer;)Vintermediary method_10399Lnet/minecraft/class_7791;method_10399(Lnet/minecraft/class_7225$class_7874;Ljava/util/function/BiConsumer;)Vofficial generateLmu;generate(Ljk$a;Ljava/util/function/BiConsumer;)V
-
shouldCheck
- Mappings:
Namespace Name Mixin selector named shouldCheckLnet/minecraft/data/server/loottable/EntityLootTableGenerator;shouldCheck(Lnet/minecraft/entity/EntityType;)Zintermediary method_46027Lnet/minecraft/class_7789;method_46027(Lnet/minecraft/class_1299;)Zofficial aLms;a(Lbtc;)Z
-
killedByFrog
- Mappings:
Namespace Name Mixin selector named killedByFrogLnet/minecraft/data/server/loottable/EntityLootTableGenerator;killedByFrog()Lnet/minecraft/loot/condition/LootCondition$Builder;intermediary method_46034Lnet/minecraft/class_7789;method_46034()Lnet/minecraft/class_5341$class_210;official bLms;b()Letu$a;
-
killedByFrog
- Mappings:
Namespace Name Mixin selector named killedByFrogLnet/minecraft/data/server/loottable/EntityLootTableGenerator;killedByFrog(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/loot/condition/LootCondition$Builder;intermediary method_46030Lnet/minecraft/class_7789;method_46030(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5341$class_210;official aLms;a(Lale;)Letu$a;
-
register
- Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/data/server/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 aLms;a(Lbtc;Leqp$a;)V
-
register
protected void register(EntityType<?> entityType, RegistryKey<LootTable> tableKey, LootTable.Builder lootTable) - Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/data/server/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 aLms;a(Lbtc;Lale;Leqp$a;)V
-