Package net.minecraft.data.loot
Class BlockLootTables
- java.lang.Object
-
- net.minecraft.data.loot.BlockLootTables
-
- All Implemented Interfaces:
java.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>>
public class BlockLootTables extends java.lang.Object implements java.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>>
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<Item>
EXPLOSION_RESISTANT
private static ILootCondition.IBuilder
HAS_NO_SHEARS_OR_SILK_TOUCH
private static ILootCondition.IBuilder
HAS_NO_SILK_TOUCH
private static ILootCondition.IBuilder
HAS_SHEARS
private static ILootCondition.IBuilder
HAS_SHEARS_OR_SILK_TOUCH
private static ILootCondition.IBuilder
HAS_SILK_TOUCH
private static float[]
JUNGLE_LEAVES_SAPLING_CHANGES
private java.util.Map<ResourceLocation,LootTable.Builder>
map
private static float[]
NORMAL_LEAVES_SAPLING_CHANCES
-
Constructor Summary
Constructors Constructor Description BlockLootTables()
-
Method Summary
-
-
-
Field Detail
-
HAS_SILK_TOUCH
private static final ILootCondition.IBuilder HAS_SILK_TOUCH
-
HAS_NO_SILK_TOUCH
private static final ILootCondition.IBuilder HAS_NO_SILK_TOUCH
-
HAS_SHEARS
private static final ILootCondition.IBuilder HAS_SHEARS
-
HAS_SHEARS_OR_SILK_TOUCH
private static final ILootCondition.IBuilder HAS_SHEARS_OR_SILK_TOUCH
-
HAS_NO_SHEARS_OR_SILK_TOUCH
private static final ILootCondition.IBuilder HAS_NO_SHEARS_OR_SILK_TOUCH
-
EXPLOSION_RESISTANT
private static final java.util.Set<Item> EXPLOSION_RESISTANT
-
NORMAL_LEAVES_SAPLING_CHANCES
private static final float[] NORMAL_LEAVES_SAPLING_CHANCES
-
JUNGLE_LEAVES_SAPLING_CHANGES
private static final float[] JUNGLE_LEAVES_SAPLING_CHANGES
-
map
private final java.util.Map<ResourceLocation,LootTable.Builder> map
-
-
Method Detail
-
applyExplosionDecay
protected static <T> T applyExplosionDecay(IItemProvider p_218552_0_, ILootFunctionConsumer<T> p_218552_1_)
-
applyExplosionCondition
protected static <T> T applyExplosionCondition(IItemProvider p_218560_0_, ILootConditionConsumer<T> p_218560_1_)
-
createSingleItemTable
protected static LootTable.Builder createSingleItemTable(IItemProvider p_218546_0_)
-
createSelfDropDispatchTable
protected static LootTable.Builder createSelfDropDispatchTable(Block p_218494_0_, ILootCondition.IBuilder p_218494_1_, LootEntry.Builder<?> p_218494_2_)
-
createSilkTouchDispatchTable
protected static LootTable.Builder createSilkTouchDispatchTable(Block p_218519_0_, LootEntry.Builder<?> p_218519_1_)
-
createShearsDispatchTable
protected static LootTable.Builder createShearsDispatchTable(Block p_218511_0_, LootEntry.Builder<?> p_218511_1_)
-
createSilkTouchOrShearsDispatchTable
protected static LootTable.Builder createSilkTouchOrShearsDispatchTable(Block p_218535_0_, LootEntry.Builder<?> p_218535_1_)
-
createSingleItemTableWithSilkTouch
protected static LootTable.Builder createSingleItemTableWithSilkTouch(Block p_218515_0_, IItemProvider p_218515_1_)
-
createSingleItemTable
protected static LootTable.Builder createSingleItemTable(IItemProvider p_218463_0_, IRandomRange p_218463_1_)
-
createSingleItemTableWithSilkTouch
protected static LootTable.Builder createSingleItemTableWithSilkTouch(Block p_218530_0_, IItemProvider p_218530_1_, IRandomRange p_218530_2_)
-
createSilkTouchOnlyTable
protected static LootTable.Builder createSilkTouchOnlyTable(IItemProvider p_218561_0_)
-
createPotFlowerItemTable
protected static LootTable.Builder createPotFlowerItemTable(IItemProvider p_218523_0_)
-
createSlabItemTable
protected static LootTable.Builder createSlabItemTable(Block p_218513_0_)
-
createSinglePropConditionTable
protected static <T extends java.lang.Comparable<T> & IStringSerializable> LootTable.Builder createSinglePropConditionTable(Block p_218562_0_, Property<T> p_218562_1_, T p_218562_2_)
-
createNameableBlockEntityTable
protected static LootTable.Builder createNameableBlockEntityTable(Block p_218481_0_)
-
createShulkerBoxDrop
protected static LootTable.Builder createShulkerBoxDrop(Block p_218544_0_)
-
createBannerDrop
protected static LootTable.Builder createBannerDrop(Block p_218559_0_)
-
createBeeNestDrop
private static LootTable.Builder createBeeNestDrop(Block p_229436_0_)
-
createBeeHiveDrop
private static LootTable.Builder createBeeHiveDrop(Block p_229437_0_)
-
createOreDrop
protected static LootTable.Builder createOreDrop(Block p_218476_0_, Item p_218476_1_)
-
createMushroomBlockDrop
protected static LootTable.Builder createMushroomBlockDrop(Block p_218491_0_, IItemProvider p_218491_1_)
-
createGrassDrops
protected static LootTable.Builder createGrassDrops(Block p_218570_0_)
-
createStemDrops
protected static LootTable.Builder createStemDrops(Block p_218475_0_, Item p_218475_1_)
-
createAttachedStemDrops
private static LootTable.Builder createAttachedStemDrops(Block p_229435_0_, Item p_229435_1_)
-
createShearsOnlyDrop
protected static LootTable.Builder createShearsOnlyDrop(IItemProvider p_218486_0_)
-
createLeavesDrops
protected static LootTable.Builder createLeavesDrops(Block p_218540_0_, Block p_218540_1_, float... p_218540_2_)
-
createOakLeavesDrops
protected static LootTable.Builder createOakLeavesDrops(Block p_218526_0_, Block p_218526_1_, float... p_218526_2_)
-
createCropDrops
protected static LootTable.Builder createCropDrops(Block p_218541_0_, Item p_218541_1_, Item p_218541_2_, ILootCondition.IBuilder p_218541_3_)
-
createDoublePlantShearsDrop
private static LootTable.Builder createDoublePlantShearsDrop(Block p_241750_0_)
-
createDoublePlantWithSeedDrops
private static LootTable.Builder createDoublePlantWithSeedDrops(Block p_241749_0_, Block p_241749_1_)
-
noDrop
public static LootTable.Builder noDrop()
-
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>>
-
createDoorTable
public static LootTable.Builder createDoorTable(Block p_239829_0_)
-
getKnownBlocks
protected java.lang.Iterable<Block> getKnownBlocks()
-
dropPottedContents
public void dropPottedContents(Block p_218547_1_)
-
dropOther
public void dropOther(Block p_218493_1_, IItemProvider p_218493_2_)
-
dropWhenSilkTouch
public void dropWhenSilkTouch(Block p_218466_1_)
-
dropSelf
public void dropSelf(Block p_218492_1_)
-
add
protected void add(Block p_218522_1_, java.util.function.Function<Block,LootTable.Builder> p_218522_2_)
-
add
protected void add(Block p_218507_1_, LootTable.Builder p_218507_2_)
-
-