Package net.minecraft.data.loot
Class EntityLootTables
- java.lang.Object
-
- net.minecraft.data.loot.EntityLootTables
-
- All Implemented Interfaces:
java.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>>
public class EntityLootTables extends java.lang.Object implements java.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>>
-
-
Field Summary
Fields Modifier and Type Field Description protected static EntityPredicate.Builder
ENTITY_ON_FIRE
private java.util.Map<ResourceLocation,LootTable.Builder>
map
private static java.util.Set<EntityType<?>>
SPECIAL_LOOT_TABLE_TYPES
-
Constructor Summary
Constructors Constructor Description EntityLootTables()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.util.function.BiConsumer<ResourceLocation,LootTable.Builder> p_accept_1_)
protected void
add(EntityType<?> p_218582_1_, LootTable.Builder p_218582_2_)
protected void
add(ResourceLocation p_218585_1_, LootTable.Builder p_218585_2_)
protected void
addTables()
private static LootTable.Builder
createSheepTable(IItemProvider p_218583_0_)
protected java.lang.Iterable<EntityType<?>>
getKnownEntities()
protected boolean
isNonLiving(EntityType<?> entitytype)
-
-
-
Field Detail
-
ENTITY_ON_FIRE
protected static final EntityPredicate.Builder ENTITY_ON_FIRE
-
SPECIAL_LOOT_TABLE_TYPES
private static final java.util.Set<EntityType<?>> SPECIAL_LOOT_TABLE_TYPES
-
map
private final java.util.Map<ResourceLocation,LootTable.Builder> map
-
-
Method Detail
-
createSheepTable
private static LootTable.Builder createSheepTable(IItemProvider p_218583_0_)
-
addTables
protected void addTables()
-
accept
public void accept(java.util.function.BiConsumer<ResourceLocation,LootTable.Builder> p_accept_1_)
- Specified by:
accept
in interfacejava.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>>
-
getKnownEntities
protected java.lang.Iterable<EntityType<?>> getKnownEntities()
-
isNonLiving
protected boolean isNonLiving(EntityType<?> entitytype)
-
add
protected void add(EntityType<?> p_218582_1_, LootTable.Builder p_218582_2_)
-
add
protected void add(ResourceLocation p_218585_1_, LootTable.Builder p_218585_2_)
-
-