Jump to content

SomeDudeOnTheInternet

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

SomeDudeOnTheInternet's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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?
×
×
  • Create New...

Important Information

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