net.minecraft.data.loot

public abstract class BlockLootSubProvider

implements LootTableSubProvider

mu
net.minecraft.data.loot.BlockLootSubProvider
net.minecraft.class_7788
net.minecraft.data.server.loottable.BlockLootTableGenerator
net.minecraft.src.C_243556_

Field summary

Modifier and TypeField
protected static final LootItemCondition$Builder
a
HAS_SHEARS
field_40604
WITH_SHEARS
f_243905_
protected final HolderLookup$Provider
b
registries
field_51845
registryLookup
f_337332_
protected final Set<Item>
c
explosionResistant
field_40608
explosionImmuneItems
f_243865_
protected final FeatureFlagSet
d
enabledFeatures
field_40609
requiredFeatures
f_243739_
protected final Map<ResourceKey<LootTable>, LootTable$Builder>
e
map
field_40610
lootTables
f_244441_
protected static final float[]
f
NORMAL_LEAVES_SAPLING_CHANCES
field_40605
SAPLING_DROP_CHANCE
f_244509_
private static final float[]
g
NORMAL_LEAVES_STICK_CHANCES
field_40611
LEAVES_STICK_DROP_CHANCE
f_244531_

Constructor summary

ModifierConstructor
protected (Set<Item> explosionImmuneItems, FeatureFlagSet requiredFeatures, HolderLookup$Provider registryLookup)
protected (Set<Item> explosionImmuneItems, FeatureFlagSet requiredFeatures, Map<ResourceKey<LootTable>, LootTable$Builder> lootTables, HolderLookup$Provider registryLookup)

Method summary

