public class WorldGenRegistryImpl extends java.lang.Object implements IWorldGenRegistry
| Modifier | Constructor and Description |
|---|---|
protected |
WorldGenRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
commit() |
void |
register(net.minecraft.item.ItemStack block,
DistributionBase distribution,
boolean silktouch,
LootDrop... drops) |
void |
register(net.minecraft.item.ItemStack block,
DistributionBase distribution,
LootDrop... drops) |
void |
register(net.minecraft.item.ItemStack block,
DistributionBase distribution,
Restriction restriction,
boolean silktouch,
LootDrop... drops)
Register a
ItemStack to be shown in the WorldGen View |
void |
register(net.minecraft.item.ItemStack block,
DistributionBase distribution,
Restriction restriction,
LootDrop... drops) |
void |
registerDrops(net.minecraft.item.ItemStack block,
LootDrop... drops)
Register extra drops to existing blocks
|
public void register(@Nonnull
net.minecraft.item.ItemStack block,
DistributionBase distribution,
LootDrop... drops)
register in interface IWorldGenRegistrypublic void register(@Nonnull
net.minecraft.item.ItemStack block,
DistributionBase distribution,
Restriction restriction,
LootDrop... drops)
register in interface IWorldGenRegistrypublic void register(@Nonnull
net.minecraft.item.ItemStack block,
DistributionBase distribution,
boolean silktouch,
LootDrop... drops)
register in interface IWorldGenRegistrypublic void register(@Nonnull
net.minecraft.item.ItemStack block,
DistributionBase distribution,
Restriction restriction,
boolean silktouch,
LootDrop... drops)
IWorldGenRegistryItemStack to be shown in the WorldGen Viewregister in interface IWorldGenRegistryblock - the Block as an ItemStackdistribution - the DistributionBase use DistributionHelpers to create itrestriction - any Restrictionssilktouch - true if this block can only be harvested with silktouchdrops - the list of possible LootDrops this haspublic void registerDrops(@Nonnull
net.minecraft.item.ItemStack block,
LootDrop... drops)
IWorldGenRegistryregisterDrops in interface IWorldGenRegistryblock - the Block as an ItemStackdrops - the list of possible LootDrops that should be addedprotected static void commit()