Package net.minecraft.data.loot
Class BlockLoot
java.lang.Object
net.minecraft.data.loot.BlockLoot
- All Implemented Interfaces:
Consumer<BiConsumer<ResourceLocation,
LootTable.Builder>>
public class BlockLoot
extends Object
implements Consumer<BiConsumer<ResourceLocation,LootTable.Builder>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final LootItemCondition.Builder
private static final LootItemCondition.Builder
private static final LootItemCondition.Builder
private static final LootItemCondition.Builder
private static final LootItemCondition.Builder
private static final float[]
private final Map<ResourceLocation,
LootTable.Builder> private static final float[]
private static final float[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(BiConsumer<ResourceLocation, LootTable.Builder> p_124179_) protected void
add
(Block p_124176_, Function<Block, LootTable.Builder> p_124177_) protected void
add
(Block p_124166_, LootTable.Builder p_124167_) private void
addNetherVinesDropTable
(Block p_124281_, Block p_124282_) protected void
protected static <T extends ConditionUserBuilder<T>>
TapplyExplosionCondition
(ItemLike p_236225_, ConditionUserBuilder<T> p_236226_) protected static <T extends FunctionUserBuilder<T>>
TapplyExplosionDecay
(ItemLike p_236222_, FunctionUserBuilder<T> p_236223_) protected static LootTable.Builder
createAttachedStemDrops
(Block p_124275_, Item p_124276_) protected static LootTable.Builder
createBannerDrop
(Block p_124297_) protected static LootTable.Builder
createBeeHiveDrop
(Block p_124301_) protected static LootTable.Builder
createBeeNestDrop
(Block p_124299_) protected static LootTable.Builder
createCandleCakeDrops
(Block p_176059_) protected static LootTable.Builder
createCandleDrops
(Block p_176057_) protected static LootTable.Builder
createCaveVinesDrop
(Block p_176053_) protected static LootTable.Builder
createCopperOreDrops
(Block p_176047_) protected static LootTable.Builder
createCropDrops
(Block p_124143_, Item p_124144_, Item p_124145_, LootItemCondition.Builder p_124146_) static LootTable.Builder
createDoorTable
(Block p_124138_) protected static LootTable.Builder
createDoublePlantShearsDrop
(Block p_124305_) protected static LootTable.Builder
createDoublePlantWithSeedDrops
(Block p_124261_, Block p_124262_) protected static LootTable.Builder
createGrassDrops
(Block p_124303_) protected static LootTable.Builder
createLapisOreDrops
(Block p_176049_) protected static LootTable.Builder
createLeavesDrops
(Block p_124158_, Block p_124159_, float... p_124160_) protected static LootTable.Builder
createMangroveLeavesDrops
(Block p_236249_) protected static LootTable.Builder
createMultifaceBlockDrops
(Block p_236228_, LootItemCondition.Builder p_236229_) protected static LootTable.Builder
createMushroomBlockDrop
(Block p_124278_, ItemLike p_124279_) protected static LootTable.Builder
createNameableBlockEntityTable
(Block p_124293_) protected static LootTable.Builder
createOakLeavesDrops
(Block p_124264_, Block p_124265_, float... p_124266_) protected static LootTable.Builder
createOreDrop
(Block p_124140_, Item p_124141_) protected static LootTable.Builder
createPotFlowerItemTable
(ItemLike p_124271_) protected static LootTable.Builder
createRedstoneOreDrops
(Block p_176051_) protected static LootTable.Builder
createSelfDropDispatchTable
(Block p_124172_, LootItemCondition.Builder p_124173_, LootPoolEntryContainer.Builder<?> p_124174_) protected static LootTable.Builder
createShearsDispatchTable
(Block p_124268_, LootPoolEntryContainer.Builder<?> p_124269_) protected static LootTable.Builder
createShearsOnlyDrop
(ItemLike p_124287_) protected static LootTable.Builder
createShulkerBoxDrop
(Block p_124295_) protected static LootTable.Builder
createSilkTouchDispatchTable
(Block p_124169_, LootPoolEntryContainer.Builder<?> p_124170_) protected static LootTable.Builder
createSilkTouchOnlyTable
(ItemLike p_124251_) protected static LootTable.Builder
createSilkTouchOrShearsDispatchTable
(Block p_124284_, LootPoolEntryContainer.Builder<?> p_124285_) protected static LootTable.Builder
createSingleItemTable
(ItemLike p_124127_) protected static LootTable.Builder
createSingleItemTable
(ItemLike p_176040_, NumberProvider p_176041_) protected static LootTable.Builder
createSingleItemTableWithSilkTouch
(Block p_124258_, ItemLike p_124259_) protected static LootTable.Builder
createSingleItemTableWithSilkTouch
(Block p_176043_, ItemLike p_176044_, NumberProvider p_176045_) protected static <T extends Comparable<T> & StringRepresentable>
LootTable.BuildercreateSinglePropConditionTable
(Block p_124162_, Property<T> p_124163_, T p_124164_) protected static LootTable.Builder
createSlabItemTable
(Block p_124291_) protected static LootTable.Builder
createStemDrops
(Block p_124255_, Item p_124256_) void
void
dropPottedContents
(Block p_124253_) void
void
dropWhenSilkTouch
(Block p_124273_) static LootTable.Builder
noDrop()
void
otherWhenSilkTouch
(Block p_124155_, Block p_124156_)
-
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 -
NORMAL_LEAVES_STICK_CHANCES
private static final float[] NORMAL_LEAVES_STICK_CHANCES -
map
-
-
Constructor Details
-
BlockLoot
public BlockLoot()
-
-
Method Details
-
applyExplosionDecay
protected static <T extends FunctionUserBuilder<T>> T applyExplosionDecay(ItemLike p_236222_, FunctionUserBuilder<T> p_236223_) -
applyExplosionCondition
protected static <T extends ConditionUserBuilder<T>> T applyExplosionCondition(ItemLike p_236225_, ConditionUserBuilder<T> p_236226_) -
createSingleItemTable
-
createSelfDropDispatchTable
protected static LootTable.Builder createSelfDropDispatchTable(Block p_124172_, LootItemCondition.Builder p_124173_, LootPoolEntryContainer.Builder<?> p_124174_) -
createSilkTouchDispatchTable
protected static LootTable.Builder createSilkTouchDispatchTable(Block p_124169_, LootPoolEntryContainer.Builder<?> p_124170_) -
createShearsDispatchTable
protected static LootTable.Builder createShearsDispatchTable(Block p_124268_, LootPoolEntryContainer.Builder<?> p_124269_) -
createSilkTouchOrShearsDispatchTable
protected static LootTable.Builder createSilkTouchOrShearsDispatchTable(Block p_124284_, LootPoolEntryContainer.Builder<?> p_124285_) -
createSingleItemTableWithSilkTouch
protected static LootTable.Builder createSingleItemTableWithSilkTouch(Block p_124258_, ItemLike p_124259_) -
createSingleItemTable
protected static LootTable.Builder createSingleItemTable(ItemLike p_176040_, NumberProvider p_176041_) -
createSingleItemTableWithSilkTouch
protected static LootTable.Builder createSingleItemTableWithSilkTouch(Block p_176043_, ItemLike p_176044_, NumberProvider p_176045_) -
createSilkTouchOnlyTable
-
createPotFlowerItemTable
-
createSlabItemTable
-
createSinglePropConditionTable
protected static <T extends Comparable<T> & StringRepresentable> LootTable.Builder createSinglePropConditionTable(Block p_124162_, Property<T> p_124163_, T p_124164_) -
createNameableBlockEntityTable
-
createShulkerBoxDrop
-
createCopperOreDrops
-
createLapisOreDrops
-
createRedstoneOreDrops
-
createBannerDrop
-
createBeeNestDrop
-
createBeeHiveDrop
-
createCaveVinesDrop
-
createOreDrop
-
createMushroomBlockDrop
-
createGrassDrops
-
createStemDrops
-
createAttachedStemDrops
-
createShearsOnlyDrop
-
createMultifaceBlockDrops
protected static LootTable.Builder createMultifaceBlockDrops(Block p_236228_, LootItemCondition.Builder p_236229_) -
createLeavesDrops
protected static LootTable.Builder createLeavesDrops(Block p_124158_, Block p_124159_, float... p_124160_) -
createOakLeavesDrops
protected static LootTable.Builder createOakLeavesDrops(Block p_124264_, Block p_124265_, float... p_124266_) -
createMangroveLeavesDrops
-
createCropDrops
protected static LootTable.Builder createCropDrops(Block p_124143_, Item p_124144_, Item p_124145_, LootItemCondition.Builder p_124146_) -
createDoublePlantShearsDrop
-
createDoublePlantWithSeedDrops
-
createCandleDrops
-
createCandleCakeDrops
-
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
-