Modifier and TypeMethod
protected LootItemCondition$Builder
a()
hasSilkTouch()
method_60390()
createSilkTouchCondition()
m_339433_()
protected LootItemCondition$Builder
b()
doesNotHaveSilkTouch()
method_60391()
createWithoutSilkTouchCondition()
m_340528_()
private LootItemCondition$Builder
e()
hasShearsOrSilkTouch()
method_60392()
createWithShearsOrSilkTouchCondition()
m_338918_()
private LootItemCondition$Builder
f()
doesNotHaveShearsOrSilkTouch()
method_60393()
createWithoutShearsOrSilkTouchCondition()
m_338639_()
protected <T extends FunctionUserBuilder<T>> T
a(dcv arg0, etb<T> arg1)
applyExplosionDecay(ItemLike arg0, FunctionUserBuilder<T> arg1)
method_45977(class_1935 arg0, class_116<T> arg1)
applyExplosionDecay(ItemConvertible drop, LootFunctionConsumingBuilder<T> builder)
m_246108_(C_1595_ p_248548_, C_2920_<T> arg1)
protected <T extends ConditionUserBuilder<T>> T
a(dcv arg0, euu<T> arg1)
applyExplosionCondition(ItemLike arg0, ConditionUserBuilder<T> arg1)
method_45978(class_1935 arg0, class_192<T> arg1)
addSurvivesExplosionCondition(ItemConvertible drop, LootConditionConsumingBuilder<T> builder)
m_247733_(C_1595_ p_248851_, C_2985_<T> arg1)
public LootTable$Builder
a(dcv arg0)
createSingleItemTable(ItemLike arg0)
method_45976(class_1935 arg0)
drops(ItemConvertible drop)
m_247033_(C_1595_ arg0)
private static LootTable$Builder
a(dfy arg0, evc$a arg1, esh$a<?> arg2)
createSelfDropDispatchTable(Block arg0, LootItemCondition$Builder arg1, LootPoolEntryContainer$Builder<?> arg2)
method_45991(class_2248 arg0, class_5341$class_210 arg1, class_79$class_80<?> arg2)
drops(Block drop, LootCondition$Builder conditionBuilder, LootPoolEntry$Builder<?> child)
m_246900_(C_1706_ p_252253_, C_3004_$C_3005_ p_248764_, C_2856_$C_2857_<?> p_249146_)
protected LootTable$Builder
a(dfy arg0, esh$a<?> arg1)
createSilkTouchDispatchTable(Block arg0, LootPoolEntryContainer$Builder<?> arg1)
method_45989(class_2248 arg0, class_79$class_80<?> arg1)
dropsWithSilkTouch(Block block, LootPoolEntry$Builder<?> loot)
m_247502_(C_1706_ p_252089_, C_2856_$C_2857_<?> arg1)
protected LootTable$Builder
b(dfy arg0, esh$a<?> arg1)
createShearsDispatchTable(Block arg0, LootPoolEntryContainer$Builder<?> arg1)
method_46001(class_2248 arg0, class_79$class_80<?> arg1)
dropsWithShears(Block block, LootPoolEntry$Builder<?> loot)
m_247184_(C_1706_ p_250102_, C_2856_$C_2857_<?> arg1)
protected LootTable$Builder
c(dfy arg0, esh$a<?> arg1)
createSilkTouchOrShearsDispatchTable(Block arg0, LootPoolEntryContainer$Builder<?> arg1)
method_46008(class_2248 arg0, class_79$class_80<?> arg1)
dropsWithSilkTouchOrShears(Block block, LootPoolEntry$Builder<?> loot)
m_246160_(C_1706_ p_251459_, C_2856_$C_2857_<?> arg1)
protected LootTable$Builder
a(dfy arg0, dcv arg1)
createSingleItemTableWithSilkTouch(Block arg0, ItemLike arg1)
method_45983(class_2248 arg0, class_1935 arg1)
drops(Block withSilkTouch, ItemConvertible withoutSilkTouch)
m_245514_(C_1706_ p_251905_, C_1595_ arg1)
protected LootTable$Builder
a(dcv arg0, evy arg1)
createSingleItemTable(ItemLike arg0, NumberProvider arg1)
method_45979(class_1935 arg0, class_5658 arg1)
drops(ItemConvertible drop, LootNumberProvider count)
m_245765_(C_1595_ p_249865_, C_141501_ arg1)
protected LootTable$Builder
a(dfy arg0, dcv arg1, evy arg2)
createSingleItemTableWithSilkTouch(Block arg0, ItemLike arg1, NumberProvider arg2)
method_45984(class_2248 arg0, class_1935 arg1, class_5658 arg2)
drops(Block block, ItemConvertible drop, LootNumberProvider count)
m_245142_(C_1706_ p_248558_, C_1595_ p_250047_, C_141501_ arg2)
private LootTable$Builder
c(dcv arg0)
createSilkTouchOnlyTable(ItemLike arg0)
method_46003(class_1935 arg0)
dropsWithSilkTouch(ItemConvertible drop)
m_245335_(C_1595_ arg0)
private LootTable$Builder
d(dcv arg0)
createPotFlowerItemTable(ItemLike arg0)
method_46009(class_1935 arg0)
pottedPlantDrops(ItemConvertible drop)
m_245602_(C_1595_ arg0)
protected LootTable$Builder
a(dfy arg0)
createSlabItemTable(Block arg0)
method_45980(class_2248 arg0)
slabDrops(Block drop)
m_247233_(C_1706_ arg0)
protected <T extends Comparable<T>, StringRepresentable> LootTable$Builder
a(dfy arg0, duf<T> arg1, T arg2)
createSinglePropConditionTable(Block arg0, Property<T> arg1, T arg2)
method_45987(class_2248 arg0, class_2769<T> arg1, T arg2)
dropsWithProperty(Block drop, Property<T> property, T value)
m_245178_(C_1706_ p_250272_, C_2097_<T> p_250292_, T arg2)
protected LootTable$Builder
b(dfy arg0)
createNameableBlockEntityTable(Block arg0)
method_45996(class_2248 arg0)
nameableContainerDrops(Block drop)
m_246180_(C_1706_ arg0)
protected LootTable$Builder
c(dfy arg0)
createShulkerBoxDrop(Block arg0)
method_46004(class_2248 arg0)
shulkerBoxDrops(Block drop)
m_247334_(C_1706_ arg0)
protected LootTable$Builder
d(dfy arg0)
createCopperOreDrops(Block arg0)
method_46010(class_2248 arg0)
copperOreDrops(Block drop)
m_246167_(C_1706_ arg0)
protected LootTable$Builder
e(dfy arg0)
createLapisOreDrops(Block arg0)
method_46011(class_2248 arg0)
lapisOreDrops(Block drop)
m_246218_(C_1706_ arg0)
protected LootTable$Builder
f(dfy arg0)
createRedstoneOreDrops(Block arg0)
method_46012(class_2248 arg0)
redstoneOreDrops(Block drop)
m_245671_(C_1706_ arg0)
protected LootTable$Builder
g(dfy arg0)
createBannerDrop(Block arg0)
method_46013(class_2248 arg0)
bannerDrops(Block drop)
m_247458_(C_1706_ arg0)
protected LootTable$Builder
h(dfy arg0)
createBeeNestDrop(Block arg0)
method_46014(class_2248 arg0)
beeNestDrops(Block drop)
m_247273_(C_1706_ arg0)
protected LootTable$Builder
i(dfy arg0)
createBeeHiveDrop(Block arg0)
method_46015(class_2248 arg0)
beehiveDrops(Block drop)
m_247247_(C_1706_ arg0)
protected LootTable$Builder
j(dfy arg0)
createCaveVinesDrop(Block arg0)
method_46016(class_2248 arg0)
glowBerryDrops(Block drop)
m_245658_(C_1706_ arg0)
protected LootTable$Builder
a(dfy arg0, cul arg1)
createOreDrop(Block arg0, Item arg1)
method_45981(class_2248 arg0, class_1792 arg1)
oreDrops(Block withSilkTouch, Item withoutSilkTouch)
m_246109_(C_1706_ p_249745_, C_1381_ arg1)
protected LootTable$Builder
b(dfy arg0, dcv arg1)
createMushroomBlockDrop(Block arg0, ItemLike arg1)
method_45998(class_2248 arg0, class_1935 arg1)
mushroomBlockDrops(Block withSilkTouch, ItemConvertible withoutSilkTouch)
m_245079_(C_1706_ p_249315_, C_1595_ arg1)
protected LootTable$Builder
k(dfy arg0)
createGrassDrops(Block arg0)
method_46017(class_2248 arg0)
shortPlantDrops(Block withShears)
m_245349_(C_1706_ arg0)
public LootTable$Builder
b(dfy arg0, cul arg1)
createStemDrops(Block arg0, Item arg1)
method_45997(class_2248 arg0, class_1792 arg1)
cropStemDrops(Block stem, Item drop)
m_247642_(C_1706_ p_249098_, C_1381_ arg1)
public LootTable$Builder
c(dfy arg0, cul arg1)
createAttachedStemDrops(Block arg0, Item arg1)
method_46005(class_2248 arg0, class_1792 arg1)
attachedCropStemDrops(Block stem, Item drop)
m_246312_(C_1706_ p_250678_, C_1381_ arg1)
protected static LootTable$Builder
b(dcv arg0)
createShearsOnlyDrop(ItemLike arg0)
method_45995(class_1935 arg0)
dropsWithShears(ItemConvertible drop)
m_245929_(C_1595_ p_250684_)
protected LootTable$Builder
a(dfy arg0, evc$a arg1)
createMultifaceBlockDrops(Block arg0, LootItemCondition$Builder arg1)
method_45990(class_2248 arg0, class_5341$class_210 arg1)
multifaceGrowthDrops(Block drop, LootCondition$Builder condition)
m_246235_(C_1706_ p_251535_, C_3004_$C_3005_ arg1)
protected LootTable$Builder
a(dfy arg0, dfy arg1, float... arg2)
createLeavesDrops(Block arg0, Block arg1, float... arg2)
method_45986(class_2248 arg0, class_2248 arg1, float... arg2)
leavesDrops(Block leaves, Block sapling, float... saplingChance)
m_246047_(C_1706_ p_250731_, C_1706_ p_248949_, float... arg2)
protected LootTable$Builder
b(dfy arg0, dfy arg1, float... arg2)
createOakLeavesDrops(Block arg0, Block arg1, float... arg2)
method_46000(class_2248 arg0, class_2248 arg1, float... arg2)
oakLeavesDrops(Block leaves, Block sapling, float... saplingChance)
m_246142_(C_1706_ p_251505_, C_1706_ p_250753_, float... arg2)
protected LootTable$Builder
l(dfy arg0)
createMangroveLeavesDrops(Block arg0)
method_46018(class_2248 arg0)
mangroveLeavesDrops(Block leaves)
m_245170_(C_1706_ arg0)
protected LootTable$Builder
a(dfy arg0, cul arg1, cul arg2, evc$a arg3)
createCropDrops(Block arg0, Item arg1, Item arg2, LootItemCondition$Builder arg3)
method_45982(class_2248 arg0, class_1792 arg1, class_1792 arg2, class_5341$class_210 arg3)
cropDrops(Block crop, Item product, Item seeds, LootCondition$Builder condition)
m_245238_(C_1706_ p_248599_, C_1381_ p_251915_, C_1381_ p_252202_, C_3004_$C_3005_ arg3)
protected LootTable$Builder
m(dfy arg0)
createDoublePlantShearsDrop(Block arg0)
method_46019(class_2248 arg0)
seagrassDrops(Block seagrass)
m_246463_(C_1706_ arg0)
protected LootTable$Builder
a(dfy arg0, dfy arg1)
createDoublePlantWithSeedDrops(Block arg0, Block arg1)
method_45985(class_2248 arg0, class_2248 arg1)
tallPlantDrops(Block tallPlant, Block shortPlant)
m_246224_(C_1706_ p_248735_, C_1706_ arg1)
protected LootTable$Builder
n(dfy arg0)
createCandleDrops(Block arg0)
method_46020(class_2248 arg0)
candleDrops(Block candle)
m_245895_(C_1706_ arg0)
protected LootTable$Builder
o(dfy arg0)
createPetalsDrops(Block arg0)
method_49358(class_2248 arg0)
flowerbedDrops(Block flowerbed)
m_271693_(C_1706_ arg0)
protected static LootTable$Builder
p(dfy arg0)
createCandleCakeDrops(Block arg0)
method_46021(class_2248 arg0)
candleCakeDrops(Block candleCake)
m_246838_(C_1706_ p_250280_)
public static LootTable$Builder
c()
noDrop()
method_45975()
dropsNothing()
m_246386_()
protected abstract void
d()
generate()
method_10379()
generate()
m_245660_()
public void
generate(BiConsumer<akq<erw>, erw$a> arg0)
generate(BiConsumer<ResourceKey<LootTable>, LootTable$Builder> arg0)
method_10399(BiConsumer<class_5321<class_52>, class_52$class_53> arg0)
accept(BiConsumer<RegistryKey<LootTable>, LootTable$Builder> arg0)
m_245126_(BiConsumer<C_5264_<C_2822_>, C_2822_$C_2824_> arg0)
protected void
b(dfy arg0, dfy arg1)
addNetherVinesDropTable(Block arg0, Block arg1)
method_45999(class_2248 arg0, class_2248 arg1)
addVinePlantDrop(Block vine, Block vinePlant)
m_245693_(C_1706_ p_250696_, C_1706_ arg1)
protected LootTable$Builder
q(dfy arg0)
createDoorTable(Block arg0)
method_46022(class_2248 arg0)
doorDrops(Block block)
m_247398_(C_1706_ arg0)
protected void
r(dfy arg0)
dropPottedContents(Block arg0)
method_46023(class_2248 arg0)
addPottedPlantDrops(Block block)
m_246535_(C_1706_ arg0)
protected void
c(dfy arg0, dfy arg1)
otherWhenSilkTouch(Block arg0, Block arg1)
method_46007(class_2248 arg0, class_2248 arg1)
addDropWithSilkTouch(Block block, Block drop)
m_245854_(C_1706_ p_252053_, C_1706_ arg1)
protected void
c(dfy arg0, dcv arg1)
dropOther(Block arg0, ItemLike arg1)
method_46006(class_2248 arg0, class_1935 arg1)
addDrop(Block block, ItemConvertible drop)
m_246125_(C_1706_ p_251883_, C_1595_ arg1)
protected void
s(dfy arg0)
dropWhenSilkTouch(Block arg0)
method_46024(class_2248 arg0)
addDropWithSilkTouch(Block block)
m_245644_(C_1706_ arg0)
protected void
t(dfy arg0)
dropSelf(Block arg0)
method_46025(class_2248 arg0)
addDrop(Block block)
m_245724_(C_1706_ arg0)
protected void
a(dfy arg0, Function<dfy, erw$a> arg1)
add(Block arg0, Function<Block, LootTable$Builder> arg1)
method_45994(class_2248 arg0, Function<class_2248, class_52$class_53> arg1)
addDrop(Block block, Function<Block, LootTable$Builder> lootTableFunction)
m_246481_(C_1706_ p_251699_, Function<C_1706_, C_2822_$C_2824_> arg1)
protected void
a(dfy arg0, erw$a arg1)
add(Block arg0, LootTable$Builder arg1)
method_45988(class_2248 arg0, class_52$class_53 arg1)
addDrop(Block block, LootTable$Builder lootTable)
m_247577_(C_1706_ p_249817_, C_2822_$C_2824_ arg1)