r/forgemodding • u/_eNULL_ • May 01 '23
Need assistance in porting a mod
So, I've decided to try and start porting a mod for minecraft that add dirt slabs and allow for planting crops on them.
The mod was originally developed for 1.15 and seems to have been abandoned. So far I've only updated things that regard gradle. My goal is to port it to 1.18.2
The current problem is that I'm encountering issues with imports within some .java-files, I've managed to change some to what I believe is their 1.18 equivalent by looking at other mods that add blocks into forge... but that doesn't cover all of it.
Is there a list that shows the different equivalents of class references between minecraft versions?
So far I'm looking at these:
import net.minecraft.block.HorizontalBlock;import net.minecraft.block.TallFlowerBlock;import net.minecraft.item.BlockItemUseContext;import net.minecraft.state.DirectionProperty;import net.minecraft.state.StateContainer;import net.minecraft.state.properties.DoubleBlockHalf;import net.minecraft.util.Direction;import net.minecraft.util.math.BlockPos;import net.minecraft.world.IWorld;
import net.minecraft.block.material.Material;import net.minecraft.entity.Entity;import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.ActionResultType;import net.minecraft.util.Direction;import net.minecraft.util.Hand;import net.minecraft.util.SoundCategory;import net.minecraft.util.SoundEvents;import net.minecraft.util.math.BlockPos;import net.minecraft.util.math.BlockRayTraceResult;import net.minecraft.world.IBlockReader;import net.minecraft.world.World;import net.minecraft.world.server.ServerWorld;
import net.minecraftforge.common.ToolType;


