Package jeresources.compatibility
Class WorldGenRegistryImpl
java.lang.Object
jeresources.compatibility.WorldGenRegistryImpl
- All Implemented Interfaces:
IWorldGenRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidcommit()voidregister(net.minecraft.world.item.ItemStack block, DistributionBase distribution, boolean silktouch, LootDrop... drops)voidregister(net.minecraft.world.item.ItemStack block, DistributionBase distribution, LootDrop... drops)voidregister(net.minecraft.world.item.ItemStack block, DistributionBase distribution, Restriction restriction, boolean silktouch, LootDrop... drops)Register aItemStackto be shown in the WorldGen Viewvoidregister(net.minecraft.world.item.ItemStack block, DistributionBase distribution, Restriction restriction, LootDrop... drops)voidregisterDrops(net.minecraft.world.item.ItemStack block, LootDrop... drops)Register extra drops to existing blocks
-
Constructor Details
-
WorldGenRegistryImpl
protected WorldGenRegistryImpl()
-
-
Method Details
-
register
public void register(@Nonnull net.minecraft.world.item.ItemStack block, DistributionBase distribution, LootDrop... drops)- Specified by:
registerin interfaceIWorldGenRegistry
-
register
public void register(@Nonnull net.minecraft.world.item.ItemStack block, DistributionBase distribution, Restriction restriction, LootDrop... drops)- Specified by:
registerin interfaceIWorldGenRegistry
-
register
public void register(@Nonnull net.minecraft.world.item.ItemStack block, DistributionBase distribution, boolean silktouch, LootDrop... drops)- Specified by:
registerin interfaceIWorldGenRegistry
-
register
public void register(@Nonnull net.minecraft.world.item.ItemStack block, DistributionBase distribution, Restriction restriction, boolean silktouch, LootDrop... drops)Description copied from interface:IWorldGenRegistryRegister aItemStackto be shown in the WorldGen View- Specified by:
registerin interfaceIWorldGenRegistry- Parameters:
block- theBlockas anItemStackdistribution- theDistributionBaseuseDistributionHelpersto create itrestriction- anyRestrictionssilktouch- true if this block can only be harvested with silktouchdrops- the list of possibleLootDrops this has
-
registerDrops
Description copied from interface:IWorldGenRegistryRegister extra drops to existing blocks- Specified by:
registerDropsin interfaceIWorldGenRegistry- Parameters:
block- theBlockas anItemStackdrops- the list of possibleLootDrops that should be added
-
commit
protected static void commit()
-