net.minecraft.data.loot

public abstract class BlockLootSubProvider

implements LootTableSubProvider

nh
net.minecraft.data.loot.BlockLootSubProvider
net.minecraft.class_7788
net.minecraft.data.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(dio arg0, ezx<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(dio arg0, fbo<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(dio arg0)
createSingleItemTable(ItemLike arg0)
method_45976(class_1935 arg0)
drops(ItemConvertible drop)
private static LootTable$Builder
a(dlu arg0, fbw$a arg1, ezd$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(dlu arg0, ezd$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(dlu arg0, ezd$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(dlu arg0, ezd$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(dlu arg0, dio arg1)
createSingleItemTableWithSilkTouch(Block arg0, ItemLike arg1)
method_45983(class_2248 arg0, class_1935 arg1)
drops(Block withSilkTouch, ItemConvertible withoutSilkTouch)
protected LootTable$Builder
a(dio arg0, fcs arg1)
createSingleItemTable(ItemLike arg0, NumberProvider arg1)
method_45979(class_1935 arg0, class_5658 arg1)
drops(ItemConvertible drop, LootNumberProvider count)
protected LootTable$Builder
a(dlu arg0, dio arg1, fcs 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(dio arg0)
createSilkTouchOnlyTable(ItemLike arg0)
method_46003(class_1935 arg0)
dropsWithSilkTouch(ItemConvertible drop)
private LootTable$Builder
e(dio arg0)
createPotFlowerItemTable(ItemLike arg0)
method_46009(class_1935 arg0)
pottedPlantDrops(ItemConvertible drop)
protected LootTable$Builder
a(dlu arg0)
createSlabItemTable(Block arg0)
method_45980(class_2248 arg0)
slabDrops(Block drop)
protected <T extends Comparable<T>, StringRepresentable> LootTable$Builder
a(dlu arg0, ear<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(dlu arg0)
createNameableBlockEntityTable(Block arg0)
method_45996(class_2248 arg0)
nameableContainerDrops(Block drop)
protected LootTable$Builder
c(dlu arg0)
createShulkerBoxDrop(Block arg0)
method_46004(class_2248 arg0)
shulkerBoxDrops(Block drop)
protected LootTable$Builder
d(dlu arg0)
createCopperOreDrops(Block arg0)
method_46010(class_2248 arg0)
copperOreDrops(Block drop)
protected LootTable$Builder
e(dlu arg0)
createLapisOreDrops(Block arg0)
method_46011(class_2248 arg0)
lapisOreDrops(Block drop)
protected LootTable$Builder
f(dlu arg0)
createRedstoneOreDrops(Block arg0)
method_46012(class_2248 arg0)
redstoneOreDrops(Block drop)
protected LootTable$Builder
g(dlu arg0)
createBannerDrop(Block arg0)
method_46013(class_2248 arg0)
bannerDrops(Block drop)
protected LootTable$Builder
h(dlu arg0)
createBeeNestDrop(Block arg0)
method_46014(class_2248 arg0)
beeNestDrops(Block drop)
protected LootTable$Builder
i(dlu arg0)
createBeeHiveDrop(Block arg0)
method_46015(class_2248 arg0)
beehiveDrops(Block drop)
protected LootTable$Builder
j(dlu arg0)
createCaveVinesDrop(Block arg0)
method_46016(class_2248 arg0)
glowBerryDrops(Block drop)
protected LootTable$Builder
a(dlu arg0, cyo arg1)
createOreDrop(Block arg0, Item arg1)
method_45981(class_2248 arg0, class_1792 arg1)
oreDrops(Block withSilkTouch, Item withoutSilkTouch)
protected LootTable$Builder
b(dlu arg0, dio arg1)
createMushroomBlockDrop(Block arg0, ItemLike arg1)
method_45998(class_2248 arg0, class_1935 arg1)
mushroomBlockDrops(Block withSilkTouch, ItemConvertible withoutSilkTouch)
protected LootTable$Builder
k(dlu arg0)
createGrassDrops(Block arg0)
method_46017(class_2248 arg0)
shortPlantDrops(Block withShears)
public LootTable$Builder
b(dlu arg0, cyo arg1)
createStemDrops(Block arg0, Item arg1)
method_45997(class_2248 arg0, class_1792 arg1)
cropStemDrops(Block stem, Item drop)
public LootTable$Builder
c(dlu arg0, cyo arg1)
createAttachedStemDrops(Block arg0, Item arg1)
method_46005(class_2248 arg0, class_1792 arg1)
attachedCropStemDrops(Block stem, Item drop)
protected LootTable$Builder
b(dio arg0)
createShearsOnlyDrop(ItemLike arg0)
method_45995(class_1935 arg0)
dropsWithShears(ItemConvertible item)
protected LootTable$Builder
c(dio arg0)
createShearsOrSilkTouchOnlyDrop(ItemLike arg0)
method_65053(class_1935 arg0)
dropsWithSilkTouchOrShears(ItemConvertible item)
protected LootTable$Builder
a(dlu arg0, fbw$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(dlu arg0)
createMultifaceBlockDrops(Block arg0)
method_65261(class_2248 arg0)
multifaceGrowthDrops(Block drop)
protected LootTable$Builder
m(dlu arg0)
createMossyCarpetBlockDrops(Block arg0)
method_64930(class_2248 arg0)
paleMossCarpetDrops(Block block)
protected LootTable$Builder
a(dlu arg0, dlu 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(dlu arg0, dlu 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
n(dlu arg0)
createMangroveLeavesDrops(Block arg0)
method_46018(class_2248 arg0)
mangroveLeavesDrops(Block leaves)
protected LootTable$Builder
a(dlu arg0, cyo arg1, cyo arg2, fbw$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
o(dlu arg0)
createDoublePlantShearsDrop(Block arg0)
method_46019(class_2248 arg0)
seagrassDrops(Block seagrass)
protected LootTable$Builder
a(dlu arg0, dlu arg1)
createDoublePlantWithSeedDrops(Block arg0, Block arg1)
method_45985(class_2248 arg0, class_2248 arg1)
tallPlantDrops(Block tallPlant, Block shortPlant)
protected LootTable$Builder
p(dlu arg0)
createCandleDrops(Block arg0)
method_46020(class_2248 arg0)
candleDrops(Block candle)
public LootTable$Builder
q(dlu arg0)
createSegmentedBlockDrops(Block arg0)
method_66554(class_2248 arg0)
segmentedDrops(Block segmented)
protected static LootTable$Builder
r(dlu 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<ald<eys>, eys$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(dlu arg0, dlu arg1)
addNetherVinesDropTable(Block arg0, Block arg1)
method_45999(class_2248 arg0, class_2248 arg1)
addVinePlantDrop(Block vine, Block vinePlant)
protected LootTable$Builder
s(dlu arg0)
createDoorTable(Block arg0)
method_46022(class_2248 arg0)
doorDrops(Block block)
protected void
t(dlu arg0)
dropPottedContents(Block arg0)
method_46023(class_2248 arg0)
addPottedPlantDrops(Block block)
protected void
c(dlu arg0, dlu arg1)
otherWhenSilkTouch(Block arg0, Block arg1)
method_46007(class_2248 arg0, class_2248 arg1)
addDropWithSilkTouch(Block block, Block drop)
protected void
c(dlu arg0, dio arg1)
dropOther(Block arg0, ItemLike arg1)
method_46006(class_2248 arg0, class_1935 arg1)
addDrop(Block block, ItemConvertible drop)
protected void
u(dlu arg0)
dropWhenSilkTouch(Block arg0)
method_46024(class_2248 arg0)
addDropWithSilkTouch(Block block)
protected void
v(dlu arg0)
dropSelf(Block arg0)
method_46025(class_2248 arg0)
addDrop(Block block)
protected void
a(dlu arg0, Function<dlu, eys$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(dlu arg0, eys$a arg1)
add(Block arg0, LootTable$Builder arg1)
method_45988(class_2248 arg0, class_52$class_53 arg1)
addDrop(Block block, LootTable$Builder lootTable)