Class EntityLootSubProvider
java.lang.Object
net.minecraft.data.loot.EntityLootSubProvider
- All Implemented Interfaces:
LootTableSubProvider
- Direct Known Subclasses:
VanillaEntityLoot
-
Nested Class Summary
Nested classes/interfaces inherited from interface LootTableSubProvider
LootTableSubProvider.Context, LootTableSubProvider.Factory -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FeatureFlagSetprotected final HolderGetter<DamageType> protected final HolderGetter<Enchantment> protected final HolderGetter<EntityType<?>> protected final HolderGetter<FrogVariant> protected final HolderGetter<Item> protected final HolderGetter<LootTable> private final Map<EntityType<?>, Map<ResourceKey<LootTable>, LootTable.Builder>> protected final LootTableSubProvider.Contextprivate final FeatureFlagSet -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityLootSubProvider(FeatureFlagSet enabledFeatures, LootTableSubProvider.Context output) protectedEntityLootSubProvider(FeatureFlagSet allowed, FeatureFlagSet required, LootTableSubProvider.Context output) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadd(EntityType<?> type, ResourceKey<LootTable> lootTable, LootTable.Builder builder) protected voidadd(EntityType<?> type, LootTable.Builder builder) static LootPool.BuildercreateSheepDispatchPool(ColorCollection<Holder<LootTable>> tableNames) abstract voidgenerate()protected Stream<EntityType<?>> protected LootItemCondition.Builderprotected LootItemCondition.BuilderkilledByFrogVariant(ResourceKey<FrogVariant> variant) protected DamageSourcePredicate.Buildervoidrun()protected final AnyOfCondition.Builder
-
Field Details
-
output
-
items
-
enchantments
-
entityTypes
-
frogVariants
-
damageTypes
-
lootTables
-
allowed
-
required
-
map
-
-
Constructor Details
-
EntityLootSubProvider
protected EntityLootSubProvider(FeatureFlagSet enabledFeatures, LootTableSubProvider.Context output) -
EntityLootSubProvider
protected EntityLootSubProvider(FeatureFlagSet allowed, FeatureFlagSet required, LootTableSubProvider.Context output)
-
-
Method Details
-
projectileDamage
-
shouldSmeltLoot
-
createSheepDispatchPool
public static LootPool.Builder createSheepDispatchPool(ColorCollection<Holder<LootTable>> tableNames) -
generate
public abstract void generate() -
getKnownEntityTypes
-
run
public void run()- Specified by:
runin interfaceLootTableSubProvider
-
killedByFrog
-
killedByFrogVariant
-
add
-
add
-