Package net.minecraft.data.loot
Class EntityLootSubProvider
java.lang.Object
net.minecraft.data.loot.EntityLootSubProvider
- All Implemented Interfaces:
LootTableSubProvider
- Direct Known Subclasses:
VanillaEntityLoot
-
Field Summary
Modifier and TypeFieldDescriptionprivate final FeatureFlagSet
private final Map
<EntityType<?>, Map<ResourceKey<LootTable>, LootTable.Builder>> protected final HolderLookup.Provider
private final FeatureFlagSet
private static final Set
<EntityType<?>> -
Constructor Summary
ModifierConstructorDescriptionprotected
EntityLootSubProvider
(FeatureFlagSet p_266989_, HolderLookup.Provider p_345284_) protected
EntityLootSubProvider
(FeatureFlagSet p_251971_, FeatureFlagSet p_345117_, HolderLookup.Provider p_344819_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
add
(EntityType<?> p_252130_, ResourceKey<LootTable> p_335943_, LootTable.Builder p_249357_) protected void
add
(EntityType<?> p_248740_, LootTable.Builder p_249440_) protected boolean
canHaveLootTable
(EntityType<?> p_249029_) protected static LootTable.Builder
createSheepTable
(ItemLike p_249422_) abstract void
generate()
void
generate
(BiConsumer<ResourceKey<LootTable>, LootTable.Builder> p_251751_) protected Stream
<EntityType<?>> protected LootItemCondition.Builder
protected LootItemCondition.Builder
killedByFrogVariant
(ResourceKey<FrogVariant> p_335676_) protected final AnyOfCondition.Builder
-
Field Details
-
SPECIAL_LOOT_TABLE_TYPES
-
registries
-
allowed
-
required
-
map
-
-
Constructor Details
-
EntityLootSubProvider
-
EntityLootSubProvider
protected EntityLootSubProvider(FeatureFlagSet p_251971_, FeatureFlagSet p_345117_, HolderLookup.Provider p_344819_)
-
-
Method Details
-
shouldSmeltLoot
-
createSheepTable
-
generate
public abstract void generate() -
getKnownEntityTypes
-
generate
- Specified by:
generate
in interfaceLootTableSubProvider
-
canHaveLootTable
-
killedByFrog
-
killedByFrogVariant
-
add
-
add
protected void add(EntityType<?> p_252130_, ResourceKey<LootTable> p_335943_, LootTable.Builder p_249357_)
-