this doesn't compile yet, but have something to peek at

This commit is contained in:
Nicholas Ignoffo 2017-08-14 20:53:42 -07:00
parent 973f1019a5
commit 5fcdd978d7
329 changed files with 3247 additions and 2953 deletions

View file

@ -34,7 +34,7 @@ public class FakeNetHandlerPlayServer extends NetHandlerPlayServer
}
@Override
public void disconnect(String reason)
public void disconnect(final ITextComponent textComponent)
{
}

View file

@ -6,6 +6,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraft.world.WorldServer;
import net.minecraftforge.common.util.FakePlayer;
import net.minecraftforge.fml.common.FMLCommonHandler;
@ -14,11 +15,16 @@ import com.mojang.authlib.GameProfile;
/**
* All credits for this go to CrazyPants, from EIO
*/
@SuppressWarnings("EntityConstructor")
public class FakePlayerBM extends FakePlayer
{
public FakePlayerBM(WorldServer world, GameProfile name) {
super(world, name);
}
public FakePlayerBM(World world, BlockPos pos, GameProfile profile)
{
super(FMLCommonHandler.instance().getMinecraftServerInstance().worldServerForDimension(world.provider.getDimension()), profile);
super(FMLCommonHandler.instance().getMinecraftServerInstance().getWorld(world.provider.getDimension()), profile);
posX = pos.getX() + 0.5;
posY = pos.getY() + 0.5;
posZ = pos.getZ() + 0.5;