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.BuilderENTITY_ON_FIREprivate java.util.Map<ResourceLocation,LootTable.Builder>mapprivate 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 voidaccept(java.util.function.BiConsumer<ResourceLocation,LootTable.Builder> p_accept_1_)protected voidadd(EntityType<?> p_218582_1_, LootTable.Builder p_218582_2_)protected voidadd(ResourceLocation p_218585_1_, LootTable.Builder p_218585_2_)protected voidaddTables()private static LootTable.BuildercreateSheepTable(IItemProvider p_218583_0_)protected java.lang.Iterable<EntityType<?>>getKnownEntities()protected booleanisNonLiving(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:
acceptin 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_)
-
-