net.minecraft.data.loot

public abstract class BlockLootSubProvider

implements LootTableSubProvider

jx
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_SILK_TOUCH
field_40602
WITH_SILK_TOUCH
f_243678_
protected static final LootItemCondition$Builder
b
HAS_NO_SILK_TOUCH
field_40603
WITHOUT_SILK_TOUCH
f_244217_
protected static final LootItemCondition$Builder
c
HAS_SHEARS
field_40604
WITH_SHEARS
f_243905_
private static final LootItemCondition$Builder
e
HAS_SHEARS_OR_SILK_TOUCH
field_40606
WITH_SILK_TOUCH_OR_SHEARS
f_244301_
private static final LootItemCondition$Builder
f
HAS_NO_SHEARS_OR_SILK_TOUCH
field_40607
WITHOUT_SILK_TOUCH_NOR_SHEARS
f_244248_
private final Set<Item>
g
explosionResistant
field_40608
explosionImmuneItems
f_243865_
private final FeatureFlagSet
h
enabledFeatures
field_40609
requiredFeatures
f_243739_
private final Map<ResourceLocation, LootTable$Builder>
i
map
field_40610
lootTables
f_244441_
protected static final float[]
d
NORMAL_LEAVES_SAPLING_CHANCES
field_40605
SAPLING_DROP_CHANCE
f_244509_
private static final float[]
j
NORMAL_LEAVES_STICK_CHANCES
field_40611
LEAVES_STICK_DROP_CHANCE
f_244531_

Constructor summary

ModifierConstructor
protected (Set<Item> explosionImmuneItems, FeatureFlagSet requiredFeatures)

Method summary

