net.minecraft.data.loot

public abstract class BlockLootSubProvider

implements LootTableSubProvider

ne
net.minecraft.data.loot.BlockLootSubProvider
net.minecraft.class_7788
net.minecraft.data.server.loottable.BlockLootTableGenerator

Field summary

Modifier and TypeField
protected final HolderLookup$Provider
a
registries
field_51845
registries
protected final Set<Item>
b
explosionResistant
field_40608
explosionImmuneItems
protected final FeatureFlagSet
c
enabledFeatures
field_40609
requiredFeatures
protected final Map<ResourceKey<LootTable>, LootTable$Builder>
d
map
field_40610
lootTables
protected static final float[]
e
NORMAL_LEAVES_SAPLING_CHANCES
field_40605
SAPLING_DROP_CHANCE
private static final float[]
f
NORMAL_LEAVES_STICK_CHANCES
field_40611
LEAVES_STICK_DROP_CHANCE

Constructor summary

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

Method summary

Modifier and TypeMethod
protected LootItemCondition$Builder
a()
hasSilkTouch()
method_60390()
createSilkTouchCondition()
protected LootItemCondition$Builder
b()
doesNotHaveSilkTouch()
method_60391()
createWithoutSilkTouchCondition()
protected LootItemCondition$Builder
c()
hasShears()
method_62727()
createWithShearsCondition()
private LootItemCondition$Builder
f()
hasShearsOrSilkTouch()
method_60392()
createWithSilkTouchOrShearsCondition()
private LootItemCondition$Builder
g()
doesNotHaveShearsOrSilkTouch()
method_60393()
createWithoutShearsOrSilkTouchCondition()
protected <T extends FunctionUserBuilder<T>> T
a(dhh arg0, exz<T> arg1)
applyExplosionDecay(ItemLike arg0, FunctionUserBuilder<T> arg1)
method_45977(class_1935 arg0, class_116<T> arg1)
applyExplosionDecay(ItemConvertible drop, LootFunctionConsumingBuilder<T> builder)
protected <T extends ConditionUserBuilder<T>> T
a(dhh arg0, ezq<T> arg1)
applyExplosionCondition(ItemLike arg0, ConditionUserBuilder<T> arg1)
method_45978(class_1935 arg0, class_192<T> arg1)
addSurvivesExplosionCondition(ItemConvertible drop, LootConditionConsumingBuilder<T> builder)
public LootTable$Builder
a(dhh arg0)
createSingleItemTable(ItemLike arg0)
method_45976(class_1935 arg0)
drops(ItemConvertible drop)
private static LootTable$Builder
a(dkm arg0, ezy$a arg1, exf$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)
protected LootTable$Builder
a(dkm arg0, exf$a<?> arg1)
createSilkTouchDispatchTable(Block arg0, LootPoolEntryContainer$Builder<?> arg1)
method_45989(class_2248 arg0, class_79$class_80<?> arg1)
dropsWithSilkTouch(Block block, LootPoolEntry$Builder<?> loot)
protected LootTable$Builder
b(dkm arg0, exf$a<?> arg1)
createShearsDispatchTable(Block arg0, LootPoolEntryContainer$Builder<?> arg1)
method_46001(class_2248 arg0, class_79$class_80<?> arg1)
dropsWithShears(Block block, LootPoolEntry$Builder<?> loot)
protected LootTable$Builder
c(dkm arg0, exf$a<?> arg1)
createSilkTouchOrShearsDispatchTable(Block arg0, LootPoolEntryContainer$Builder<?> arg1)
method_46008(class_2248 arg0, class_79$class_80<?> arg1)
dropsWithSilkTouchOrShears(Block block, LootPoolEntry$Builder<?> loot)
protected LootTable$Builder
a(dkm arg0, dhh arg1)
createSingleItemTableWithSilkTouch(Block arg0, ItemLike arg1)
method_45983(class_2248 arg0, class_1935 arg1)
drops(Block withSilkTouch, ItemConvertible withoutSilkTouch)
protected LootTable$Builder
a(dhh arg0, fau arg1)
createSingleItemTable(ItemLike arg0, NumberProvider arg1)
method_45979(class_1935 arg0, class_5658 arg1)
drops(ItemConvertible drop, LootNumberProvider count)
protected LootTable$Builder
a(dkm arg0, dhh arg1, fau 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)
private LootTable$Builder
d(dhh arg0)
createSilkTouchOnlyTable(ItemLike arg0)
method_46003(class_1935 arg0)
dropsWithSilkTouch(ItemConvertible drop)
private LootTable$Builder
e(dhh arg0)
createPotFlowerItemTable(ItemLike arg0)
method_46009(class_1935 arg0)
pottedPlantDrops(ItemConvertible drop)
protected LootTable$Builder
a(dkm arg0)
createSlabItemTable(Block arg0)
method_45980(class_2248 arg0)
slabDrops(Block drop)
protected <T extends Comparable<T>, StringRepresentable> LootTable$Builder
a(dkm arg0, dyx<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)
protected LootTable$Builder
b(dkm arg0)
createNameableBlockEntityTable(Block arg0)
method_45996(class_2248 arg0)
nameableContainerDrops(Block drop)
protected LootTable$Builder
c(dkm arg0)
createShulkerBoxDrop(Block arg0)
method_46004(class_2248 arg0)
shulkerBoxDrops(Block drop)
protected LootTable$Builder
d(dkm arg0)
createCopperOreDrops(Block arg0)
method_46010(class_2248 arg0)
copperOreDrops(Block drop)
protected LootTable$Builder
e(dkm arg0)
createLapisOreDrops(Block arg0)
method_46011(class_2248 arg0)
lapisOreDrops(Block drop)
protected LootTable$Builder
f(dkm arg0)
createRedstoneOreDrops(Block arg0)
method_46012(class_2248 arg0)
redstoneOreDrops(Block drop)
protected LootTable$Builder
g(dkm arg0)
createBannerDrop(Block arg0)
method_46013(class_2248 arg0)
bannerDrops(Block drop)
protected LootTable$Builder
h(dkm arg0)
createBeeNestDrop(Block arg0)
method_46014(class_2248 arg0)
beeNestDrops(Block drop)
protected LootTable$Builder
i(dkm arg0)
createBeeHiveDrop(Block arg0)
method_46015(class_2248 arg0)
beehiveDrops(Block drop)
protected LootTable$Builder
j(dkm arg0)
createCaveVinesDrop(Block arg0)
method_46016(class_2248 arg0)
glowBerryDrops(Block drop)
protected LootTable$Builder
a(dkm arg0, cxl arg1)
createOreDrop(Block arg0, Item arg1)
method_45981(class_2248 arg0, class_1792 arg1)
oreDrops(Block withSilkTouch, Item withoutSilkTouch)
protected LootTable$Builder
b(dkm arg0, dhh arg1)
createMushroomBlockDrop(Block arg0, ItemLike arg1)
method_45998(class_2248 arg0, class_1935 arg1)
mushroomBlockDrops(Block withSilkTouch, ItemConvertible withoutSilkTouch)
protected LootTable$Builder
k(dkm arg0)
createGrassDrops(Block arg0)
method_46017(class_2248 arg0)
shortPlantDrops(Block withShears)
public LootTable$Builder
b(dkm arg0, cxl arg1)
createStemDrops(Block arg0, Item arg1)
method_45997(class_2248 arg0, class_1792 arg1)
cropStemDrops(Block stem, Item drop)
public LootTable$Builder
c(dkm arg0, cxl arg1)
createAttachedStemDrops(Block arg0, Item arg1)
method_46005(class_2248 arg0, class_1792 arg1)
attachedCropStemDrops(Block stem, Item drop)
protected LootTable$Builder
b(dhh arg0)
createShearsOnlyDrop(ItemLike arg0)
method_45995(class_1935 arg0)
dropsWithShears(ItemConvertible item)
protected LootTable$Builder
c(dhh arg0)
createShearsOrSilkTouchOnlyDrop(ItemLike arg0)
method_65053(class_1935 arg0)
dropsWithSilkTouchOrShears(ItemConvertible item)
protected LootTable$Builder
a(dkm arg0, ezy$a arg1)
createMultifaceBlockDrops(Block arg0, LootItemCondition$Builder arg1)
method_45990(class_2248 arg0, class_5341$class_210 arg1)
multifaceGrowthDrops(Block drop, LootCondition$Builder condition)
protected LootTable$Builder
l(dkm arg0)
createMossyCarpetBlockDrops(Block arg0)
method_64930(class_2248 arg0)
paleMossCarpetDrops(Block block)
protected LootTable$Builder
a(dkm arg0, dkm 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)
protected LootTable$Builder
b(dkm arg0, dkm 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)
protected LootTable$Builder
m(dkm arg0)
createMangroveLeavesDrops(Block arg0)
method_46018(class_2248 arg0)
mangroveLeavesDrops(Block leaves)
protected LootTable$Builder
a(dkm arg0, cxl arg1, cxl arg2, ezy$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)
protected LootTable$Builder
n(dkm arg0)
createDoublePlantShearsDrop(Block arg0)
method_46019(class_2248 arg0)
seagrassDrops(Block seagrass)
protected LootTable$Builder
a(dkm arg0, dkm arg1)
createDoublePlantWithSeedDrops(Block arg0, Block arg1)
method_45985(class_2248 arg0, class_2248 arg1)
tallPlantDrops(Block tallPlant, Block shortPlant)
protected LootTable$Builder
o(dkm arg0)
createCandleDrops(Block arg0)
method_46020(class_2248 arg0)
candleDrops(Block candle)
protected LootTable$Builder
p(dkm arg0)
createPetalsDrops(Block arg0)
method_49358(class_2248 arg0)
flowerbedDrops(Block flowerbed)
protected static LootTable$Builder
q(dkm arg0)
createCandleCakeDrops(Block arg0)
method_46021(class_2248 arg0)
candleCakeDrops(Block candleCake)
public static LootTable$Builder
d()
noDrop()
method_45975()
dropsNothing()
protected abstract void
e()
generate()
method_10379()
generate()
public void
generate(BiConsumer<aly<ewu>, ewu$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)
protected void
b(dkm arg0, dkm arg1)
addNetherVinesDropTable(Block arg0, Block arg1)
method_45999(class_2248 arg0, class_2248 arg1)
addVinePlantDrop(Block vine, Block vinePlant)
protected LootTable$Builder
r(dkm arg0)
createDoorTable(Block arg0)
method_46022(class_2248 arg0)
doorDrops(Block block)
protected void
s(dkm arg0)
dropPottedContents(Block arg0)
method_46023(class_2248 arg0)
addPottedPlantDrops(Block block)
protected void
c(dkm arg0, dkm arg1)
otherWhenSilkTouch(Block arg0, Block arg1)
method_46007(class_2248 arg0, class_2248 arg1)
addDropWithSilkTouch(Block block, Block drop)
protected void
c(dkm arg0, dhh arg1)
dropOther(Block arg0, ItemLike arg1)
method_46006(class_2248 arg0, class_1935 arg1)
addDrop(Block block, ItemConvertible drop)
protected void
t(dkm arg0)
dropWhenSilkTouch(Block arg0)
method_46024(class_2248 arg0)
addDropWithSilkTouch(Block block)
protected void
u(dkm arg0)
dropSelf(Block arg0)
method_46025(class_2248 arg0)
addDrop(Block block)
protected void
a(dkm arg0, Function<dkm, ewu$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)
protected void
a(dkm arg0, ewu$a arg1)
add(Block arg0, LootTable$Builder arg1)
method_45988(class_2248 arg0, class_52$class_53 arg1)
addDrop(Block block, LootTable$Builder lootTable)