Class EntityLootTableGenerator
java.lang.Object
net.minecraft.data.server.loottable.EntityLootTableGenerator
- All Implemented Interfaces:
LootTableGenerator
- Direct Known Subclasses:
OneTwentyOneEntityLootTableGenerator
,VanillaEntityLootTableGenerator
- Mappings:
Namespace Name official mg
intermediary net/minecraft/class_7789
named net/minecraft/data/server/loottable/EntityLootTableGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Set
<EntityType<?>> private final FeatureSet
private final Map
<EntityType<?>, Map<RegistryKey<LootTable>, LootTable.Builder>> protected static final EntityPredicate.Builder
private final FeatureSet
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EntityLootTableGenerator
(FeatureSet requiredFeatures) protected
EntityLootTableGenerator
(FeatureSet requiredFeatures, FeatureSet featureSet) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(RegistryWrapper.WrapperLookup registryLookup, BiConsumer<RegistryKey<LootTable>, LootTable.Builder> consumer) protected static LootTable.Builder
abstract void
generate()
protected LootCondition.Builder
protected LootCondition.Builder
killedByFrog
(RegistryKey<FrogVariant> frogVariant) protected void
register
(EntityType<?> entityType, LootTable.Builder lootTable) protected void
register
(EntityType<?> entityType, RegistryKey<LootTable> tableKey, LootTable.Builder lootTable) private static boolean
shouldCheck
(EntityType<?> entityType)
-
Field Details
-
NEEDS_ENTITY_ON_FIRE
- Mappings:
Namespace Name Mixin selector official a
Lmg;a:Lbr$a;
intermediary field_40612
Lnet/minecraft/class_7789;field_40612:Lnet/minecraft/class_2048$class_2049;
named NEEDS_ENTITY_ON_FIRE
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;NEEDS_ENTITY_ON_FIRE:Lnet/minecraft/predicate/entity/EntityPredicate$Builder;
-
ENTITY_TYPES_IN_MISC_GROUP_TO_CHECK
- Mappings:
Namespace Name Mixin selector official b
Lmg;b:Ljava/util/Set;
intermediary field_40613
Lnet/minecraft/class_7789;field_40613:Ljava/util/Set;
named ENTITY_TYPES_IN_MISC_GROUP_TO_CHECK
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;ENTITY_TYPES_IN_MISC_GROUP_TO_CHECK:Ljava/util/Set;
-
requiredFeatures
- Mappings:
Namespace Name Mixin selector official c
Lmg;c:Lcnu;
intermediary field_42084
Lnet/minecraft/class_7789;field_42084:Lnet/minecraft/class_7699;
named requiredFeatures
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;requiredFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;
-
featureSet
- Mappings:
Namespace Name Mixin selector official d
Lmg;d:Lcnu;
intermediary field_42085
Lnet/minecraft/class_7789;field_42085:Lnet/minecraft/class_7699;
named featureSet
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;featureSet:Lnet/minecraft/resource/featuretoggle/FeatureSet;
-
lootTables
- Mappings:
Namespace Name Mixin selector official e
Lmg;e:Ljava/util/Map;
intermediary field_40615
Lnet/minecraft/class_7789;field_40615:Ljava/util/Map;
named lootTables
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;lootTables:Ljava/util/Map;
-
-
Constructor Details
-
EntityLootTableGenerator
- Mappings:
Namespace Name Mixin selector official <init>
Lmg;<init>(Lcnu;)V
intermediary <init>
Lnet/minecraft/class_7789;<init>(Lnet/minecraft/class_7699;)V
named <init>
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;)V
-
EntityLootTableGenerator
- Mappings:
Namespace Name Mixin selector official <init>
Lmg;<init>(Lcnu;Lcnu;)V
intermediary <init>
Lnet/minecraft/class_7789;<init>(Lnet/minecraft/class_7699;Lnet/minecraft/class_7699;)V
named <init>
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/resource/featuretoggle/FeatureSet;)V
-
-
Method Details
-
createForSheep
- Mappings:
Namespace Name Mixin selector official a
Lmg;a(Ldac;)Leoq$a;
intermediary method_46031
Lnet/minecraft/class_7789;method_46031(Lnet/minecraft/class_1935;)Lnet/minecraft/class_52$class_53;
named createForSheep
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;createForSheep(Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/loot/LootTable$Builder;
-
generate
public abstract void generate()- Mappings:
Namespace Name Mixin selector official a
Lmg;a()V
intermediary method_10400
Lnet/minecraft/class_7789;method_10400()V
named generate
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;generate()V
-
accept
public void accept(RegistryWrapper.WrapperLookup registryLookup, BiConsumer<RegistryKey<LootTable>, LootTable.Builder> consumer) - Specified by:
accept
in interfaceLootTableGenerator
- Mappings:
Namespace Name Mixin selector official generate
Lmi;generate(Liy$a;Ljava/util/function/BiConsumer;)V
intermediary method_10399
Lnet/minecraft/class_7791;method_10399(Lnet/minecraft/class_7225$class_7874;Ljava/util/function/BiConsumer;)V
named accept
Lnet/minecraft/data/server/loottable/LootTableGenerator;accept(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;Ljava/util/function/BiConsumer;)V
-
shouldCheck
- Mappings:
Namespace Name Mixin selector official a
Lmg;a(Lbrn;)Z
intermediary method_46027
Lnet/minecraft/class_7789;method_46027(Lnet/minecraft/class_1299;)Z
named shouldCheck
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;shouldCheck(Lnet/minecraft/entity/EntityType;)Z
-
killedByFrog
- Mappings:
Namespace Name Mixin selector official b
Lmg;b()Lerq$a;
intermediary method_46034
Lnet/minecraft/class_7789;method_46034()Lnet/minecraft/class_5341$class_210;
named killedByFrog
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;killedByFrog()Lnet/minecraft/loot/condition/LootCondition$Builder;
-
killedByFrog
- Mappings:
Namespace Name Mixin selector official a
Lmg;a(Lakg;)Lerq$a;
intermediary method_46030
Lnet/minecraft/class_7789;method_46030(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5341$class_210;
named killedByFrog
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;killedByFrog(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/loot/condition/LootCondition$Builder;
-
register
- Mappings:
Namespace Name Mixin selector official a
Lmg;a(Lbrn;Leoq$a;)V
intermediary method_46029
Lnet/minecraft/class_7789;method_46029(Lnet/minecraft/class_1299;Lnet/minecraft/class_52$class_53;)V
named register
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;register(Lnet/minecraft/entity/EntityType;Lnet/minecraft/loot/LootTable$Builder;)V
-
register
protected void register(EntityType<?> entityType, RegistryKey<LootTable> tableKey, LootTable.Builder lootTable) - Mappings:
Namespace Name Mixin selector official a
Lmg;a(Lbrn;Lakg;Leoq$a;)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
named register
Lnet/minecraft/data/server/loottable/EntityLootTableGenerator;register(Lnet/minecraft/entity/EntityType;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/loot/LootTable$Builder;)V
-