Modifier and TypeMethod
protected <T extends FunctionUserBuilder<T>> T
a(cjv arg0, dwz<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(cjv arg0, dye<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(cjv arg0)
createSingleItemTable(ItemLike arg0)
method_45976(class_1935 arg0)
drops(ItemConvertible drop)
m_247033_(C_1595_ arg0)
private static LootTable$Builder
a(cmt arg0, dyl$a arg1, dwj$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 static LootTable$Builder
a(cmt arg0, dwj$a<?> arg1)
createSilkTouchDispatchTable(Block arg0, LootPoolEntryContainer$Builder<?> arg1)
method_45989(class_2248 arg0, class_79$class_80<?> arg1)
dropsWithSilkTouch(Block drop, LootPoolEntry$Builder<?> child)
m_247502_(C_1706_ p_250203_, C_2856_$C_2857_<?> p_252089_)
protected static LootTable$Builder
b(cmt arg0, dwj$a<?> arg1)
createShearsDispatchTable(Block arg0, LootPoolEntryContainer$Builder<?> arg1)
method_46001(class_2248 arg0, class_79$class_80<?> arg1)
dropsWithShears(Block drop, LootPoolEntry$Builder<?> child)
m_247184_(C_1706_ p_252195_, C_2856_$C_2857_<?> p_250102_)
protected static LootTable$Builder
c(cmt arg0, dwj$a<?> arg1)
createSilkTouchOrShearsDispatchTable(Block arg0, LootPoolEntryContainer$Builder<?> arg1)
method_46008(class_2248 arg0, class_79$class_80<?> arg1)
dropsWithSilkTouchOrShears(Block drop, LootPoolEntry$Builder<?> child)
m_246160_(C_1706_ p_250539_, C_2856_$C_2857_<?> p_251459_)
protected LootTable$Builder
a(cmt arg0, cjv arg1)
createSingleItemTableWithSilkTouch(Block arg0, ItemLike arg1)
method_45983(class_2248 arg0, class_1935 arg1)
drops(Block dropWithSilkTouch, ItemConvertible drop)
m_245514_(C_1706_ p_251905_, C_1595_ arg1)
protected LootTable$Builder
a(cjv arg0, dzg 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(cmt arg0, cjv arg1, dzg arg2)
createSingleItemTableWithSilkTouch(Block arg0, ItemLike arg1, NumberProvider arg2)
method_45984(class_2248 arg0, class_1935 arg1, class_5658 arg2)
drops(Block dropWithSilkTouch, ItemConvertible drop, LootNumberProvider count)
m_245142_(C_1706_ p_248558_, C_1595_ p_250047_, C_141501_ arg2)
private static LootTable$Builder
c(cjv arg0)
createSilkTouchOnlyTable(ItemLike arg0)
method_46003(class_1935 arg0)
dropsWithSilkTouch(ItemConvertible drop)
m_245335_(C_1595_ p_252216_)
private LootTable$Builder
d(cjv arg0)
createPotFlowerItemTable(ItemLike arg0)
method_46009(class_1935 arg0)
pottedPlantDrops(ItemConvertible drop)
m_245602_(C_1595_ arg0)
protected LootTable$Builder
a(cmt 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(cmt arg0, czw<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(cmt arg0)
createNameableBlockEntityTable(Block arg0)
method_45996(class_2248 arg0)
nameableContainerDrops(Block drop)
m_246180_(C_1706_ arg0)
protected LootTable$Builder
c(cmt arg0)
createShulkerBoxDrop(Block arg0)
method_46004(class_2248 arg0)
shulkerBoxDrops(Block drop)
m_247334_(C_1706_ arg0)
protected LootTable$Builder
d(cmt arg0)
createCopperOreDrops(Block arg0)
method_46010(class_2248 arg0)
copperOreDrops(Block drop)
m_246167_(C_1706_ arg0)
protected LootTable$Builder
e(cmt arg0)
createLapisOreDrops(Block arg0)
method_46011(class_2248 arg0)
lapisOreDrops(Block drop)
m_246218_(C_1706_ arg0)
protected LootTable$Builder
f(cmt arg0)
createRedstoneOreDrops(Block arg0)
method_46012(class_2248 arg0)
redstoneOreDrops(Block drop)
m_245671_(C_1706_ arg0)
protected LootTable$Builder
g(cmt arg0)
createBannerDrop(Block arg0)
method_46013(class_2248 arg0)
bannerDrops(Block drop)
m_247458_(C_1706_ arg0)
protected static LootTable$Builder
h(cmt arg0)
createBeeNestDrop(Block arg0)
method_46014(class_2248 arg0)
beeNestDrops(Block drop)
m_247273_(C_1706_ p_250988_)
protected static LootTable$Builder
i(cmt arg0)
createBeeHiveDrop(Block arg0)
method_46015(class_2248 arg0)
beehiveDrops(Block drop)
m_247247_(C_1706_ p_248770_)
protected static LootTable$Builder
j(cmt arg0)
createCaveVinesDrop(Block arg0)
method_46016(class_2248 arg0)
glowBerryDrops(Block drop)
m_245658_(C_1706_ p_251070_)
protected LootTable$Builder
a(cmt arg0, cdp arg1)
createOreDrop(Block arg0, Item arg1)
method_45981(class_2248 arg0, class_1792 arg1)
oreDrops(Block dropWithSilkTouch, Item drop)
m_246109_(C_1706_ p_249745_, C_1381_ arg1)
protected LootTable$Builder
b(cmt arg0, cjv arg1)
createMushroomBlockDrop(Block arg0, ItemLike arg1)
method_45998(class_2248 arg0, class_1935 arg1)
mushroomBlockDrops(Block dropWithSilkTouch, ItemConvertible drop)
m_245079_(C_1706_ p_249315_, C_1595_ arg1)
protected LootTable$Builder
k(cmt arg0)
createGrassDrops(Block arg0)
method_46017(class_2248 arg0)
grassDrops(Block dropWithShears)
m_245349_(C_1706_ arg0)
public LootTable$Builder
b(cmt arg0, cdp 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(cmt arg0, cdp 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(cjv arg0)
createShearsOnlyDrop(ItemLike arg0)
method_45995(class_1935 arg0)
dropsWithShears(ItemConvertible drop)
m_245929_(C_1595_ p_250684_)
protected LootTable$Builder
a(cmt arg0, dyl$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(cmt arg0, cmt arg1, float... arg2)
createLeavesDrops(Block arg0, Block arg1, float... arg2)
method_45986(class_2248 arg0, class_2248 arg1, float... arg2)
leavesDrops(Block leaves, Block drop, float... chance)
m_246047_(C_1706_ p_250731_, C_1706_ p_248949_, float... arg2)
protected LootTable$Builder
b(cmt arg0, cmt arg1, float... arg2)
createOakLeavesDrops(Block arg0, Block arg1, float... arg2)
method_46000(class_2248 arg0, class_2248 arg1, float... arg2)
oakLeavesDrops(Block leaves, Block drop, float... chance)
m_246142_(C_1706_ p_251505_, C_1706_ p_250753_, float... arg2)
protected LootTable$Builder
l(cmt arg0)
createMangroveLeavesDrops(Block arg0)
method_46018(class_2248 arg0)
mangroveLeavesDrops(Block leaves)
m_245170_(C_1706_ arg0)
protected LootTable$Builder
a(cmt arg0, cdp arg1, cdp arg2, dyl$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 static LootTable$Builder
m(cmt arg0)
createDoublePlantShearsDrop(Block arg0)
method_46019(class_2248 arg0)
seagrassDrops(Block seagrass)
m_246463_(C_1706_ p_248678_)
protected LootTable$Builder
a(cmt arg0, cmt arg1)
createDoublePlantWithSeedDrops(Block arg0, Block arg1)
method_45985(class_2248 arg0, class_2248 arg1)
tallGrassDrops(Block tallGrass, Block grass)
m_246224_(C_1706_ p_248735_, C_1706_ arg1)
protected LootTable$Builder
n(cmt arg0)
createCandleDrops(Block arg0)
method_46020(class_2248 arg0)
candleDrops(Block candle)
m_245895_(C_1706_ arg0)
protected static LootTable$Builder
o(cmt arg0)
createCandleCakeDrops(Block arg0)
method_46021(class_2248 arg0)
candleCakeDrops(Block candleCake)
m_246838_(C_1706_ p_250280_)
public static LootTable$Builder
a()
noDrop()
method_45975()
dropsNothing()
m_246386_()
protected abstract void
b()
generate()
method_10379()
generate()
m_245660_()
public void
generate(BiConsumer<acf, dvu$a> arg0)
generate(BiConsumer<ResourceLocation, LootTable$Builder> arg0)
method_10399(BiConsumer<class_2960, class_52$class_53> arg0)
accept(BiConsumer<Identifier, LootTable$Builder> arg0)
m_245126_(BiConsumer<C_5265_, C_2822_$C_2824_> arg0)
protected void
b(cmt arg0, cmt arg1)
addNetherVinesDropTable(Block arg0, Block arg1)
method_45999(class_2248 arg0, class_2248 arg1)
addVinePlantDrop(Block block, Block drop)
m_245693_(C_1706_ p_250696_, C_1706_ arg1)
protected LootTable$Builder
p(cmt arg0)
createDoorTable(Block arg0)
method_46022(class_2248 arg0)
doorDrops(Block block)
m_247398_(C_1706_ arg0)
protected void
q(cmt arg0)
dropPottedContents(Block arg0)
method_46023(class_2248 arg0)
addPottedPlantDrops(Block block)
m_246535_(C_1706_ arg0)
protected void
c(cmt arg0, cmt 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(cmt arg0, cjv 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
r(cmt arg0)
dropWhenSilkTouch(Block arg0)
method_46024(class_2248 arg0)
addDropWithSilkTouch(Block block)
m_245644_(C_1706_ arg0)
protected void
s(cmt arg0)
dropSelf(Block arg0)
method_46025(class_2248 arg0)
addDrop(Block block)
m_245724_(C_1706_ arg0)
protected void
a(cmt arg0, Function<cmt, dvu$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(cmt arg0, dvu$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)