Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SomeDudeOnTheInternet

Members
  • Joined

  • Last visited

  1. From what I understand, referencing the classes in this way should class load them. If it is not a valid way to do it, please tell me.
  2. I use empty register methods to classload all my registry classes The DefferedRegisters are registered in the constructor of mod's main class Registration.register(); @Mod(FutureArmour.MOD_ID) public class FutureArmour { public static final String MOD_ID = "futurearmour"; private static final Logger LOGGER = LogManager.getLogger(); public static final CreativeItemTab ITEM_GROUP = new CreativeItemTab(); public FutureArmour() { FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); Registration.register(); MinecraftForge.EVENT_BUS.addListener(EventPriority.HIGH, OreGeneration::generateOres); MinecraftForge.EVENT_BUS.register(this); }
  3. changed the registration part to this, still get the same exception package com.spu.futurearmour.setup; import com.spu.futurearmour.FutureArmour; import com.spu.futurearmour.content.recipes.fabricator.FabricatorRecipe; import net.minecraft.item.crafting.IRecipe; import net.minecraft.item.crafting.IRecipeSerializer; import net.minecraft.item.crafting.IRecipeType; import net.minecraftforge.fml.RegistryObject; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import java.util.function.Supplier; public final class RecipeTypesRegistry { public static void register() { } public static final DeferredRegister<IRecipeSerializer<?>> RECIPE_SERIALIZER_TYPES = DeferredRegister.create(ForgeRegistries.RECIPE_SERIALIZERS, FutureArmour.MOD_ID); public static final IRecipeType<FabricatorRecipe> FABRICATING = IRecipeType.register(FutureArmour.MOD_ID + ":fabricating"); public static final RegistryObject<IRecipeSerializer<FabricatorRecipe>> FABRICATING_SERIALIZER = register("fabricating", FabricatorRecipe.Serializer::new); private static <T extends IRecipe<?>> RegistryObject<IRecipeSerializer<T>> register(String name, Supplier<IRecipeSerializer<T>> serializer) { return RECIPE_SERIALIZER_TYPES.register(name, serializer); } private static Logger LOGGER = LogManager.getLogger(); }
  4. Trying to add custom crafting type. I'm most likely not registering it right. I get this exeption "Invalid or unsupported recipe type" twice when loading world. Recipe JOSN: Recipe and Serializer: Mod main class: Registration: I'd be grateful for any suggestions you might have. Thanks in advance
  5. When I place block with tickable tile entity, this happens [13:36:59] [Render thread/WARN] [minecraft/TileEntity]: Block entity invalid: futurearmour:fabricator_controller_tet @ BlockPos{x=-149, y=4, z=341} [13:36:59] [Server thread/WARN] [minecraft/TileEntity]: Block entity invalid: futurearmour:fabricator_controller_tet @ BlockPos{x=-149, y=4, z=341} Tile Entity: Block: Registration: Any suggestions?

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.