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
protected static final EntityPredicate.Builder
private final Map<EntityType<?>,
Map<ResourceLocation, LootTable.Builder>> private static final Set<EntityType<?>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
add
(EntityType<?> p_252130_, ResourceLocation p_251706_, 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<ResourceLocation, LootTable.Builder> p_251751_) protected Stream<EntityType<?>>
protected LootItemCondition.Builder
protected LootItemCondition.Builder
killedByFrogVariant
(FrogVariant p_249403_)
-
Field Details
-
ENTITY_ON_FIRE
-
SPECIAL_LOOT_TABLE_TYPES
-
enabledFeatures
-
map
-
-
Constructor Details
-
EntityLootSubProvider
-
-
Method Details
-
createSheepTable
-
generate
public abstract void generate() -
getKnownEntityTypes
-
generate
- Specified by:
generate
in interfaceLootTableSubProvider
-
canHaveLootTable
-
killedByFrog
-
killedByFrogVariant
-
add
-
add
protected void add(EntityType<?> p_252130_, ResourceLocation p_251706_, LootTable.Builder p_249357_)
-