This commit is contained in:
Flanks255 2021-11-21 14:45:33 -06:00
parent 286946e29f
commit 654a001990
3 changed files with 13 additions and 3 deletions

View file

@ -92,9 +92,8 @@ public class ActuallyAdditions {
public ActuallyAdditions() {
IEventBus eventBus = FMLJavaModLoadingContext.get().getModEventBus();
ActuallyBlocks.BLOCKS.register(eventBus);
ActuallyItems.ITEMS.register(eventBus);
ActuallyBlocks.TILES.register(eventBus);
ActuallyBlocks.init(eventBus);
ActuallyItems.init(eventBus);
ActuallyRecipes.init(eventBus);
ActuallyContainers.CONTAINERS.register(eventBus);
ENTITIES.register(eventBus);

View file

@ -21,6 +21,7 @@ import net.minecraft.block.material.Material;
import net.minecraft.item.Item;
import net.minecraft.tileentity.TileEntityType;
import net.minecraftforge.common.ToolType;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
@ -278,4 +279,9 @@ public final class ActuallyBlocks {
public static AbstractBlock.Properties defaultPickProps(int harvestLevel) {
return AbstractBlock.Properties.of(Material.STONE).harvestLevel(harvestLevel).harvestTool(ToolType.PICKAXE).strength(1.5F, 10.0F).sound(SoundType.STONE);
}
public static void init(IEventBus evt) {
BLOCKS.register(evt);
TILES.register(evt);
}
}

View file

@ -23,6 +23,7 @@ import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemTier;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
@ -257,4 +258,8 @@ public final class ActuallyItems {
public static Item.Properties defaultNonStacking() {
return defaultProps().stacksTo(1);
}
public static void init(IEventBus evt) {
ITEMS.register(evt);
}
}