Package net.minecraft.data.loot
Class EntityLootSubProvider
java.lang.Object
net.minecraft.data.loot.EntityLootSubProvider
- All Implemented Interfaces:
LootTableSubProvider
- Direct Known Subclasses:
UpdateOneTwentyOneEntityLoot
,VanillaEntityLoot
-
Field Summary
Modifier and TypeFieldDescriptionprivate final FeatureFlagSet
protected static final EntityPredicate.Builder
private final Map
<EntityType<?>, Map<ResourceKey<LootTable>, LootTable.Builder>> private final FeatureFlagSet
private static final Set
<EntityType<?>> -
Constructor Summary
ModifierConstructorDescriptionprotected
EntityLootSubProvider
(FeatureFlagSet p_251971_) protected
EntityLootSubProvider
(FeatureFlagSet p_266989_, FeatureFlagSet p_267138_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
add
(EntityType<?> p_252130_, ResourceKey<LootTable> p_332898_, 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
(HolderLookup.Provider p_327798_, BiConsumer<ResourceKey<LootTable>, LootTable.Builder> p_251751_) protected Stream
<EntityType<?>> protected LootItemCondition.Builder
protected LootItemCondition.Builder
killedByFrogVariant
(ResourceKey<FrogVariant> p_330466_)
-
Field Details
-
ENTITY_ON_FIRE
-
SPECIAL_LOOT_TABLE_TYPES
-
allowed
-
required
-
map
-
-
Constructor Details
-
EntityLootSubProvider
-
EntityLootSubProvider
-
-
Method Details
-
createSheepTable
-
generate
public abstract void generate() -
getKnownEntityTypes
-
generate
public void generate(HolderLookup.Provider p_327798_, BiConsumer<ResourceKey<LootTable>, LootTable.Builder> p_251751_) - Specified by:
generate
in interfaceLootTableSubProvider
-
canHaveLootTable
-
killedByFrog
-
killedByFrogVariant
-
add
-
add
protected void add(EntityType<?> p_252130_, ResourceKey<LootTable> p_332898_, LootTable.Builder p_249357_)
-