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 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_, 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
-
allowed
-
required
-
map
-
-
Constructor Details
-
EntityLootSubProvider
-
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_)
-