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