net.minecraft.data.loot

public abstract class BlockLootSubProvider

implements LootTableSubProvider

le
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
h
HAS_SHEARS_OR_SILK_TOUCH
field_40606
WITH_SILK_TOUCH_OR_SHEARS
f_244301_
private static final LootItemCondition$Builder
i
HAS_NO_SHEARS_OR_SILK_TOUCH
field_40607
WITHOUT_SILK_TOUCH_NOR_SHEARS
f_244248_
protected final Set<Item>
d
explosionResistant
field_40608
explosionImmuneItems
f_243865_
protected final FeatureFlagSet
e
enabledFeatures
field_40609
requiredFeatures
f_243739_
protected final Map<ResourceLocation, LootTable$Builder>
f
map
field_40610
lootTables
f_244441_
protected static final float[]
g
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)
protected (Set<Item> explosionImmuneItems, FeatureFlagSet requiredFeatures, Map<ResourceLocation, LootTable$Builder> lootTables)

Method summary

Modifier and TypeMethod
protected <T extends FunctionUserBuilder<T>> T
a(cto arg0, eig<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(cto arg0, ejo<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(cto arg0)
createSingleItemTable(ItemLike arg0)
method_45976(class_1935 arg0)
drops(ItemConvertible drop)
m_247033_(C_1595_ arg0)
private static LootTable$Builder
a(cwq arg0, ejv$a arg1, ehp$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(cwq arg0, ehp$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(cwq arg0, ehp$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(cwq arg0, ehp$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(cwq arg0, cto 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(cto arg0, ekq 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(cwq arg0, cto arg1, ekq 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(cto arg0)
createSilkTouchOnlyTable(ItemLike arg0)
method_46003(class_1935 arg0)
dropsWithSilkTouch(ItemConvertible drop)
m_245335_(C_1595_ p_252216_)
private LootTable$Builder
d(cto arg0)
createPotFlowerItemTable(ItemLike arg0)
method_46009(class_1935 arg0)
pottedPlantDrops(ItemConvertible drop)
m_245602_(C_1595_ arg0)
protected LootTable$Builder
a(cwq 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(cwq arg0, dkk<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(cwq arg0)
createNameableBlockEntityTable(Block arg0)
method_45996(class_2248 arg0)
nameableContainerDrops(Block drop)
m_246180_(C_1706_ arg0)
protected LootTable$Builder
c(cwq arg0)
createShulkerBoxDrop(Block arg0)
method_46004(class_2248 arg0)
shulkerBoxDrops(Block drop)
m_247334_(C_1706_ arg0)
protected LootTable$Builder
d(cwq arg0)
createCopperOreDrops(Block arg0)
method_46010(class_2248 arg0)
copperOreDrops(Block drop)
m_246167_(C_1706_ arg0)
protected LootTable$Builder
e(cwq arg0)
createLapisOreDrops(Block arg0)
method_46011(class_2248 arg0)
lapisOreDrops(Block drop)
m_246218_(C_1706_ arg0)
protected LootTable$Builder
f(cwq arg0)
createRedstoneOreDrops(Block arg0)
method_46012(class_2248 arg0)
redstoneOreDrops(Block drop)
m_245671_(C_1706_ arg0)
protected LootTable$Builder
g(cwq arg0)
createBannerDrop(Block arg0)
method_46013(class_2248 arg0)
bannerDrops(Block drop)
m_247458_(C_1706_ arg0)
protected static LootTable$Builder
h(cwq arg0)
createBeeNestDrop(Block arg0)
method_46014(class_2248 arg0)
beeNestDrops(Block drop)
m_247273_(C_1706_ p_250988_)
protected static LootTable$Builder
i(cwq arg0)
createBeeHiveDrop(Block arg0)
method_46015(class_2248 arg0)
beehiveDrops(Block drop)
m_247247_(C_1706_ p_248770_)
protected static LootTable$Builder
j(cwq arg0)
createCaveVinesDrop(Block arg0)
method_46016(class_2248 arg0)
glowBerryDrops(Block drop)
m_245658_(C_1706_ p_251070_)
protected LootTable$Builder
a(cwq arg0, cmt 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(cwq arg0, cto 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(cwq arg0)
createGrassDrops(Block arg0)
method_46017(class_2248 arg0)
shortPlantDrops(Block dropWithShears)
m_245349_(C_1706_ arg0)
public LootTable$Builder
b(cwq arg0, cmt 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(cwq arg0, cmt 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(cto arg0)
createShearsOnlyDrop(ItemLike arg0)
method_45995(class_1935 arg0)
dropsWithShears(ItemConvertible drop)
m_245929_(C_1595_ p_250684_)
protected LootTable$Builder
a(cwq arg0, ejv$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(cwq arg0, cwq 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(cwq arg0, cwq 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(cwq arg0)
createMangroveLeavesDrops(Block arg0)
method_46018(class_2248 arg0)
mangroveLeavesDrops(Block leaves)
m_245170_(C_1706_ arg0)
protected LootTable$Builder
a(cwq arg0, cmt arg1, cmt arg2, ejv$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(cwq arg0)
createDoublePlantShearsDrop(Block arg0)
method_46019(class_2248 arg0)
seagrassDrops(Block seagrass)
m_246463_(C_1706_ p_248678_)
protected LootTable$Builder
a(cwq arg0, cwq 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(cwq arg0)
createCandleDrops(Block arg0)
method_46020(class_2248 arg0)
candleDrops(Block candle)
m_245895_(C_1706_ arg0)
protected LootTable$Builder
o(cwq arg0)
createPetalsDrops(Block arg0)
method_49358(class_2248 arg0)
flowerbedDrops(Block flowerbed)
m_271693_(C_1706_ arg0)
protected static LootTable$Builder
p(cwq 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<ahg, ehe$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(cwq arg0, cwq 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
q(cwq arg0)
createDoorTable(Block arg0)
method_46022(class_2248 arg0)
doorDrops(Block block)
m_247398_(C_1706_ arg0)
protected void
r(cwq arg0)
dropPottedContents(Block arg0)
method_46023(class_2248 arg0)
addPottedPlantDrops(Block block)
m_246535_(C_1706_ arg0)
protected void
c(cwq arg0, cwq 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(cwq arg0, cto 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(cwq arg0)
dropWhenSilkTouch(Block arg0)
method_46024(class_2248 arg0)
addDropWithSilkTouch(Block block)
m_245644_(C_1706_ arg0)
protected void
t(cwq arg0)
dropSelf(Block arg0)
method_46025(class_2248 arg0)
addDrop(Block block)
m_245724_(C_1706_ arg0)
protected void
a(cwq arg0, Function<cwq, ehe$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(cwq arg0, ehe$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)